[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.

[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)

[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

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 creates

[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 mojca.miklavec.li...@gmail.com wrote: 2011/1/28 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: - But I'm wondering about why 'mtxrun' doesn't find the 'context.lua' today although it did yesterday. (I forgot to notice

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 mojca.miklavec.li...@gmail.com 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

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

[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

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,

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 pra...@wxs.nl 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}]

[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 the

[NTG-context] Vertical rules in multiple column mode

2011-01-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following code generates 3column pages: --- \starttext \startcolumns[n=3,rule=on] \dorecurse{5}{\section{\recurselevel}\input knuth} \stopcolumns \stoptext --- You can see that the vertical bars on the page 1 don't reach the real bottom of the text height, whilst they do on

[NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to disable wrapping (breaking) very long lines being processed by \typefile? E.g. with a \definetyping option? Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147

Re: [NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the answer. But actually space= option doesn't affect what I need. See the attached example. The right thing is how the first abcdefABCDEF... line (u.txt) is typeset. In the second case, one A is replaced by , so we get abcdef BCDEF And Ctx breaks the line when

[NTG-context] Escaping from modes set for tabulate

2011-01-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to escape from modes (fonts) defined in \starttabulate[...]? I mean just for header - to escape the math mode and to switch to normal font temporarily: --- \starttext I get: \starttabulate[|lT|mc|p|] \NC Code \NC Symbol\NC Description \NC\NR \HL

[NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] \starttext \typefile[Model]{t2.txt} %{t.u8} %\startluacode context.typefile({Model}, t.u8)\stopluacode \stoptext --- Although a .pdf is generated,

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I just downloaded the last beta and it seems there is (again) a problem with \typefile a file with diacritics. Samples are attached. Best regards, Lukas On Tue, 12 Oct 2010 17:15:06 +0200, Hans Hagen pra...@wxs.nl wrote: this will work in the next beta (making zip now) -- Ing.

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now. (I've been using \setuptyping before and it used to work.) Lukas On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: You need \definetyping[Model

Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 13 Jan 2011 12:03:06 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I just downloaded the last beta and it seems there is (again) a problem with \typefile a file with diacritics

Re: [NTG-context] Replacing a piece of a paper

2011-01-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks to all for the answers, Peter's solution is closest to that I need. My code now is: --- \setuppapersize[A1,landscape] \setuplayout[page] \setuppositioning [state=overlay, yoffset=-12pt % Why? ] \starttext \startpositioning

Re: [NTG-context] Replacing a piece of a paper

2011-01-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the code. On Wed, 12 Jan 2011 10:30:39 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \define[2]\Replacement {\startTEXpage[background={foreground,replacement}]% \layeredtext [corner={right,bottom},location={left,top}]

[NTG-context] Replacing a piece of a paper

2011-01-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to handle a special problem. I guess ConTeXt would be useful for this purpose, although its primary function is to typeset. But - I have many drawings - they are black-and-white one-sided PDFs of A1 or A2 size (typical technical drawings). The bottom right area of size 210

Re: [NTG-context] Replacing a piece of a paper

2011-01-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 11 Jan 2011 17:45:53 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: An important question: overpainted for your personal needs or in order to remove some information from PDF that others are not supposed to see? Mojca I need to upgrade some drawings, or more

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I created a testing file which tests existence and type of (tex|context|document).(modes|arguments|variables) by Lua - see the attachments. It seems that: - Modes are accessible by tex.modes[a-mode]. - - tex.modes are 'false' by default. I.e. they are not 'nil' but 'false', even if

Re: [NTG-context] Passing and retrieveing a variable

2011-01-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks, - On Wed, 05 Jan 2011 21:41:13 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.01.2011 um 20:22 schrieb Procházka Lukáš: Hello, I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua.

[NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this example stopped working. I don't know exactly when, maybe with the newest Ctx beta. Let's have two sources: --- t.mkiv \mainlanguage[cz] \enableregime[cp1250] \starttext \input t2.mkiv AáSš \stoptext --- And: --- t2.mkiv AáSš --- The t2.mkiv is included by the main file

[NTG-context] Figure shifted down

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to place an \externalfigure deeper to some distance, shifted down, bellow the line or bellow the default position? To get: +--+ Aaa | A figure | bbb +--+ instead of: +--+ | A figure | Aaa +--+ bbb Thank you in advance.

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 21 Dec 2010 10:29:13 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: 2010/12/21 Procházka Lukáš Ing. - Pontex s. r. o. wrote: \mainlanguage[cz] It should probably be cs, not cz. I'm getting the same error message even with cs. Isn't cz country code and cs

Re: [NTG-context] Problem with encoding

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, thanks all for the answers and fixes. Lukas On Tue, 21 Dec 2010 11:11:33 +0100, Arthur Reutenauer arthur.reutena...@normalesup.org wrote: BTW: What is the difference what the COUNTRY code and the LANGUAGE code affects? In your case, you should use a language code since you want

Re: [NTG-context] Figure shifted down

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thank you! Lukas On Tue, 21 Dec 2010 12:11:44 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \defineframed[figureframe][frame=off,offset=overlay,location=low] \useexternalfigure[cow][cow][height=2ex] \starttext text \externalfigure[cow]\ text

[NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to \define or \setuphead or \setupparagraph (or \setupwhat?) a command which would produce the similar thing as the native LaTeX \paragraph{name} does. This command should sublevel the \subsubsection (so it would generate numbers when being used), it would have an extra space

Re: [NTG-context] Non-linebreaking \setup[head|paragraph]

2010-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, Wolfgang, it works fine. BTW: Is there a place ([source] file) where to find the default 'after' and 'before' commands for \part, \chapter, \section etc.? And also the default Ctx spacing before/after these heads? Lukas On Tue, 21 Dec 2010 17:36:18 +0100, Wolfgang Schuster

Re: [NTG-context] Horizontal space in math subscript generated by Lua

2010-12-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 15 Dec 2010 13:06:42 +0100, Hans Hagen pra...@wxs.nl wrote: actually, the luacode was doing the right thing as there is a protect/unprotect mismatch (will be fixed); puttingthis at the top of you file works: \catcodetable\ctxcatcodes thank you, Hans. This makes both

[NTG-context] Horizontal space in math subscript generated by Lua

2010-12-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a strange effect. Let's have a code that generates the same math, firstly by Ctx and secondly by Lua: --- \starttext \startformula M_{t,WnT} = 1000 \stopformula \startluacode context.startformula() context(M_{t,WnT} = 1000) context.stopformula()

Re: [NTG-context] Math and bold font: \definetypeface

2010-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello - On Wed, 08 Dec 2010 11:24:36 +0100, Florian Wobbe florian.wo...@awi.de wrote: Minimal example that uses Tex Gyre Pagella and Heros for serif and sans, and either Cambria, Asana, Neo Euler, or XITS for math (comment in your choice and make sure that context finds the fonts):

Re: [NTG-context] Proposal for math mappings

2010-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 10 Dec 2010 05:49:26 +0100, Aditya Mahajan adit...@umich.edu wrote: This is a proposal for a new way of selecting math mappings in MkIV. I want to get input from other math users whether this syntax would take care of all scenarios or not. There are five different ranges in

Re: [NTG-context] Math and bold font: \definetypeface

2010-12-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello - On Sun, 05 Dec 2010 22:48:47 +0100, Florian Wobbe florian.wo...@awi.de wrote: On Dec 5, 2010, at 20:27 , Procházka Lukáš wrote: \definetypeface [\typescriptone] [mm] [math] [cambria] [default] just a placeholder, which comes in handy when you want to define multiple entries at

Re: [NTG-context] Math and bold font

2010-12-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello - On Mon, 06 Dec 2010 11:11:34 +0100, Vladimir Lomov lomov...@gmail.com wrote: Suppose I want to use serif bold italic font for vectors and sans bold italic for tensors (this is recommendation of NIST, see sp811.pdf on nist.gov). Of course I could enter vectors and tensors as symbols

Re: [NTG-context] Math and bold font

2010-12-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the example. I can see that: - In another font(s) (at least in cambria in your example) bold Greek chars are OK. - \bf in math mode causes chars to become vertical, i.e. when I want to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I thought that the

[NTG-context] Math and bold font

2010-12-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello all, I'd to explain some effects in the .pdf from the code bellow. It was copied from co-font.pdf, pg. 19-20; just Abc was added to try something. --- \enableregime[cp1250] \starttext $Abc\sqrt{625}=5\alpha$ $\bf Abc\sqrt{625}=5\alpha$ $Abc\sqrt{625}=\bf5\alpha$ $\bfmath

[NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. Here are my trials - in several cases I get the wanted result but with error messages: --- t.mkiv \enableregime[cp1250] %\setuptyping[default][style=\ttxx\setupinterlinespace] % This works somehow but with errors

Re: [NTG-context] \enableregime (was: Re: Problem with context.startsection)

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
I had the same problem several days ago; Wolfgang answered but I cannot remember the mail thread. It requires a small patch in c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua - see the attachment. Or maybe it's been patched in the newest ctx minimals. Note that if you replace

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Did you test it? --- t2.mkiv \enableregime[cp1250] \setuptyping[default][bodyfont=8pt] % As you advised

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Still the same error with the latest beta. Lukas On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Much better, thanks! Lukas On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \definetyping[default][bodyfont=8pt] -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová

[NTG-context] Chapter's frame too small

2010-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just an observation - let's have the following code: --- \setupcombinedlist[content][alternative=e] \starttext \placecontent \chapter{ChaB} Chabbb \section{SecA} Secaaa \subsection{SubsecA} Subsecaaa \stoptext --- The frame around chapter ChaA is too

Re: [NTG-context] Problem with context.startsection (was: Problem with \nolist)

2010-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \startsection[title={AAA aaa},list={AAA}] ... \stopsection ... OK, the example above works well when called from ConTeXt. But from Lua? - This Lua code seems to be wrong: ---

Re: [NTG-context] Problem with context.startsection

2010-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, that was really silly mistake of mine - I was Luaing the original ctx code so I forgot to enclose the ttt into the context(ttt); that was the problem. Braces were OK - statement: context.startsection({title = ti, list = li}) may be shortened to: context.startsection{title = ti,

[NTG-context] Announcement: cont-tst.pdf

2010-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I built a single .pdf from all testing sources or demos which were included in the Hans' latest cont-tst.7z. You may find this inspiring or you can find here some snippets (similary as in wiki) how things may be done in ConTeXt. The file (5.5 MB, 1500 pages approx.) contains the TOC,

Re: [NTG-context] Problem \input a file (lastest minimals)

2010-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... I had to delete the lua-cache manually, the c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c\ directory in my case. Ctx rebuilt its content and now \input works fine. Lukas On Sun, 28 Nov 2010 23:44:17 +0100, Procházka Lukáš l...@pontex.cz wrote: But

Re: [NTG-context] SubmitForm interaction

2010-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
In my case, when I press Absenden, the Kommentar field gets cleared (or: the default value Ihr Veranstaltungskommentar... appears), but no mail is sent nor any mail client starts; I supposed some mailing should occur. - WinXP, AR 8. Lukas On Mon, 29 Nov 2010 19:48:01 +0100, Daniel Grycman

[NTG-context] Ctx Lua: determination of the language being used

2010-11-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to determine the current language being used in Ctx source via Lua? I mean soumething like: --- \mainlanguage[cz] \starttext AAA \startluacode if context.mainlanguage == cz then -- Do something specific context(Ahoj!) elseif context.mainlanguage == en then --

Re: [NTG-context] Ctx Lua: determination of the language being used

2010-11-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks to both. So - On Thu, 25 Nov 2010 13:31:36 +0100, Taco Hoekwater t...@elvenkind.com wrote: On 11/25/2010 01:13 PM, Wolfgang Schuster wrote: Am 25.11.2010 um 12:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to determine the current language being used in Ctx

Re: [NTG-context] Ctx Lua: determination of the language being used

2010-11-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 25 Nov 2010 14:22:18 +0100, Taco Hoekwater t...@elvenkind.com wrote: On 11/25/2010 02:16 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: No, nothing as complicated as that: \currentmainlanguage is an expandable macro, so it simply expands to its actual content: cs This also means

[NTG-context] Scaling with \filterpages not working?

2010-11-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying similar code as described on http://wiki.contextgarden.net/Including_pages_from_PDF_document: --- \starttext \filterpages[1.pdf][2][width=15cm] \page \filterpages[1.pdf][2][width=5cm] \stoptext --- But I'm still getting the same picture - scaled to (probably)

Re: [NTG-context] Scaling with \filterpages not working?

2010-11-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you, this works nicely. Lukas On Thu, 18 Nov 2010 14:12:36 +0100, Peter Rolf indi...@gmx.net wrote: Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'm trying similar code as described on http://wiki.contextgarden.net/Including_pages_from_PDF_document

[NTG-context] Horizontal vertical shift when inserting multipage PDF

2010-11-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just a brief question. How to avoid the horizontal and vertical shift which appears when inserting another PDF, both PDFs created with the same options? You can see page numbers and also the left edge shifted. (I'd need this to insert multipage scanned documents into the main PDF.)

[NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to start numbering chapters from number 3. (The previous chapters 1 and 2 were prepared otherwise, I'm to continue.) Is any parameter mentioned on http://wiki.contextgarden.net/Reference/en/setuphead supposed for this? Or how? Cheers, Lukas -- Ing. Lukáš Procházka

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
an internal counter... The question remains. Lukas On Tue, 16 Nov 2010 11:14:39 +0100, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello, I'd need to start numbering chapters from number 3. (The previous chapters 1 and 2 were prepared otherwise, I'm to continue.) Is any

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... How easy! Thanks. Lukas \setupheadnumber[chapter][2] \chapter{foo} bar \chapter{bar} baz \stoptext Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] \typefile without breaking long lines

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to \setuptyping in the manner that long lines won't be broken? So to get: -\textwidth - a instead of: aAA AA Thank you in advance. Regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s.

Re: [NTG-context] Section horizontal space adjustment (LaTeX - ConTeXt) (reduced attachs)

2010-11-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks! Lukas On Mon, 15 Nov 2010 14:40:16 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 15.11.2010 um 10:59 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello all, what is the simplest way how to change the horizontal space between the number and the name

Re: [NTG-context] Page layout: doublesided

2010-11-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, I wouldn't figure this out. Lukas On Thu, 04 Nov 2010 18:55:12 +0100, Andreas Harder ahar...@uni-koblenz.de wrote: \setuppagenumbering[alternative=doublesided] \starttext \showframe \dorecurse{10}{\input knuth\par} \stoptext Greeting Andreas

[NTG-context] Hairline in header

2010-11-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to add the hairline (or a kind of the horizontal rule) under the header area? I'd like to achieve something like in the 1.pdf (attached; created by LaTeX). My code till now: --- \setuppagenumbering[location=footer,middle] \setupheader[][style=small] \setupheadertexts[LLL][RRR]

Re: [NTG-context] Hairline in header

2010-11-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, that's it. Cheers, Lukas On Thu, 04 Nov 2010 10:01:18 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \setupheader[text][after=\thinrule] \setuplayout[header=1cm,headerdistance=1cm] \starttext \dorecurse{12}{\input knuth\par} \stoptext

[NTG-context] Page layout: doublesided

2010-11-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, although I guess this is one of the really basic tasks, I'm not able to setup successfully page layout for double-sided printing. My idea is to have different free space leftwards and rightwards from the text area. I just want to get different width of the left/right area: 2.5 cm left

[NTG-context] Key words translations

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a file which defines translation of some words? E.g. when I use \mainlanguage[cz], ConTeXts gets to know to write Kapitola instead of Chapter etc. It would be nice if ctx knew also: Table of Contents = Obsah Reference= Literatura Index = Rejstřík I

Re: [NTG-context] Key words translations

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks... L. On Wed, 03 Nov 2010 11:12:12 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: The labels are set with \setuplabeltext and \setupheadtext, you can find the czech labels in lang-sla.tex Wolfgang

[NTG-context] Spanning in \start/stop-table?

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, just to confirm - - is it possible to span several columns (rows) in tables created by \starttable ... \stoptable? I cannot find such an example, so I guess it's not possible. - I mean something like what is done by \bTD[nc = 3] ... \eTD in \bTABLE ... \eTABLE. Best regards, Lukas

Re: [NTG-context] Spanning in \start/stop-table?

2010-11-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, or when dealing with XML. Hope I'll be more lucky finding answers myself before posting them to the mailing list. Best regards, Lukas On Wed, 03 Nov 2010 17:09:35 +0100, Henning Hraban Ramm hra...@fiee.net wrote: Am 2010-11-03 um 16:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o

Re: [NTG-context] How to call a ctx command with parameters from Lua

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, Wolfgang. Lukas On Thu, 14 Oct 2010 22:43:44 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: context.typefile( { default }, MyFile.txt ) Wolfgang ___ If your question is of

[NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to \typefile a file from n-th line (= ignoring first n-1 lines). Is there such an option for \typefile macro? (http://wiki.contextgarden.net/Reference/en/typefile is silent.) I tried: \typefile[default][lines={10}]{a_file.txt} % Start at line 10

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it doesn't seem to work. Let's have t-TypeF2.mkiv with the following content: --- \setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1 % 2 \starttext % 3 \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4

Re: [NTG-context] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, thanks, that's it: \typefile[default][range={3,5}]{t-TypeF2.mkiv} % If also the upper limit is to be specified Regards, Lukas On Fri, 15 Oct 2010 10:09:13 +0200, Peter Münster pmli...@free.fr wrote: On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'd need

[NTG-context] How to center a MP graphics generated by Lua?

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to center a MP graphics generated by Lua. Although the inline Ctx code is (or seems to be) the same as generated by Lua, I cannot understand why the red line is drawn on the left and not centered. So how to make the Lua-MP graphics centered? My code: --- \showframe

Re: [NTG-context] How to center a MP graphics generated by Lua?

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Great, thanks. Lukas On Thu, 14 Oct 2010 10:00:29 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \dontleavehmode ___ If your question is of interest to others as well, please add an entry to

[NTG-context] How to call a ctx command with parameters from Lua

2010-10-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this thing was probably shown during last Ctx meeting, but I can't remember the answer. Let's ave the Ctx code: \typefile[default]{Myfile.txt} and I'd need to call this command by Lua, like: \startluacode context.typefile(MyFile.txt) \stoluacode But how to pass the [default]

[NTG-context] Temporary landscape

2010-10-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext --- And I'd like to find out how to restore previous page settings. I

Re: [NTG-context] Temporary landscape

2010-10-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hagen wrote: On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to typeset contents of a wide file. This works: --- \starttext \setuppapersize[A4,landscape][A4,landscape] \typefile[Dim]{Cha-MMax-iDL.txt} \page % RESTORE ORIGINAL PAGE SETTINGS AAA \stoptext You

[NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have problem. Suppose having t-TypeF.ctx which is to print itself: --- \enableregime[cp1250] \starttext ABC ŽŠČ \typefile[]{t-TypeF.ctx} \stoptext --- The letters ŽŠČ to be printed during \typefile are the problem. I get a long error message, where the key message is:

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 08:45:25 +0200, Peter Münster pmli...@free.fr wrote: I would suggest to configure your environment (editor and so on) to use only utf8. It's a problem as the file which is \typefiled is generated by another program and I have no control of which characters or which

[NTG-context] Page-breakable \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd have one more question. I need to have many \subsubject behind each other (again: actually processing an external file, but a small example is attached): --- \setupbodyfont[11pt] \starttext \subsubsubject{001} \subsubsubject{002} \subsubsubject{003} \subsubsubject{004}

Re: [NTG-context] Page-breakable \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks, it works perfectly. On Tue, 12 Oct 2010 10:18:54 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 12.10.2010 um 09:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'd have one more question. I need to have many \subsubject behind each other (again

Re: [NTG-context] Page-breakable \subsubsubject?

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 10:40:19 +0200, luigi scarso luigi.sca...@gmail.com wrote: • the ctx file extension has a special meaning for context (file for proprocessing in xml format). - OK, I'm planning to use .tex for Ctx files in the future. Now I'm using LaTeX and ConTeXt both, so I use .ctx

Re: [NTG-context] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 12 Oct 2010 13:24:24 +0200, Hans Hagen pra...@wxs.nl wrote: On 12-10-2010 9:39, Peter Münster wrote: On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: All runs programs run under Windows and all [mentioned] are using CP 1250. Perhaps with a filter: windows-program

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is printed. If I modify the code:

Re: [NTG-context] Stange behavior of \startluacode

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '20' is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a

Re: [NTG-context] Verbatim text loaded from a file? (reduced attachments)

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
(I doubled this message to reduce size of attachments. Although the t.pdf.png is not very good, I believe it's enough to imagine proportions of letter height vs. line height and line number vs. letter [used for typing] height.) ... I keep on trying. I applied all your previous advice. But I

[NTG-context] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page

2010-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following example: --- \starttext \tt \input tufte \hairline \tfx \input tufte \hairline \tfxx \input tufte \stoptext --- When I look at the result, I see the smaller font the bigger gap between lines (or this may be taken as line height

[NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to show contents of a (text) file like verbatim text (with a monospace font). So to do something being described at http://wiki.contextgarden.net/Verbatim_text using \startcode SOME TEXT \stop code, but the difference is that I don't need to write SOME TEXT manually but I

Re: [NTG-context] Verbatim text loaded from a file?

2010-10-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Sorry, I guess I misunderstood you: You mean the font of the numbers? I mean font (or or its size) used for printing for line numbers - see http://ftp.cstug.cz/pub/CTAN/macros/latex/contrib/fancyvrb/fancyvrb.pdf, pg. 11: line numbers which are turned on by numbers=left are printed

[NTG-context] Lua MP

2010-09-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible that Lua gets value of a MetaPost variable? Let's have MetaPost code: z11=(0,0) z12=(1,1) z21=(0,1) z22=(1,0) aa[z11,z12]=bb[21,z22] So now aa = bb = 0.5. And I'd need to access MetaPost values 'aa' and 'bb' from Lua (e.g. in Lua: local a = mpost.aa, b = mpost.bb).

Re: [NTG-context] Lua programming conventions..

2010-09-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Thu, 30 Sep 2010 10:47:42 +0200, Patrick Gundlach patr...@gundla.ch wrote: Hi, besides that what Luigi wrote, I'd recommend the Lua users wiki. Don't take everything there as perfect or the official way, as it is just a users wiki, like our wiki. http://lua-users.org/wiki/ Hello, I'd

Re: [NTG-context] Custom lua script (updating and debugging)

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have also the experience that when the Lua file is placed where the LUA_PATH system variable points (or: see the documentation how exactly LUA_PATH works), than I can use the 'require' command and the Lua file will be found. E.g.: LUA_PATH = (...);C:\MyDir\?.lua

Re: [NTG-context] Calling Lua function from an external package

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now! It had to be fixed both in F() and in F2(). (I forgot ; in MP statement as Lua doesn't require ;.) (Still it's a bit strange to me that calling F() worked even when the MP statement in F() was not finished by ; and F2() was not called.) Lukas On Wed, 29 Sep 2010

Re: [NTG-context] # in type in tabulate

2010-09-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I found no records to \asciimode or \mono at http://wiki.contextgarden.net/Category:Reference/en. Could they be added? - Even with no description, just to get to know they are valid ConTeXt commands. Lukas On Wed, 29 Sep 2010 16:58:51 +0200, Wolfgang Schuster

Re: [NTG-context] Drawing a diagram

2010-06-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, sorry for probably a silly question, but - how to get to e.g. http://wiki.contextgarden.net/Flow_Charts; from the http://wiki.contextgarden.net;? I really cannot find the link which leads to http://wiki.contextgarden.net/Flow_Charts;, even if I listed all hyperlinks from

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

<    2   3   4   5   6   7   8   >