[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
://wiki.contextgarden.net > > ___ > % Metafun % filename: moons.tex % Boede 2021 % \setupbodyfont[plex,ss,14pt] \defineMPinstance [Moon] [metafun] [] \startMPinclusions[]{Moon} numeric w,h; path p[]; pai

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
;being defined and doesn't occur in the old version where the file is input. >"boxrow.mp" is not in the same directory as the document but is in the >configured through the usepath/usesubpath interface from an environment file. I can put together and share a runnable MWE set of files

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
directory as the document but is in the >configured through the usepath/usesubpath interface from an environment file. I can put together and share a runnable MWE set of files if this information is not complete enough to identify the problem. Here is the MWE that I used for the inpu

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Hans Hagen
boxrow.mp" is not in the same directory as the document but is in the configured through the usepath/usesubpath interface from an environment file. I can put together and share a runnable MWE set of files if this information is not complete enough to identify the problem. Here is the MWE that

[NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
directory as the document but is in the >configured through the usepath/usesubpath interface from an environment file. I can put together and share a runnable MWE set of files if this information is not complete enough to identify the problem. Here is the MWE that I used for the input fi

[NTG-context] Using lmtx and new metafun

2019-12-12 Thread Otared Kavian
or your help: Otared PS: Here is my definition of GridAxis (I guess many parts of it could be better written…) \defineMPinstance[GridAxis] [ format=metafun, extensions=yes, initializations=yes, method=double, ]

Re: [NTG-context] xrightarrow is not straight

2018-08-07 Thread Alan Braslau
; > > as can line widths, etc. > > Shouldn't we use a dedicated MP instance for stackers? MPinitializations are shared by all instances (normally), that is if initializations=yes is set in \defineMPinstance. Alan __

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-22 Thread Hans Hagen
are rotated 45) scaled 1cm; draw textext("2"); ); \stopMPinitializations \defineMPinstance[foo][initializations=yes] \startMPcode{foo} picture q; q := image( draw fullcircle scaled 1cm; draw textext("3"); );

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-22 Thread Sergey Slyusarev
; >> picture p; >> >> p := image( >> >> draw fullsquare scaled 1cm; >> >> draw textext("1"); >> >> ); >> >> \stopMPinitializations >> >> \startMPinitializations >> >> picture s; >> >> s := ima

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-17 Thread Hans Hagen
uare rotated 45) scaled 1cm; draw textext("2"); ); \stopMPinitializations \defineMPinstance[foo][initializations=yes] \startMPcode{foo} picture q; q := image( draw fullcircle scaled 1cm; draw textext("3"); ); draw q; \stopMPcode \startMPcode{foo} draw p; draw q shi

Re: [NTG-context] Bug: \textext inside \*MPinclusions causes error

2017-01-16 Thread Sergey Slyusarev
1cm; draw textext("2"); ); \stopMPinitializations \defineMPinstance[foo][initializations=yes] \startMPcode{foo} picture q; q := image( draw fullcircle scaled 1cm; draw textext("3"); ); draw q; \stopMPcode \startMPcode{foo} draw p; draw q shifted (2cm, 0); draw s shifted (4cm

Re: [NTG-context] MPinstance

2016-04-07 Thread Meer, Hans van der
Alan Braslau wrote: For example, I work with a "3D" instance of MP: \defineMPinstance [three] [format=metafun, extensions=yes, initializations=yes, method=double] \startMPdefinitions{three} input three ; \stopMPdefinitions Where three.mp contains my 3D projection macros. U

Re: [NTG-context] MPinstance

2016-04-07 Thread Alan BRASLAU
me > > format metafun mpost > > etc. > > > > I read this as: > > in the first argument one can specify a name presumably a name > > specified on \defineMPinstance. in the second argument > > [format=metafun] specifies the format. But then the example under &

Re: [NTG-context] MPinstance

2016-04-07 Thread Hans Hagen
a name specified on \defineMPinstance. in the second argument [format=metafun] specifies the format. But then the example under Usage gives: \setupMPinstance[metafun][...] Why metafun in the first instead of the second argument as implied in the syntax description? I get confused here. Also in

[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. in the

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Wolfgang Schuster
his 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 \defineMPinstance[mp

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
ge 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 mp:smallfont \switchtobo

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
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] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
caused by the metafun format. According to the wiki page http://wiki.contextgarden.net/Command/defineMPinstance the instances "metapost" and "metafun" are predefined and can be used by \startMPcode{instance} ... \stopMPcode where metafun is the default instance, i.e. u

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
gt; draw (0,0) -- (1cm,0) ; > \stopMPcode > > why the {metapost} I wanted to know if the impact of clipping is caused by the metafun format. According to the wiki page http://wiki.contextgarden.net/Command/defineMPinstance the instances "metapost" and "metafun" are predefi

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

2014-04-24 Thread Aditya Mahajan
://wiki.contextgarden.net/Command/defineMPinstance Is there any update on this? This bug breaks the visualcounter module. I am including a smaller minimal example: \defineMPinstance [important] [metafun] [textcolor=red] \starttext \startMPcode{important} draw textext("Am I red?") ; \

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

2014-04-24 Thread Hans Hagen
/defineMPinstance Is there any update on this? This bug breaks the visualcounter module. I am including a smaller minimal example: \defineMPinstance [important] [metafun] [textcolor=red] \starttext \startMPcode{important} draw textext("Am I red?") ; \stopMPcode \stoptext It fails als

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

2014-04-21 Thread Wolfgang Schuster
Am 21.04.2014 um 22:18 schrieb Aditya Mahajan : > On Tue, 15 Apr 2014, Aditya Mahajan wrote: > >> textcolor does not work any longer with MPinstance. Consider the following >> example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance > > Is there

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

2014-04-21 Thread Aditya Mahajan
On Tue, 15 Apr 2014, Aditya Mahajan wrote: textcolor does not work any longer with MPinstance. Consider the following example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance Is there any update on this? This bug breaks the visualcounter module. I am including a smaller

[NTG-context] textcolor not working with MPinstance

2014-04-15 Thread Aditya Mahajan
Hi, textcolor does not work any longer with MPinstance. Consider the following example from the wiki: http://wiki.contextgarden.net/Command/defineMPinstance \defineMPinstance [important] [metafun] % needs to be inherited from the global metafun instance [textcolor=red

Re: [NTG-context] MetaPost label direction prefix

2013-08-25 Thread Hans Hagen
els Or maybe even a higher-level switch: \defineMPinstance [fun-with-old-MP] [metafun] [compatibility=plain] %% default* | plain As I wouldn't be surprised if there were more differences we need to handle. maybe later We will

Re: [NTG-context] MetaPost label direction prefix

2013-08-24 Thread Marco Patzer
plain_compatibity_data ; enddef ; Or maybe even a higher-level switch: \defineMPinstance [fun-with-old-MP] [metafun] [compatibility=plain] %% default* | plain > As I wouldn't be surprised if there were more differences we need > to handle. We will find out

Re: [NTG-context] gnuplot module broken

2013-04-19 Thread Mojca Miklavec
test idea how to >> account for this in the module without a major rewrite. In case that >> Hans wants to keep the new functionality, I either need [quite some] >> help with the module or I'll simply stick to TeX Live 2012 for the >> foreseeable future ;) > > > For the

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Hans Hagen
iable. The setups key from \defineMPinstance seems to to the job, but it's TeX, not MetaPost. What comes to mind is a \processMPbuffer before every MPgraphic: \startbuffer[foo] size := \somesize ; \stopbuffer \startuseMPgraphic{alpha} fill unitcircle scaled size; \stopuseMPgraphic

[NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
; \stopuseMPgraphic \starttext \def\somesize{1cm} \useMPgraphic{alpha} %% diameter = 1cm \def\somesize{2cm} \useMPgraphic{alpha} %% diameter = 1cm \stoptext I looked into \setupMPvariables, but I couldn't manage to assign them to an MP variable. The setups key from \defineMPinstance seems

Re: [NTG-context] Specifying MP instance for MPpage

2013-02-24 Thread Hans Hagen
On 2/23/2013 9:03 PM, Marco Patzer wrote: \defineMPinstance [myinstance] [metafun] [textcolor=green] \starttext \startMPpage draw textext("Foo") scaled 1cm; \stopMPpage \stoptext You can add this to cont-new.mkiv: \unprotect \def\c!instance{instance} \unex

[NTG-context] Specifying MP instance for MPpage

2013-02-23 Thread Marco Patzer
Hi, how to specify a particular MP instance for a MPpage? \defineMPinstance [myinstance] [metafun] [textcolor=green] \starttext \startMPpage draw textext("Foo") scaled 1cm; \stopMPpage \stoptext Marco signature.asc Description: Digital

Re: [NTG-context] gnuplot module broken

2013-02-19 Thread Hans Hagen
t for this in the module without a major rewrite. In case that Hans wants to keep the new functionality, I either need [quite some] help with the module or I'll simply stick to TeX Live 2012 for the foreseeable future ;) For the (not texlive) module use: \defineMPinstance[gnuplot]

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|no and

Re: [NTG-context] MetaPost instance mechanism broken

2012-12-06 Thread Hans Hagen
On 12/6/2012 8:10 PM, Marco Patzer wrote: On 2012–11–25 Marco Patzer wrote: in one of the last few betas the MetaPost instance mechanism broke. Did the interface change again? The following does not work on today's beta, only “alpha” and “gamma” are printed. \defineMPinstance [myins

Re: [NTG-context] MetaPost instance mechanism broken

2012-12-06 Thread Marco Patzer
On 2012–11–25 Marco Patzer wrote: > in one of the last few betas the MetaPost instance > mechanism broke. Did the interface change again? The following does not work on today's beta, only “alpha” and “gamma” are printed. \defineMPinstance [myinstance] [metafun] \startuseMPgr

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Aditya Mahajan
On Sun, 25 Nov 2012, Marco Patzer wrote: Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic \starttext\null \useMPgraphic{myinstance

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Wolfgang Schuster
Am 25.11.2012 um 18:11 schrieb Marco Patzer : > Hi, > > in one of the last few betas the MetaPost instance > mechanism broke. > > \defineMPinstance > [myinstance] > [metafun] > > \startuseMPgraphic{mympgraphic} > fill fullsquare scaled 1cm wi

[NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic \starttext\null \useMPgraphic{myinstance::mympgraphic} \stoptext Marco

Re: [NTG-context] [NTG-Context] MetaPost capacity exceeded.

2012-11-15 Thread Hans Hagen
\starttext \defineMPinstance [myfun-a] [format=metafun] \defineMPinstance [myfun-b] [format=metafun] \startMPdefinitions{myfun-a} color MyColor ; MyColor := (1,0,0) ; \stopMPdefinitions \startMPdefinitions{myfun-b} color MyColor ; MyColor := (0,1,0) ; \stopMPdefinitions \startus

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

2012-06-10 Thread Alfredo Catalina
nt -name, size, etc- inside a startuseMPgraphic > environment? > > > > \startuseMPgraphic{map} > > > > \stopuseMPgraphic > > - http://wiki.contextgarden.net/Command/defineMPinstance > - http://wiki.contextgarden.net/Command/setupMPinstance > > Wolfgang > > &

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

2012-06-10 Thread Meer, H. van der
} \stopuseMPgraphic - 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

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.context

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 wrote: Thanks a lot Hans for implementing this. Wikified: http://wiki.contextgarden.net/Command/defineMPinstance http://wiki.contextgarden.net/Command/setupMPinstance Best wishes Marco With the

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
gt; As I've used 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/C

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Hans Hagen
On 8-5-2012 19:19, Marco wrote: On 2012-05-08 Hans Hagen wrote: On 8-5-2012 19:01, Marco wrote: On 2012-05-05 Hans Hagen wrote: Did I? My bad ;) This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext("some

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
On 2012-05-08 Hans Hagen wrote: > On 8-5-2012 19:01, Marco wrote: > > On 2012-05-05 Hans Hagen wrote: > > Did I? My bad ;) > > This code fails: > > > > \defineMPinstance [mympinstance] [metafun] [textcolor=red] > > > > \starttext > &g

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Hans Hagen
On 8-5-2012 19:01, Marco wrote: On 2012-05-05 Hans Hagen wrote: Did I? This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext("some text") ; \stopMPcode \startMPcode{mympinstance} draw textext(

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
On 2012-05-05 Hans Hagen wrote: This code fails: \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext("some text") ; \stopMPcode \startMPcode{mympinstance} draw textext("some text") ; \stopMPco

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
tafun] [textstyle=bold, textcolor=darkgreen, setups=mp:instance:one] \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext("some text") ; \stopMPcode \startMPcode{mympinstance} draw textext("some text

Re: [NTG-context] MPdefinitions

2011-05-23 Thread Vedran Miletić
2011/5/23 Wolfgang Schuster > > Am 23.05.2011 um 17:37 schrieb Vedran Miletić: > > 2011/5/23 Wolfgang Schuster > >> Please send a complete example! >> > > Sure: > > […] > > > Add > > \defineMPinstance > [solvers] > [format=metafu

Re: [NTG-context] MPdefinitions

2011-05-23 Thread Wolfgang Schuster
Am 23.05.2011 um 17:37 schrieb Vedran Miletić: > 2011/5/23 Wolfgang Schuster > Please send a complete example! > > Sure: > > […] Add \defineMPinstance [solvers] [format=metafun, extensions=yes, initializations=yes] before \startMPdefintions or omit the argume

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-22 Thread Stefan Müller
raw btex B etex shifted (5cm,0) ; boundary := (boundingbox currentpicture) enlarged 3mm ; flag := true ; \stopMPpage \stoptext So, perhaps, we can have a `reset` key to \defineMPinstance, and let the user choose whether to reset after each graphic or not. If `reset=yes` is chosen, then such e

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-21 Thread Aditya Mahajan
color white ; draw A ; draw btex A etex ; draw B ; draw btex B etex shifted (5cm,0) ; boundary := (boundingbox currentpicture) enlarged 3mm ; flag := true ; \stopMPpage \stoptext So, perhaps, we can have a `reset` key to \defineMPinstance, and let the user choose wh

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread Hans Hagen
luigi scarso wrote: On Tue, Nov 17, 2009 at 4:30 PM, Hans Hagen wrote: fyi: you can define extra mp instances in order avoid clashes: \defineMPinstance[whatever1][format=metafun,extensions=yes,initializations=yes] \defineMPinstance[whatever2][format=mpost] \startMPdefinitions{whatever1

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 4:30 PM, Hans Hagen wrote: > fyi: > > you can define extra mp instances in order avoid clashes: > > \defineMPinstance[whatever1][format=metafun,extensions=yes,initializations=yes] > \defineMPinstance[whatever2][format=mpost] > > \startMPdefini

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread Hans Hagen
luigi scarso wrote: On Tue, Nov 17, 2009 at 3:29 PM, Curiouslearn wrote: Also I like them : google search Metapost metaobj Metapost metagraph Metapost UML Metapost melusine fyi: you can define extra mp instances in order avoid clashes: \defineMPinstance[whatever1][format=metafun,extensions

[NTG-context] new beta

2009-06-04 Thread Hans Hagen
Color ; \stopMPcode new instances, like the predefined extrafun, are defined as \defineMPinstance[extrafun][format=metafun,extensions=yes,initializations=yes] so, if you use tricky mp code, you can create your own instance (predefined are metafun, extrafun, nofun and metapost) you can redirect to an ins