[NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
Hi! I have trouble to define macros which are only visible inside a block defined using `\definestartstop`: ```tex \setuppapersize[A6] \definestartstop[Foo][before={Foo}] \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]

[NTG-context] export images

2015-03-20 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, How do we get images in the export? Here is my sample (also attached): == \setupbackend[export=yes] \starttext \startalignment [middle] \dontleavehmode \externalfigure[mill.png] \stopalignment \stoptext == div output: == div div class=image

Re: [NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
OK, took me a while to figure out that this was not an empty response but an attachement was available ;) I did a quick test run and realized that it seems to do what I want, I'll take a further look into it tommorrow, thank you! 2015-03-20 17:23 GMT+01:00 Hans Hagen pra...@wxs.nl: On

[NTG-context] # in file name

2015-03-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to insert a figure PrehlSit#A2.pdf - a file whose name contains # - by Lua. How to code the name? I tried: \startluacode context.pagefigure({PrehlSit#A2.pdf}, {scale=500}) context.pagefigure({PrehlSit\#A2.pdf}, {scale=500})

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Gerben Wierda
Sorry to ask again, but is there no solution? G On 16 Mar 2015, at 15:03, Gerben Wierda gerben.wie...@rna.nl wrote: On 15 Mar 2015, at 23:24, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl: I am running into

Re: [NTG-context] # in file name

2015-03-20 Thread Hans Hagen
On 3/20/2015 2:25 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to insert a figure PrehlSit#A2.pdf - a file whose name contains # - by Lua. How to code the name? I tried: \startluacode context.pagefigure({PrehlSit#A2.pdf}, {scale=500})

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Wolfgang Schuster
Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl: Sorry to ask again, but is there no solution? Can you send a *working* minimal example! Wolfgang ___ If your question is of interest to others

Re: [NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Hans Hagen
On 3/20/2015 12:05 PM, Norbert Melzer wrote: Hi! I have trouble to define macros which are only visible inside a block defined using `\definestartstop`: ```tex \setuppapersize[A6] \definestartstop[Foo][before={Foo}] \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}]