On Wed, Dec 3, 2008 at 7:58 PM, Hans Hagen wrote:
Mojca Miklavec wrote:
On Wed, Dec 3, 2008 at 7:00 PM, Hans Hagen wrote:
3.) changing font with gnuplot commands set title "Nice Title" font "iwona,20" textext("\\definedfont[iwona at 20pt]{your text}")
But that requires modifications to terminal again & incompatibility with output between engines. I'll try to figure out how to do something similar as above. I would like to write this as \sometxt[gp][iwona,20pt]{The Title}. I "just" need to redefine the meaning of \sometxt somehow.
in any case ... you need to save and restore the meaning of textext because we have one session of mp;
begingroup ; save textext ;
Thanks. That's a good point. I'll add it.
vardef ... ; plotting like a gnu ... ; endgroup ;
alternatively we can use a dedicated mp instance; since you only use textext that would be just the plain format plus mp-gnup.mp or something like that; next time we meet we should sit down and do that
Thanks :) (But be careful with promisses ... The Czech Republic is [almost] our neighbour.) ---- One more question ... When checking for luatex inside metapost (to be able to branch code depending on engine) - what's the best thing to ask for? a) if known context_mlib: ... b) \startLUATEX\startMPextensions mark := 4; \stopMPextensions\stopLUATEX if mark = 4: ... c) something else Thanks, Mojca