[NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Hi Wolfgang! · > > Am 11.06.2012 um 21:06 schrieb Philipp Gesang: > > > Hi Hans! > > > > · > > > >> On 11-6-2012 10:01, Philipp Gesang wrote: > >>> Hi all, > >>> > >>> there appears to be something special about how the key-value > >>> list works with \setuplabeltext: > >>> > >>> ··· > >>> \setuplabeltext [ > >>>foo=bar, %% <- comma not allowed here? > >>> % foo=bar %% <- works > >>> ] > >>> \starttext > >>> \labeltext{foo} > >>> \stoptext > >>> ··· > >>> > >>> Normally the trailing comma causes no trouble, but here it won’t > >>> even compile. > >> > >> indeed a slightly different parser is used here > > > > I’ll watch out for these cases, then. > > \definepalet has a similar problem because it uses also a custom parser. Dear others, please contribute if you know about further setups whose parameters behave in a non-standard way. As this is quite counterintuitive, I’d like to wikify any known exceptions somewhere over here: http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups Thanks Philipp > > Wolfgang > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgprCApaJVao5.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On Mon, 11 Jun 2012, Philipp Gesang wrote: Dear others, please contribute if you know about further setups whose parameters behave in a non-standard way. As this is quite counterintuitive, I’d like to wikify any known exceptions somewhere over here: http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups That is not a place where I will look for if I were confused. Perhaps it is better to create a patch entitled "Its not a bug, its a feature" (or something similar, that lists things like this (and the left vs leftflushed that is listed in the FAQ). Aditya___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On Mon, 11 Jun 2012, Aditya Mahajan wrote: On Mon, 11 Jun 2012, Philipp Gesang wrote: Dear others, please contribute if you know about further setups whose parameters behave in a non-standard way. As this is quite counterintuitive, I’d like to wikify any known exceptions somewhere over here: http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups That is not a place where I will look for if I were confused. Perhaps it is better to create a patch entitled "Its not a bug, its a feature" (or something similar, that lists things like this (and the left vs leftflushed that is listed in the FAQ). Other potential topics that fit better on such a page: * Why is space after \externalfigure[..][..] gobbled? (in the FAQ) * Why does \framed not work in the beginning of a line (or why we need \dontleavehmode) (in the FAQ) * Why page=yes does not give a page break before sections (why we need to add continue=no) (in the ML a few days ago) * Why does marking=on not work when page-layout=print-layout (the marking is outside the page-layout). (in the ML a few weeks ago, and on tex.sx) Aditya ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Hi Aditya! · > On Mon, 11 Jun 2012, Philipp Gesang wrote: > > >Dear others, please contribute if you know about further setups > >whose parameters behave in a non-standard way. As this is quite > >counterintuitive, I’d like to wikify any known exceptions > >somewhere over here: > >http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups > > That is not a place where I will look for if I were confused. Of course this was meant in addition to the respective entries in the reference, where I would look first. > Perhaps it is better to create a patch entitled "Its not a bug, its > a feature" (or something similar, that lists things like this (and > the left vs leftflushed that is listed in the FAQ). “Caveats” might work well, but we can redirect anyways. I’d add the \setupnote vs. \setupnotation as I always have to look up which is which. Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpocjbfwkaTc.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Hi Aditya! · > On Mon, 11 Jun 2012, Aditya Mahajan wrote: > >On Mon, 11 Jun 2012, Philipp Gesang wrote: > Other potential topics that fit better on such a page: > > * Why is space after \externalfigure[..][..] gobbled? (in the FAQ) > * Why does \framed not work in the beginning of a line (or why we need > \dontleavehmode) (in the FAQ) > * Why page=yes does not give a page break before sections (why we > need to add continue=no) (in the ML a few days ago) > * Why does marking=on not work when page-layout=print-layout (the > marking is outside the page-layout). (in the ML a few weeks ago, and > on tex.sx) Let’s not forget the float vs. paragraph issue: http://tex.stackexchange.com/questions/56388/avoid-line-break-after-macro Philipp pgpQsEjIursuO.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Am 12.06.2012 um 00:22 schrieb Aditya Mahajan: > On Mon, 11 Jun 2012, Aditya Mahajan wrote: > >> On Mon, 11 Jun 2012, Philipp Gesang wrote: >> >>> Dear others, please contribute if you know about further setups >>> whose parameters behave in a non-standard way. As this is quite >>> counterintuitive, I’d like to wikify any known exceptions >>> somewhere over here: >>> http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups >> >> That is not a place where I will look for if I were confused. Perhaps it is >> better to create a patch entitled "Its not a bug, its a feature" (or >> something similar, that lists things like this (and the left vs leftflushed >> that is listed in the FAQ). > > Other potential topics that fit better on such a page: > > * Why is space after \externalfigure[..][..] gobbled? (in the FAQ) This has in MkIV a long time ago. Wolfgang ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 2012-06-11 Philipp Gesang wrote: > Dear others, please contribute if you know about further setups > whose parameters behave in a non-standard way. Here's another candidate: \usepath http://article.gmane.org/gmane.comp.tex.context/75727 > As this is quite counterintuitive, I’d like to wikify any known > exceptions somewhere over here: How about unifying the interface? IMO that would make more sense then bury the “caveats” somewhere deep in the wiki. Marco ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 12-6-2012 13:42, Marco wrote: On 2012-06-11 Philipp Gesang wrote: Dear others, please contribute if you know about further setups whose parameters behave in a non-standard way. Here's another candidate: \usepath http://article.gmane.org/gmane.comp.tex.context/75727 that's one that can be dealt with (I'll adapt that one) As this is quite counterintuitive, I’d like to wikify any known exceptions somewhere over here: How about unifying the interface? IMO that would make more sense then bury the “caveats” somewhere deep in the wiki. that's currently not feasable for all - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 2012-06-12 Hans Hagen wrote: > On 12-6-2012 13:42, Marco wrote: > > On 2012-06-11 Philipp Gesang wrote: > > > >> Dear others, please contribute if you know about further setups > >> whose parameters behave in a non-standard way. > > > > Here's another candidate: \usepath > > > > http://article.gmane.org/gmane.comp.tex.context/75727 > > that's one that can be dealt with (I'll adapt that one) While you're at it, check \usesubpath as well. I didn't test, but assume it has the same issue. > >> As this is quite counterintuitive, I’d like to wikify any known > >> exceptions somewhere over here: > > > > How about unifying the interface? IMO that would make more sense > > then bury the “caveats” somewhere deep in the wiki. > > that's currently not feasable for all What's the reason? Performance of backwards compatibility? Personally, I would sacrifice some runtime in favour of a more uniform interface. That's one of the main ideas that define ConTeXt and set it apart from other TeX macro packages. Regarding the backwards compatibility, wasn't MkIV the chance to introduce incompatible changes (changes for improving the user interface :)? Marco ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 12-6-2012 16:24, Marco wrote: While you're at it, check \usesubpath as well. I didn't test, but assume it has the same issue. uses the same code As this is quite counterintuitive, I’d like to wikify any known exceptions somewhere over here: How about unifying the interface? IMO that would make more sense then bury the “caveats” somewhere deep in the wiki. that's currently not feasable for all What's the reason? Performance of backwards compatibility? more that we cannot use the regular parser Personally, I would sacrifice some runtime in favour of a more uniform interface. That's one of the main ideas that define ConTeXt and set it apart from other TeX macro packages. if you have completed the list i can see what can be done otherwise (runtime is often not the reason esp not for macros that get used only a few times in a run) Regarding the backwards compatibility, wasn't MkIV the chance to introduce incompatible changes (changes for improving the user interface :)? sure Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Hi Hans! · > On 12-6-2012 16:24, Marco wrote: > > >While you're at it, check \usesubpath as well. I didn't test, but > >assume it has the same issue. > > uses the same code > > As this is quite counterintuitive, I’d like to wikify any known > exceptions somewhere over here: > >>> > >>>How about unifying the interface? IMO that would make more sense > >>>then bury the “caveats” somewhere deep in the wiki. > >> > >>that's currently not feasable for all > > > >What's the reason? Performance of backwards compatibility? > > more that we cannot use the regular parser > > >Personally, I would sacrifice some runtime in favour of a more > >uniform interface. That's one of the main ideas that define ConTeXt > >and set it apart from other TeX macro packages. > > if you have completed the list i can see what can be done otherwise I’ll be collecting candidates for the wiki page until saturday and then write up a draft, maybe submit it to the list for review first. I can draw up a preliminary list first so you can have a look at it. Philipp > (runtime is often not the reason esp not for macros that get used > only a few times in a run) > > >Regarding the backwards compatibility, wasn't MkIV the chance to > >introduce incompatible changes (changes for improving the user > >interface :)? > > sure > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpPkHyb0m5tn.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 12-6-2012 16:41, Philipp Gesang wrote: I’ll be collecting candidates for the wiki page until saturday and then write up a draft, maybe submit it to the list for review first. I can draw up a preliminary list first so you can have a look at it. next week is ok Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
Hi Hans! · > On 12-6-2012 16:41, Philipp Gesang wrote: > > >I’ll be collecting candidates for the wiki page until saturday > >and then write up a draft, maybe submit it to the list for review > >first. I can draw up a preliminary list first so you can have a > >look at it. > > next week is ok Here’s some pre-alpha draft version with some links I collected: https://gist.github.com/2941284 (The gist is auto-converted; use the “raw” or “edit” buttons to view the code. The content of is messed up in the output.) Unfortunately I won’t be able to complete it this weekend as I planned to, because Reality™ demands that I spend my time on paperwork instead. This means there’s plenty of times for further suggestions. Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgppoJPF565Vh.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 16-6-2012 15:19, Philipp Gesang wrote: Hi Hans! · On 12-6-2012 16:41, Philipp Gesang wrote: I’ll be collecting candidates for the wiki page until saturday and then write up a draft, maybe submit it to the list for review first. I can draw up a preliminary list first so you can have a look at it. next week is ok Here’s some pre-alpha draft version with some links I collected: https://gist.github.com/2941284 (The gist is auto-converted; use the “raw” or “edit” buttons to view the code. The content of is messed up in the output.) Unfortunately I won’t be able to complete it this weekend as I planned to, because Reality™ demands that I spend my time on paperwork instead. palets ... the trailing comma is actually an error but anyway we can have: \def\colo_palets_define_one#1#2% get rid of { } {\doifassignmentelse{#2} % catch empty entries {\colo_palets_define_two{#1}[#2]} {\colo_palets_define_three{#1}{#2}}} \def\colo_palets_define_three#1#2% {\ifcsname\??colorpaletspecification#2\endcsname \processcommacommand[\csname\??colorpaletspecification#2\endcsname]{\colo_palets_define_one{#1}}% \fi} which then also supports: \setupcolors [x11] \definepalet [colorful] [primary=green] \definepalet [bleak] [primary=darkgray,colorful] \starttext \setuppalet [colorful] \color[primary]{Ain’t I a colorful entity?} \setuppalet [bleak] \color[primary]{Ain’t I a colorful entity?} \stoptext i.e. a hidden feature of referencing to already defined palets. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___