Re: [NTG-context] TeX: Macro definition

2011-04-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
). Lukas On Thu, 07 Apr 2011 11:45:06 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 07.04.2011 um 11:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to define a macro to take the new-line character as end-of-parameter? The following macro: \def\T#1\par{#1

Re: [NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks WH, both solutions work perfectly. Lukas ... Well, the situation is that the .cld creates an extra file where the converted (uppercased) string should be written. \starttext \ctxsprint{Přehledná} \ctxsprint{utf.upper(Přehledná)} \stoptext Wolfgang characters.upper(str) --

[NTG-context] Sectionmark

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what is the name of the command to typeset the symbol SectionMark, Paragraph, SectionSign or how is is called correctly? The symbol which looks like: _ / \ \__ / \ || \__/ \ \_/ (Typeset by \textsection in LaTeX.) Kind regards, Lukas -- Ing. Lukáš Procházka

Re: [NTG-context] Sectionmark

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Yes, \sectionmark is it. Thank you. Lukas _ / \ \__ / \ || \__/ \ \_/ \sectionmark ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper() gives PřEHLEDNá whilst the desired result is PŘEHLEDNÁ. Is there a way how to solve this? (Maybe another function than Lua's

Re: [NTG-context] (Ctx)Lua, diacritics string.upper()

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.04.2011 um 18:28 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper

[NTG-context] Wiki discussion: Fwd: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I passed first trials contributing wiki - http://wiki.contextgarden.net/Special:Contributions/LuP. Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? -

[NTG-context] Wiki discussion: Fwd: Re: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hi Lukáš, Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? just insert [[Category:Reference/en|doif]] at the bottom of the page. The page should not be

Re: [NTG-context] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thanks! If anyone is interested, there is a sample attached which demonstrates the problem and the solution by autointro. Lukas Add: into to \startitemize \startitemize[intro] \item ... \item ... \item ... \stopitemize Or you can use \setupitemize[autointro] Aditya

Re: [NTG-context] Page break between \title and \itemize

2011-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
BTW, is there a difference between \startitemize[intro] and \startitemize[autointro]? - I tried both and both do the desired effect. - autointro was your suggestion for \setupitemize whilst intro was option for \startitemize... Kind regards, Lukas \startitemize[intro] \item ...

[NTG-context] Page break between \title and \itemize

2011-03-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I used the following setup for title: \setuphead[title][style=\bfb,align=middle,after=\blank] Then, in the middle of the source code, I used: \title{A title} % Unwanted page break here! \startitemize \item ... \item ... \item ... \stopitemize But it happened

[NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to use a block of context code depending on a value of a Lua variable? I tried something like: --- \starttext \directlua{test = true} %\directlua{test = 5} %\directlua{test = a} \doifempty{\directlua{return test}} %\doifempty{\directlua{test}} {Yes}

Re: [NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Perfect, thanks. Lukas On Fri, 25 Mar 2011 13:25:52 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 25.03.2011 um 13:04 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is it possible to use a block of context code depending on a value of a Lua variable? I

[NTG-context] Floating picture and footnotes

2011-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a bit strange effects when using footnotes in the area which is formed by a floating object. Consider the following example: --- \setupinteraction[state=start] % Heads \setupheads[aligntitle=float] % Graphics \startreusableMPgraphic{Dgm} draw

[NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
... Thanks, so a dirty trick must be done anyway? A trick which would cause MP to evaluate a higher bounding box? draw p withpen pencircle scaled 0mm withcolor white; --- draw (0,0); --- instead works as well. draw p yshifted -OverlayHeight withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
On Sat, 19 Mar 2011 23:13:46 +0100, Aditya Mahajan adit...@umich.edu wrote: You do not need yshifted. But you need to set the bounding box of the resulting image correctly. \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p withpen pencircle scaled 1mm withcolor

[NTG-context] Boekplan books

2011-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I just received the Fonts in ConTeXt; thanks that such publication exists. One suggestion: - Wouldn't be good to offer both grey scale and coloured version of the book? The coloured version would be more expensive, indeed. But one would have a choice; and Hans and Taco's documents are

Re: [NTG-context] + in file names

2011-03-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello - 2011/3/14 Peter Münster pmli...@free.fr Vedran Miletić riva...@gmail.com writes: Should + not be used? It seems to work ok without modes, but I haven't tested deeply. There is now an entry in the FAQ:

[NTG-context] Ctx running once?

2011-03-14 Thread Procházka Lukáš
Hello, is there a possibility how to let Ctx run just once, not three times (as usually), keeping in mind that TOC and/or page numbers may be wrong, just to check correctness of the document? - I have a longer document with enough MP code and I'm interested often just whether there is no

Re: [NTG-context] 620 pages limit?

2011-03-14 Thread Procházka Lukáš
\count0=0 \loop\ifnum\count05000 \advance\count0 by 1 \shipout\vbox{} \repeat \end The same error on WinXP 32: ConTeXt ver: 2011.01.26 11:02 MKIV fmt: 2011.1.26 int: english/english ... pagesflushing realpage 3987, userpage 1, subpage 1 PANIC: unprotected error in call to

Re: [NTG-context] Ideas for restructuring the ConTeXt garden?

2011-03-12 Thread Procházka Lukáš
Hello, my personal opinion(s) (some of them very similar to Marco's ones): 1) why users are confused with mkiv/mkii? (Cannot say; I started with MkIV so for me ConTeXt = MkIV.) 2) why they my be reluctant to install the minimals? The word minimals is a bit confusing. It implies that

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

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

[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

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}

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

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 schuster.wolfg...@googlemail.com

[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

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

2011-02-14 Thread Procházka Lukáš
Hello, I'd need to place a picture and let it be flowed by some text from the right side. My observation is that only one (= the first) paragraph flows the picture correctly (see the \input tufte only case); see the attached example. It there a way how to: - enable heads (e.g. \subject) in

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] Vertical space after tabulate

2011-02-13 Thread Procházka Lukáš
Hello, just a brief question - - is it possible to affect the vertical space after [\starttabulate ...] \stoptabulate? In the example attached, the space after each tabulate is too wide. I'd like to achieve space closer to normal spacing, i.e. distance between B and a (and between b and U)

Re: [NTG-context] Vertical space after tabulate

2011-02-13 Thread Procházka Lukáš
... How easy! Thanks a lot. Lukas On Sun, 13 Feb 2011 19:34:16 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: - is it possible to affect the vertical space after [\starttabulate ...] \stoptabulate? \setuptabulate[before=,after=] Wolfgang

Re: [NTG-context] Headers another way

2011-02-09 Thread Procházka Lukáš
Hello, thanks Hans and Wolfgang for the answers - I'll study the examples. Best regards, Lukas On Tue, 08 Feb 2011 18:37:43 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: http://www.ntg.nl/pipermail/ntg-context/2010/052754.html

[NTG-context] Headers another way

2011-02-08 Thread Procházka Lukáš
Hello, I'm trying to solve an interesting problem. (The document should be generated by Lua actually, but probably this is not of importance.) I'd need create various headers, but it's not known which command to be used a priori; only their relative position is known. The head creating

[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] first-setup for windows

2011-01-26 Thread Procházka Lukáš
Hello Mojca, On Wed, 26 Jan 2011 20:31:47 +0100, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I would like to ask windows users to test the attached setup file if it works any better (and to make sure that I didn't do any mistakes while typing). I have put the updated version of

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] Forming paragraphs

2011-01-23 Thread Procházka Lukáš
Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. -- \textwidth --| I.e.

Re: [NTG-context] Forming paragraphs

2011-01-23 Thread Procházka Lukáš
Hello, thanks for the link, this seems to do the job. Lukas On Sun, 23 Jan 2011 14:35:24 +0100, Stefan Müller warrence@gmx.de wrote: Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote

[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-08 Thread Procházka Lukáš
Hello, thanks for detailing the observation - On Fri, 07 Jan 2011 22:58:24 +0100, Hans Hagen pra...@wxs.nl wrote: On 7-1-2011 9:32, Procházka Lukáš Ing. - Pontex s. r. o. wrote: - Modes are accessible by tex.modes[a-mode]. indeed - - tex.modes are 'false' by default. I.e

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

2011-01-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
...@free.fr wrote: Procházka Lukáš l...@pontex.cz writes: I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua. Hello, % cmd-line: context --arguments=testvar=my-value test \starttext value of testvar: \env{testvar} with lua: \ctxlua

[NTG-context] Passing and retrieveing a variable

2011-01-05 Thread 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. Something like modes; but modes allow just to check whether they are on or off. I'd need something like this: Calling context.exe: --- call context.exe test.mkiv

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] Proposal for math mappings

2010-12-12 Thread Procházka Lukáš
Hello, thanks for the deeper explanation - On Sat, 11 Dec 2010 17:28:55 +0100, Aditya Mahajan adit...@umich.edu wrote: I agree that digits, upper and lower case latin and greek does not capture all mathematic characters for which such mappings are needed. Similar mappings might also be needed

Re: [NTG-context] Saveable PDF-Files for Adobe Reader

2010-12-11 Thread Procházka Lukáš
... As highlighting and adding comments/hand drawings are concerned, I can recommend [free] pdfXChange Viewer. http://www.tracker-software.com/product/pdf-xchange-viewer Lukas On Fri, 10 Dec 2010 12:13:20 +0100, Daniel Grycman daniel.gryc...@rub.de wrote: Using Foxit Reader helps a lot...

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

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

[NTG-context] contextref vs. cont-enp; co-fonts

2010-12-05 Thread Procházka Lukáš
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which ... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.. Some time ago, I downloaded the

Re: [NTG-context] Math and bold font

2010-12-05 Thread Procházka Lukáš
Hello, thanks for the explanation - On Sat, 04 Dec 2010 09:55:25 +0100, Hans Hagen pra...@wxs.nl wrote: On 3-12-2010 5:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote: to get slanted chars, I have to call \it or \sl or \bi explicitly. OK, I In fact in math these are not font switches

[NTG-context] contextref vs. cont-enp; co-fonts (retry)

2010-12-05 Thread Procházka Lukáš
Hello, just two notices - 1) When searching for some learning stuff, I found the cont-enp.pdf/12.11.2001 (http://www.pragma-ade.com/show-man-9.htm) which ... is the big reference manual, the one that is supposed to cover the whole of CONTEXT.. Some time ago, I downloaded the

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

2010-12-05 Thread Procházka Lukáš
Hello - On Sun, 05 Dec 2010 18:34:34 +0100, Florian Wobbe florian.wo...@awi.de wrote: \definetypeface [\typescriptone] [mm] [math] [cambria] [default] - I don't know what the meaning of individual parameters is: \definetypeface [\typescriptone] % What actually the \typescriptone does?

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

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] Problem with \nolist

2010-11-28 Thread Procházka Lukáš
Hello, I'm receiving errors when compiling the following code (although a .pdf is created): --- \starttext \placecontent \section{AAA \nolist{aaa}} \stoptext --- Error message: --- structure : section @ level 3 : 0.0.1 - AAA \nolist {aaa} ! Undefined control sequence. l.1 AAA

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

2010-11-28 Thread Procházka Lukáš
Hello, I have a problem to \input a file [in the same directory as the main file is]. This problem started appearing with the latest minimals (updated today evening) and there was no such a problem before. Try this: --- main.mkiv \enableregime[cp1250] \input{_inc.mkiv} \starttext AAA

Re: [NTG-context] Problem with \nolist

2010-11-28 Thread Procházka Lukáš
... Thanks. Lukas On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 28.11.2010 um 18:29 schrieb Procházka Lukáš: Hello, I'm receiving errors when compiling the following code (although a .pdf is created): [...] ! Undefined control

<    2   3   4   5   6   7   8   >