ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metapost...
@ 2001-09-08 17:48 Joop Susan
  2001-09-10  9:25 ` Metapost Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Joop Susan @ 2001-09-08 17:48 UTC (permalink / raw)


Hello,

How can one pass a MetaPost variable to ConTeXt in a btex-etex clause?

My MetaPost code calculates a number that I would like to use in as a 
literal (evaluated if the variable was assigned an expression) within a 
btex-etex construct.

Extremely simplified, but you'll get my drift:

numeric FONTSIZE;
FONTSIZE:=16pt;
draw btex \switchtobodyfont[ss,FONTSIZE] Fontsize = FONTSIZE etex;

I know that this simple example can be done in MetaPost itself, but my
application also uses ConTeXt font definitions, frames, etc.

Is \MPvar only used to pass ConTeXt variables to MetaPost code? And not 
the other way around?

Joop


^ permalink raw reply	[flat|nested] 11+ messages in thread
* metapost
@ 2010-02-17 21:18 Martin 'golodhrim' Scholz
  2010-02-17 21:31 ` metapost Hans Hagen
  2010-02-17 21:34 ` metapost Mojca Miklavec
  0 siblings, 2 replies; 11+ messages in thread
From: Martin 'golodhrim' Scholz @ 2010-02-17 21:18 UTC (permalink / raw)
  To: ntg-context

Hi list,
does anybody know how I could start metapost itself standalone from the 
context-minimals? mpost is telling me there is no mpost.mem and no 
plain.mem file so it can not start... Thanks for any hint...

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Metapost
@ 2002-11-09 13:57 Michał Morawski
  2002-11-10 21:02 ` Metapost Hans Hagen
  2002-11-10 21:10 ` Metapost K.H. Wesseling
  0 siblings, 2 replies; 11+ messages in thread
From: Michał Morawski @ 2002-11-09 13:57 UTC (permalink / raw)


I have tried to repeat the example in the file "Creating metapost examples"
(mmakempy.pdf) and I receive result as below and empty place in my document.
Can anyone give me a hint?

This is MetaPost, Version 0.641 (Web2c 7.3.7x) (mem=metafun 2002.10.31)  31
OCT 2002 22:25
**&metafun mpgraph
(mpgraph.mp
{randomseed:=3603}
 (d:/TeXLive/texmf/metapost/base/graph.mp
(d:/TeXLive/texmf/metapost/base/format.mp
(d:/TeXLive/texmf/metapost/base/string.mp)
(d:/TeXLive/texmf/metapost/base/texnum.mp
>> d:/TeXLive/texmf/metapost/base/texnum.mp
>> texnum.mpx
! Unable to make mpx file.
l.14 init_numbers(btex
                      $-$etex, btex$1$etex, btex${\times}10$etex,
The two files given above are one of your source files
and an auxiliary file I need to read to find out what your
btex..etex blocks mean. If you don't know why I had trouble,
try running it manually through MPto -tex, TeX, and DVItoMP.


Thanks in advance
Michal

############################################
## Michał Morawski
## 95-200 Pabianice, Sempołowskiej 5 m 13
## tel/fax ++48 42 2262228
############################################
Zwykle niewinność jest wynikiem szczęścia a nie cnoty.
        Anatol France

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Metapost
@ 1999-08-23  5:08 David Arnold
  1999-08-23  8:31 ` Metapost Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: David Arnold @ 1999-08-23  5:08 UTC (permalink / raw)


All,

The metapost file

input mp-tool

beginfig(1)
u=1in;

z0=(0,0);

drawdblarrow (-1u,0)--(1u,0);
label.rt(btex Real axis etex,(1.1u,0));

drawdblarrow (0,-1u)--(0,1u);
label.rt(btex Imaginary axis etex, (0.1,1u));

a:=0.7; b:=0.6;
z1=(a,b) scaled u;

drawarrow z0--z1;
label.rt (btex $(a,b)$ etex, z1);

label.top(btex $r$ etex, 0.5[z0,z1]);

label.rt(btex $\theta$ etex, (0.2,0.1) scaled u);
endfig;

end

produces complexplane.1. How do I include this in my Context document so
that correct fonts will be used. I tried

\placefigure
 [here][complex plane]{The complex plane.}
 {\externalfigure[chap1/complexplane.1]}

but I got a courier font substitution. Yuk! Can anyone help?


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-02-17 21:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-08 17:48 Metapost Joop Susan
2001-09-10  9:25 ` Metapost Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2010-02-17 21:18 metapost Martin 'golodhrim' Scholz
2010-02-17 21:31 ` metapost Hans Hagen
2010-02-17 21:34 ` metapost Mojca Miklavec
2010-02-17 21:37   ` metapost Mojca Miklavec
2002-11-09 13:57 Metapost Michał Morawski
2002-11-10 21:02 ` Metapost Hans Hagen
2002-11-10 21:10 ` Metapost K.H. Wesseling
1999-08-23  5:08 Metapost David Arnold
1999-08-23  8:31 ` Metapost Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).