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 (depe

[NTG-context] Layers by native code vs. by Lua

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a weird thing happens when setting up layers - I'm getting different results depending on whether setup is performed by native Ctx code or by Lua: --- \setuppapersize[A4,landscape][A4,landscape] \setuplayout[page] \definelayer[T][x=10mm,y=0mm] \startuseMPgraphic{VerticalRule} draw (0

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 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, and also to draw

Re: [NTG-context] Layers by native code vs. by Lua

2011-01-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 25 Jan 2011 16:31:24 +0100, Hans Hagen wrote: i have a patch now that handles \setupbackgrounds[page][setups=S1,background={T}] \setupbackgrounds[page][setups=lua(S2),background={T}] \setupbackgrounds[page][setups=S3,background={T}] \setupbackgrounds[page][setups={S1,lua(S2

Re: [NTG-context] first-setup for windows

2011-01-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Dear Mojca, On Wed, 26 Jan 2011 22:32:34 +0100, Mojca Miklavec wrote: So if you thought this would be useful (actually it may depend on whether an explicit 'mtxrun --generate' after update is necessary what I don't know - It *is* necessary if some new files appear. The problem was that usua

[NTG-context] Test for existence of a Ctx buffer by Lua

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to test by Lua whether a Ctx buffer exists? --- \startbuffer[A] Aaa aaa \stopbuffer \starttext \getbuffer[A] Test %\getbuffer[NonExisting] Vvv \stoptext --- To get something like 'context.buffers.A' -> no-nil and 'context.buffers.NonExisting' -> nil? Best regards, Lukas

Re: [NTG-context] first-setup for windows

2011-01-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 28 Jan 2011 16:29:03 +0100, Mojca Miklavec wrote: 2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. : - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today although it did yesterday. (I forgot to notice that the computer was powe

Re: [NTG-context] Problems with (features of?) hangaround text

2011-02-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks Aditya, \placefigure does the job: - multiple paragraphs flow the picture - OK, - heads may flow the picture as well ("\setupheads[aligntitle=float]" required) - OK, - "tabulate" is still drawn over the picture, but it doesn't cause jumping to the bottom of the picture - useful

Re: [NTG-context] Problems with (features of?) hangaround text (case study 2)

2011-02-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, still some problems inserting a "tabulate" next to the picture (to be flowed around) - see the case study: - Case 1: There is some (unwanted) space bellow the picture which is not occupied by the surrounding text. It seems the height of "tabulate" is added bellow the picture and create

[NTG-context] \em around \placefigure (bug?)

2011-02-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the \em statement being placed as the first command of a paragraph to flow around a \placefigure seems to SCRATCH the figure instead of to flow around (bug?). See the minimal example: --- \starttext \placefigure [left,none] {} { \startMPcode draw (0,0)--(6cm,6cm);

[NTG-context] \placefigure and \em (again)

2011-02-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, sorry for repeating this topic, maybe it's not too attractive. Please, have a look to the following problem. I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the "free" area formed (affected)

Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks for the answers. I'm familiar with using \dontleavehmode when needing to keep a figure midaligned; I had no idea that this would be a similar situation (and solution). Best regards, Lukas On Fri, 25 Feb 2011 09:37:40 +0100, Wolfgang Schuster wrote: Am 25.02.2011 um 09:16 schr

[NTG-context] Letters in the first level head instead of numbers

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, maybe already questioned in the past, but I cannot find the answer: How to change the numbering style for a particular head (e.g. section) from numbers (1, 2...) to letters (A, B...) - which option and value (http://wiki.contextgarden.net/Reference/en/setuphead)? Thank you in advance.

Re: [NTG-context] Letters in head; disabling parental numbers

2011-02-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thank you for the piece of code. \definestructureconversionset[myconversion][numbers,Characters][numbers] \setupheads[sectionconversionset=myconversion] Could you describe the meaning of the second and the third parameter? I found only this on wiki (http://wiki.contextgarden.net/Table

[NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what exactly should the "ownnumber=yes|no" option do in \setuphead? The following code crashes Ctx: --- %\setuphead[subsection][number=no] % OK \setuphead[subsection][ownnumber=yes] % ERROR \starttext \chapter{Ch1} \section{Sec1} \subsection{SSec1} \stoptext --- Is it possi

Re: [NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Works perfectly, thanks a lot! Lukas what exactly should the "ownnumber=yes|no" option do in \setuphead? It disables the automatic numbering to allow you set your own number. \definehead[topic][section] \setuphead [topic][ownnumber=yes] \starttext \section{Section} \topic{3}{Topic} \st

[NTG-context] Which packages?

2010-03-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm new to ConTeXt; I've been working with LaTeX but I'd like to try ConTeXt due to some reasons. The question is - - is there a manual, web site or something where comparison of LaTeX/ConTeXt packages/modules would be done? I'm interested how to include a part of a text file and how

Re: [NTG-context] Which packages?

2010-03-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks to all for the answers. I'll keep on trying. Lukas On Mon, 29 Mar 2010 18:45:38 +0200, Mojca Miklavec wrote: 2010/3/29 Procházka Lukáš Ing. - Pontex s. r. o. wrote: - is there a manual, web site or something where comparison of LaTeX/ConTeXt packages/modules would be

Re: [NTG-context] ConTeXt name/branding

2010-04-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my opinion is that ConTeXt including capitalization of some preselected letters is OK. Imagine - how new mode of work brings ConTeXt (and other TeX family) to someone who knows only or has been working with Word before! If it's to much to someone to remember correct "ConTeXt" writing (

<    3   4   5   6   7   8