Re: [NTG-context] Error: Missing number, treated as zero?

2013-01-16 Thread Wolfgang Schuster
Am 16.01.2013 um 17:24 schrieb H. Özoguz : > Hi there, > > I am working on a book, and today compiling fails with the following error: > > ++ > ! Missing number, treated as zero. > > system > tex > error on line 52 in file kap03.tex: Missing number, treated as > zero .

[NTG-context] Error: Missing number, treated as zero?

2013-01-16 Thread H. Özoguz
Hi there, I am working on a book, and today compiling fails with the following error: ++ ! Missing number, treated as zero. system > tex > error on line 52 in file kap03.tex: Missing number, treated as zero ... (paragraph from the book) n \v_spac_indentation_c

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Wolfgang Schuster
Am 16.01.2013 um 16:39 schrieb Marco Patzer : > On 2013–01–16 Wolfgang Schuster wrote: > >> \definevimytping >> [C] >> […, >> before={\ifhmode\startInlineBackground\else\startDisplayBackground\fi}, >> after={\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, >> …] > > That's

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Aditya Mahajan
On Wed, 16 Jan 2013, Wolfgang Schuster wrote: You could also ask Aditya to use different keys for display (e.g. before/aftter) and inline (e.g. left/right) code blocks. That's a nice suggestion. I have implemented it in the dev version of the filter module: https://github.com/adityam/filter/t

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
On 2013–01–16 Wolfgang Schuster wrote: > \definevimytping > [C] > […, >before={\ifhmode\startInlineBackground\else\startDisplayBackground\fi}, >after={\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, >…] That's a good idea and it seems to work. > You could also ask A

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Wolfgang Schuster
Am 16.01.2013 um 15:51 schrieb Marco Patzer : > Hi, > > I need different settings for code in inline and block mode. See the > following example: > > \usemodule [vim] > \definetextbackground [C] [location=text] > \definevimtyping [C] > [syntax=c, > before={\starttextbackground[C]}, > after

[NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
Hi, I need different settings for code in inline and block mode. See the following example: \usemodule [vim] \definetextbackground [C] [location=text] \definevimtyping [C] [syntax=c, before={\starttextbackground[C]}, after=\stoptextbackground, margin=2em] \starttext This is C: \inlin

Re: [NTG-context] Deactivating Grid-Setting for titles

2013-01-16 Thread H. Özoguz
Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl: \setuphead[section,subsection,?][grid=no] or \setuphead[grid=no] Seems that context ignores grid=no, and the global grid=yes in setuplayout dominates all. Is there another way to deactivate grid-setting or force an definite number of

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Philipp Gesang
· > Hello, > > On Wed, 16 Jan 2013 12:47:21 +0100, Philipp Gesang > wrote: > > >Lookup the correct string from a table? > > thanks for the idea - > > - in other words, we have to keep running results somewhere; Yes, this is simple because the order of processing doesn’t change -- as

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 16 Jan 2013 12:47:21 +0100, Philipp Gesang wrote: Lookup the correct string from a table? thanks for the idea - - in other words, we have to keep running results somewhere; the algorithm fills a table with texts for each page, and each \setlayer takes one value back, so we

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Philipp Gesang
· > Now, I have a code which does much expected, but I'm not able to pass the > desired content to setups/layer: > > > \setupbodyfont[30pt] > > \starttext > A > > \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] > \defineoverlay[beforetext][{\setups[befo

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, @Aditya: Thanks for the tip - maybe some inspiration for me. Anyway, I keep on trying to create my previously described function with Lua. Now, I have a code which does much expected, but I'm not able to pass the desired content to setups/layer: \setupbodyfont[30pt] \starttext