Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Tim Steenvoorden
Thanks Wolfgang, that’s a clear and easy explanation! Cheers, Tim Op za 10 feb. 2018 om 13:46 schreef Wolfgang Schuster < schuster.wolfg...@gmail.com> > > Tim Steenvoorden > 10. Februar 2018 um 12:44 > > Thanks Otared! Works like a charm! > > Out of curiosity, could

Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Wolfgang Schuster
Tim Steenvoorden 10. Februar 2018 um 12:44 Thanks Otared! Works like a charm! Out of curiosity, could you explain the mechanics behind this? I know it is a commonly used trick in TeX macro definitions, but I don’t know how it changes TeX’s understanding of

Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Tim Steenvoorden
Thanks Otared! Works like a charm! Out of curiosity, could you explain the mechanics behind this? I know it is a commonly used trick in TeX macro definitions, but I don’t know how it changes TeX’s understanding of the tokes it parses. Cheers, Tim Op vr 9 feb. 2018 om 20:50 schreef Otared Kavian

Re: [NTG-context] Unexpected emergency stop

2018-02-09 Thread Otared Kavian
Hi Tim, Welcome back to ConTeXt! When one defines a command, in particular when using the brackets […], it is wise to put a percent sign at the end of the line if one changes the line on which the macro is defined. In your case, saying \definemacro\see[#1:#2]% {\dosee{#1}{#2}}

[NTG-context] Unexpected emergency stop

2018-02-09 Thread Tim Steenvoorden
Dear all, After some time I’m back to ConTeXt and I dug up some old macros. I used to define a \see macro to automatically insert labels like “chapter”, "figure" etc. in front of a reference based on the structure of the label. Below you'll find its definition. It worked in MKIV about two years