On Tue, Oct 7, 2008 at 9:54 PM, Wolfgang Werners-Lucchini wrote: > Hallo Mojca, > >> > 1. The labels of the first graphic are xscaled (randomly) >> >> They are not scaled randomly :P >> They inherit the sizes from the second graphic. >> >> See >> >> http://archive.contextgarden.net/message/20061204.102337.280a6589.en >> .html > > strange > >> You need >> \runMPgraphicstrue > > Yes, this helps! > > But what are the sideeffects? When is the opposite needed?
I don't know. Ask Hans or Taco. It might have to do with write18 (perhaps when it's desabled, one of them doesn't work, but I don't really know). >> These settings are used exclusevely for btex ... etex and textext. >> \sometxt uses the surounding font. >> >> There could be some settings for fonts in metapost graphics, but >> I'm not aware of any. >> However, it's rather easy to either: >> >> a) write your own metapost macro for placing labels that scales >> down >> everything by 20% >> label.top(myscaled(\sometxt{Samstag}), z0) ; >> where >> vardef myscaled(expr t) = (t scaled 0.8) enddef; > > This works. > >> b) write your own handle >> \definetextext[scaled]{\switchtobodyfont[8pt]\strut} >> and then >> label.top(\sometxt[scaled]{Samstag}, z0) ; > > This works, too. Where is this documented? The \sometxt myway (http://wiki.contextgarden.net/My_Way). >> c) write your own macro or put some font size switch in front of >> the graphic (I did not try it out) >> \long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscal >> edtext >> {\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\ >> egroup} > > This is not working. > Even an explizit > > {\switchtobodyfont[8pt] > \startuseMPgraphic > > <mp-code> > > \stopuseMPgraphic > } > > didn't work. Try: \switchtobodyfont[50pt] \startMPcode draw \sometxt{abc}; \stopMPcode Maybe the labels are typeset when you \useMPgraphic, not when you define it (but better have the sizes kept in sync). Mojca ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________