ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Context and metapost: using \frac
@ 2011-04-25 18:33 mat
  2011-04-26  8:37 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: mat @ 2011-04-25 18:33 UTC (permalink / raw)
  To: ntg-context; +Cc: Charlie Sharpsteen


[-- Attachment #1.1: Type: text/plain, Size: 936 bytes --]

Hi

I am using context to run a metapost graph. I am however unable to 
insert a label with \frac, since this is not pure Tex but Latex. This 
seems to be a known problem for metapost:
-Seems for metapost only,  one should add %&latex 
(http://ryanmlayer.wordpress.com/tag/metapost/).
-I saw also one post where it was mentione done should add 
//\setupMPpage[offset=1pt] 
//(http://www.tug.org/pipermail/pdftex/2001-March/000429.html). I tried, 
but did not work however...

Any idea how I should do? Find below minimal example, that does not work 
on my computer when compiling with context...

Thanks!!

Matthieu

\starttext

\setupMPpage[offset=1pt]

\switchtobodyfont[10pt]

% Beginning MetaPost graphic
\startMPpage

label.top(btex 1.4 etex scaled   1.00, (10, 10));

label.top(btex $\sigma_t$ etex scaled   1.00, (0, 10));

label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled   1.00, 
(1, 1));

\stopMPpage

\stoptext


[-- Attachment #1.2: Type: text/html, Size: 1683 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2011-04-26 15:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 18:33 Context and metapost: using \frac mat
2011-04-26  8:37 ` Hans Hagen
2011-04-26 10:02   ` Matthieu Stigler
2011-04-26 10:36     ` Hans Hagen
2011-04-26 11:36       ` Matthieu Stigler
2011-04-26 14:33         ` Andreas Harder
2011-04-26 15:17           ` Matthieu Stigler
2011-04-26 15:44             ` 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).