Re: [NTG-context] MPinstance

2016-04-07 Thread Alan BRASLAU
On Thu, 7 Apr 2016 12:14:39 +0200 Hans Hagen <pra...@wxs.nl> wrote: > On 4/7/2016 11:20 AM, dr. Hans van der Meer wrote: > > I do not understand the info in the ConTeXt wiki on setupMPinstance. > > > > The syntax is specified as \setupMPinstance[...][...,...=...,...

Re: [NTG-context] MPinstance

2016-04-07 Thread Hans Hagen
On 4/7/2016 11:20 AM, dr. Hans van der Meer wrote: I do not understand the info in the ConTeXt wiki on setupMPinstance. The syntax is specified as \setupMPinstance[...][...,...=...,...0 [...] name format metafun mpost etc. I read this as: in the first argument one can specify a name presumably

[NTG-context] MPinstance

2016-04-07 Thread dr. Hans van der Meer
I do not understand the info in the ConTeXt wiki on setupMPinstance. The syntax is specified as \setupMPinstance[...][...,...=...,...0 [...] name format metafun mpost etc. I read this as: in the first argument one can specify a name presumably a name specified on \defineMPinstance

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Wolfgang Schuster
.)}. You may find this complicated, but it works for me and I would rather like not having to change may things all over the place. Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
e not having to change may things all over the place. Now I learn from the ConTeXtgarden that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
that startMPenvironment is deprecated and that I should use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local

[NTG-context] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
use defineMPinstance and setupMPinstance instead. Thus I tried \defineMPinstance[mp:local][metafun][setups=mp:smallfont,textcolor=red] \startsetups mp:smallfont \switchtobodyfont[small] \stopsetups \startMPpage and also \startMPpage[mp:local] % metafont code \stopMPpage \stoptext \endinput

Re: [NTG-context] textcolor not working with MPinstance

2014-04-24 Thread Hans Hagen
also with the default instance: \setupMPinstance [textcolor=red, textstyle=bold] \starttext \startMPcode draw textext(Am I red?) ; \stopMPcode \stoptext fixed - Hans Hagen | PRAGMA

Re: [NTG-context] textcolor not working with MPinstance

2014-04-24 Thread Aditya Mahajan
?) ; \stopMPcode \stoptext It fails also with the default instance: \setupMPinstance [textcolor=red, textstyle=bold] \starttext \startMPcode draw textext(Am I red?) ; \stopMPcode \stoptext fixed Thanks! Aditya

Re: [NTG-context] textcolor not working with MPinstance

2014-04-21 Thread Wolfgang Schuster
: \setupMPinstance [textcolor=red, textstyle=bold] \starttext \startMPcode draw textext(Am I red?) ; \stopMPcode \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

[NTG-context] Portrait vs. landscape orientation for Tabloid paper

2013-06-25 Thread Pavneet Arora
=2.8ex] \starttext %\showlayout[in,pt] \setupMPinstance [metafun] [extensions=yes, initializations=yes] \startuseMPgraphic{Example} u:=1cm; pickup pencircle scaled 1pt; draw (5u,0u) {dir 90}..(0u,5u) {dir 180}; draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u); draw (0u

[NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing

2013-06-18 Thread Pavneet Arora
[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes, initializations=yes, textstyle=bold] \startMPpage u:=1cm; pickup pencircle scaled 1pt; draw (5u,0u) {dir 90}..(0u,5u) {dir 180}; draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u

Re: [NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing

2013-06-18 Thread Hans Hagen
it? What I am hoping is to get a best practises workflow from the list so that I can simply adopt it. advTHANKSance. Sample: A MWE is found below: \setuppapersize[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes, initializations=yes

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco _ dimexpr.pdf Description: dimexpr.pdf

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Alan BRASLAU
I am glad to see that I am not alone being confused... We have: \defineMPinstance [name] [\s!format=metafun, \s!extensions=\v!yes, \s!initializations=\v!yes, \c!method=\s!default, \c!textstyle=, \c!textcolor=] also, \setupMPinstance So that extensions=yes

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
Am 10.06.2012 um 16:25 schrieb Alfredo Catalina: How can I setup a font -name, size, etc- inside a startuseMPgraphic environment? \startuseMPgraphic{map} \stopuseMPgraphic - http://wiki.contextgarden.net/Command/defineMPinstance - http://wiki.contextgarden.net/Command/setupMPinstance

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Meer, H. van der
- http://wiki.contextgarden.net/Command/defineMPinstance - http://wiki.contextgarden.net/Command/setupMPinstance Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
I'm sorry but I don't know how to use them. I've tried \setupMPinstance [metafun] [textcolor=red] and got an undefined control sequence error. I've also tried \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,7pt] \stopMPenvironment and it changed

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
Am 10.06.2012 um 18:40 schrieb Alfredo Catalina: I'm sorry but I don't know how to use them. I've tried \setupMPinstance [metafun] [textcolor=red] and got an undefined control sequence error. I've also tried \startMPenvironment [global] \usetypescript[palatino][ec

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
. \setupbodyfont[pagella,11pt] %\setupMPinstance[metafun][textstyle=sans] \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] \starttext \input knuth \startMPcode draw textext(I’m different!) ; \stopMPcode \stoptext Wolfgang

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
\setupbodyfont[pagella,11pt] %\setupMPinstance[metafun][textstyle=sans] \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] \starttext \input knuth \startMPcode draw textext(I’m different!) ; \stopMPcode \stoptext It gives an error: ! Undefined control sequence

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Aditya Mahajan
On Sun, 10 Jun 2012, Alfredo Catalina wrote: \setupbodyfont[pagella,11pt] %\setupMPinstance[metafun][textstyle=sans] \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] \starttext \input knuth \startMPcode draw textext(I’m different!) ; \stopMPcode \stoptext It gives

Re: [NTG-context] Font for MetaPost graphics

2012-05-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, many thanks Marco for wikifying. On Tue, 08 May 2012 21:57:04 +0200, Marco net...@lavabit.com wrote: Thanks a lot Hans for implementing this. Wikified: http://wiki.contextgarden.net/Command/defineMPinstance http://wiki.contextgarden.net/Command/setupMPinstance Best wishes Marco

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
that patch for quite a while now I could probably move it to the core. Since you use it for a while it seems to work ⇒ into the core Thanks a lot Hans for implementing this. Wikified: http://wiki.contextgarden.net/Command/defineMPinstance http://wiki.contextgarden.net/Command/setupMPinstance

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
alternative would to define \setupMPtext [ style=..., color=..., setups=..., ] that can be used to set the style for metapost text. As we already have instances, I've extended that mechanism, so one can say: \startsetups mp:instance:one indeed:\space \stopsetups \setupMPinstance [metafun

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Aditya Mahajan
On Sat, 5 May 2012, Marco wrote: On 2012-05-05 Hans Hagen pra...@wxs.nl wrote: That means, MPenvironment will be dropped, right? But what is the new interface, \setupMPtext or MPinstance? \setupMPinstance The advantage is that you can have multiple instances in parallel. Aditya