[NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just to confirm - the role of the text after \start*: \startsetups thumbs - on http://wiki.contextgarden.net/Thumb_index and \startJSpreamble MyStuff used later - in the last mails between Vedran and Hans. Do I understand well that thumbs and MyStuff used later in both cases

Re: [NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Wolfgang Schuster
Am 10.03.2011 um 15:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I fell a bit confused as normally such names are enclosed in brackets; thus I'd rather expect syntax like: \startsetups[thumbs] ... \stopsetups You can write \startsetups[long name with spaces] ... \stopsetups

Re: [NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks for the explanation. You can write \startsetups[long name with spaces] ... \stopsetups or \startsetups shortname ... \stopsetups Wolfgang I guess the same approach in general, so also: \startJSpreamble[MyStuff used later] Best regards, Lukas -- Ing. Lukáš Procházka

Re: [NTG-context] \startsetups amd \startJSpreamble

2011-03-10 Thread Wolfgang Schuster
Am 10.03.2011 um 15:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: I guess the same approach in general, so also: \startJSpreamble[MyStuff used later] No, you need braces here, e.g. \startJSpreamble {Mystuff used later} ... Wolfgang

[NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

2011-02-18 Thread Vnpenguin
] \usetypescript[palatino] \switchtobodyfont[palatino,20pt] \setupcolors[state=start] \definelayer[myLayer] [width=\paperwidth, height=\paperheight] \startsetups layer \setlayer[myLayer][preset=lefttop,x=0.9\paperwidth,y=0.96\paperheight] {\switchtobodyfont[10pt

Re: [NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

2011-02-18 Thread Wolfgang Schuster
Am 18.02.2011 um 18:59 schrieb Vnpenguin: \usetypescript[palatino] \switchtobodyfont[palatino,20pt] Replace this (both lines) with \setupbodyfont[palatino,20pt] Wolfgang ___ If your question is of interest to

Re: [NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

2011-02-18 Thread Vnpenguin
On Fri, Feb 18, 2011 at 19:03, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.02.2011 um 18:59 schrieb Vnpenguin: \usetypescript[palatino] \switchtobodyfont[palatino,20pt] Replace this (both lines) with \setupbodyfont[palatino,20pt] Wolfgang Wow, it works now. Thank

Re: [NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

2011-02-18 Thread Wolfgang Schuster
Am 18.02.2011 um 19:08 schrieb Vnpenguin: Wow, it works now. You can also separate the style and content of a layer with \setlayerframed, e.g. \setlayerframed [mylayer] [x=..., y=..., frame=off, style={\switchtobodyfont[10pt]}] {text} Wolfgang

Re: [NTG-context] \switchtobodyfont does not work inside of \startsetups layer ?

2011-02-18 Thread Vnpenguin
On Fri, Feb 18, 2011 at 20:11, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.02.2011 um 19:08 schrieb Vnpenguin: Wow, it works now. You can also separate the style and content of a layer with \setlayerframed, e.g. \setlayerframed  [mylayer]  [x=...,   y=...,  

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you, Wolfgang, this works better. Actually I need to use '%' in the condition and that fails: --- ... \startrawsetups layer % The value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw a filled rectangle on % the left or right side

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Hans Hagen
On 25-1-2011 8:44, Wolfgang Schuster wrote: \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set the appropriate background, % = n-th page of a PDF, and also to draw a filled rectangle on % the left or right side (depending on whether n

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Wolfgang Schuster
Am 25.01.2011 um 09:00 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Thank you, Wolfgang, this works better. Actually I need to use '%' in the condition and that fails: --- ... \startrawsetups layer % The value of 'n' is used here to set the appropriate background, % = n-th page

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks you, Hans, - On Tue, 25 Jan 2011 09:33:04 +0100, Hans Hagen pra...@wxs.nl wrote: On 25-1-2011 8:44, Wolfgang Schuster wrote: \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set the appropriate background, % = n-th page of a PDF

[NTG-context] Problem calling Lua during \startsetups

2011-01-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a bit weird thing when I used Lua in \startsetup: --- \definelayer[T][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \directlua{n, m = 1, 11} % Initialization \startsetups layer % In my real code (= not in this example) % the value of 'n' is used here to set

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-24 Thread Wolfgang Schuster
Am 25.01.2011 um 08:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I encountered a bit weird thing when I used Lua in \startsetup: --- \definelayer[T][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \directlua{n, m = 1, 11} % Initialization \startsetups layer