Re: [NTG-context] Vertical space after \head

2015-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thank you, Wolfgang; I wasn't aware of "afterhead" option. I added some info (and a snip) here: http://wiki.contextgarden.net/Command/startitemize although I found some existing info on wiki/\setupitemgroup; however, I wasn't able to add some useful info onto the latter place. Best reg

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 02 Apr 2015 14:46:11 +0200, Otared Kavian wrote: Hi, Maybe you need to say state=repeat in the definition of your layer: \definelayer[chapterbackground][state=repeat] '[state=repeat]' causes all pages have the 'mill' background. Best regards, Lukas -- Ing. Lukáš

[NTG-context] Wiki / sample

2015-04-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the "Sample 2" on http://wiki.contextgarden.net/Command/definedescription compiles well on my computer (one of the latest Ctx version) but not on wiki. (It happens to me time to time when I want to add a sample, mostly a snip from the mailing list.) IMHO, there is still a Ctx version mi

[NTG-context] Non-shortened month name in \date

2015-04-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \mainlanguage[cz] \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \stoptext gives: " 1 břez. 2000 1 03 2000 1 břez. 2000 " Is there a way to get non-shortened month name, i.e. "března" instea

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Kumar, could you provide a (non-working) minimal example? I tried this: local C = context local n = 0 C.starttext() C("A") n = n + 1 C("B") n = n + 1 C("C") n = n + 1 print("***", n) C.stoptext() print(">>>", n) and I got "3" (twice) - what I expected: " ...

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, another single-pass approach, which uses the fact that you know the questions and their point "weights" in advance is to form questions into a Lua table and evaluate the total first: local C = context local tab = { {"Question 1", 10, }, {"Question 2", 20, }, {"Question 3", 30,

[NTG-context] \setuphead for all existing sections

2015-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to affect (setup) all sections that have been defined, like: \setuphead[*][distance=1.5em] instead of: \setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em] The latter way needs to know all section names; the former way allows to m

Re: [NTG-context] \setuphead for all existing sections

2015-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster wrote: The \setupheads command is only a synonym for \setuphead but there can be a difference between \setuphead[..,..=..,..] and \setuphead[ confirmed: \setuphead[distance=2in] \starttext \section{Sec} \subs

[NTG-context] Keeping section and subsection together

2015-04-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following sample generates section title "5 Sec" as a last/solitary heading (section) on the page. \starttext \dorecurse{5}{ \section{Sec} \subsection{Subsec} \input ward } \stoptext Is there a way to bind it with the next head (subsection) - so that

Re: [NTG-context] Keeping section and subsection together

2015-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Lukas On Fri, 24 Apr 2015 10:31:50 +0200, Hans Hagen wrote: On 4/24/2015 7:32 AM, Pablo Rodriguez wrote: On 04/23/2015 11:50 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, the following sample generates section title "5 Sec" as a last/solitary heading (section) on the

Re: [NTG-context] ConTeXt installation problem with Windows 8.1

2015-04-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 28 Apr 2015 18:07:58 +0200, Jaroslav Hajtmar wrote: Hello ConTeXist. I tried to install standalone ConTeXt (64 bit. Version) into the new installation of Windows 8.1 During installation, I encounter a message about missing DLL library (at first MSVCR100.DLL, after insert this

Re: [NTG-context] parsing in child attribute

2015-05-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 04 May 2015 00:09:38 +0200, Pablo Rodriguez wrote: And chapter 7 is especially cryptic to me, In fact, I tried \xmlattribute {#1} {../div} {id} before and it didn’t worked. Now I don’t understand why. I must confirm Pablo's experience with myself - chapter "Example paths" just

[NTG-context] Gobbled spaces after \starttyping

2015-06-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose the following code: \starttext \starttyping Aaa Bbb \stoptyping \stoptext It produces: " Aaa Bbb " How to force ConTeXt not to gobble spaces after \setuptyping, to get: " Aaa Bbb " i.e. to obey two blanks " " before "Aaa"? Thank you in advance. Best reg

[NTG-context] Asterisk

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to typeset "centerd asterisk" ("*") in Ctx? I mean the symbol which is used in the third level of itemization (http://wiki.contextgarden.net/Enumerations) or which can be typeset by \textasteriskcentered in LaTeX. (I cannot find the symbol definition in Ctx itemize-command definiti

Re: [NTG-context] Asterisk

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
dings and be sure to use a font containing them. alternatively define a command which temporarily switches to such a font in, displays the symbol, and switches back. Procházka Lukáš Ing. - Pontex s. r. o. schrieb am Di., 9. Juni 2015 um 09:25 Uhr: Hello, how to typeset "centerd asterisk

Re: [NTG-context] Asterisk

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
ar] \stoptext Best regards, Lukas On Tue, 09 Jun 2015 11:02:05 +0200, Wolfgang Schuster wrote: Am 09.06.2015 um 09:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, how to typeset "centerd asterisk" ("*") in Ctx? I mean the symbol which is

[NTG-context] How to typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to typeset differential in math correctly? Here are my attempts: \definemathcommand[dif][nolop]{\mfunction{d}} % Based on http://wiki.contextgarden.net/Math/functions \starttext \startformula \sin x {\tf d} x \stopformula \startformula \sin x \dif x \stopformu

Re: [NTG-context] How to typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the solution: \define\dif{\mathop{}\!\mfunction{d}} Some explanation for \mathop and \mfunction would be appreciated, and also explanation why \definemathcommand[dif][nolop]{\mfunction{d}} didn't work... But it is not urgent, just for perfection... Best regards, Lukas --

Re: [NTG-context] How to typeset differential (math)?

2015-06-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 17 Jun 2015 16:23:01 +0200, Manuel Blanco wrote: The easy way to answer that: \definemathcommand[dif][nolop]{\mfunction{d}} didn't work because it's intended for log-like functions, and you don't want a log-like function, but a differential, which behaves differently (for instan

[NTG-context] Component of a product

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose the following case: Book.mkiv \startproduct * \component A.mkiv \component B.mkiv \stopproduct A.mkiv \startcomponent * \section{A} \stopcomponent B.mkiv \startcomponent * \section{B} \stopcomponent When compiling "Book.mkiv", I'm getting t

[NTG-context] Component of a product (correction!)

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose the following case: Book.mkiv \startproduct * \component A.mkiv \component B.mkiv \stopproduct A.mkiv \startcomponent * \section{A} \stopcomponent B.mkiv \startcomponent * \section{B} \stopcomponent When compiling "Book.mkiv", I'm getti

[NTG-context] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm not able to limit level of sections in TOC so to not show \subsubsection: %\setuplist[content][level=subsection] % Doesn't work %\setuplist[content][section,subsection] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline \placecontent[level=3

Re: [NTG-context] How to limit level of sections in TOC?

2015-06-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thank you, it works perfectly. Lukas On Sat, 20 Jun 2015 11:40:47 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 20. Juni 2015 11:30 Hello, I'm not able to limit level of sections in TOC so to not show \subsubsection:

[NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuphead[part] to have the following features: 1. Part head to fill the whole page. 2. Part number and name to be placed (approx.) in the golden ratio of the page. 3. Page background (for the \part only!) to be colored, e.g. blue. \define[2]\MyPartCmd{% {%

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Wolfgang, thank you for the solution, it pretty systemic. Ad "Ad 2": There was no question as succeeded placing page number and name into the page gold ratio, so just mentioned as one of the features required. After some plying with your solution, I deduce: We have to derive a new alter

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm really satisfied with the way you coded the part page layout. I've modified a bit your code - just to highlight the dependencies (rendering setup, makeup and so on; if anyone interested, see the attachment). On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster wrote: This metho

[NTG-context] Mode for footnote?

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are many modes for various situations (http://wiki.contextgarden.net/Modes). Is there a mode to signal being inside a footnote? This would be handy for head definition: \definehead[paragraph][subsubsubject] \define\ShBlank{\doifnotmode{*footnote}{\blank}} \setuphead[paragr

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Best regards, Lukas On Tue, 23 Jun 2015 16:28:46 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 23. Juni 2015 09:45 Hello, I'm really satisfied with the way you coded the part page layout. I've modified a bit your code - just t

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Wolfgang, thanks again, it works perfectly. Best regards, Lukas On Mon, 29 Jun 2015 14:33:41 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 29. Juni 2015 14:05 Hello, one more question. When I place \part into \...bodymatt

[NTG-context] Bibliography

2015-07-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I have a bibliography database in Lua. I suppose to use this DB to create a list of publications with Lua and \startpublication ... \stoppublication. So I will get something like: % Will be generated by Lua, but for now >> \startpublication [k=me, t=article, a=LPr, y=2000

Re: [NTG-context] Bibliography (bug compiling "components-001.tex"?)

2015-07-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted % adapted example from list \startpublication[ k=me,

[NTG-context] Hidden section - weird counting?

2015-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following example with hidden section: \definehead[HidSec][section] \setuphead[HidSec][placehead=hidden] \starttext \placecontent \hairline \HidSec{A} \subsection{B} \subsection{C} \stoptext It gives: " 1.1 B 1 --- 1.2 B 1.2 C " Whilst I'd ex

Re: [NTG-context] Bibliography (bug compiling "components-001.tex"?) (now with sample files)

2015-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Alan, thanks for the idea. Now I have: Bib6.mkiv, UTF-8 \startbuffer[biblio] @article{Angell, Author = {Marcia Angell}, Journal = {New York Review of Books}, Month = {July 15}, Title = {The Truth About the Drug Companies}, Year = {2004}, } @article{Me, Author = {Štěp

Re: [NTG-context] Bibliography (bug compiling "components-001.tex"?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 10 Jul 2015 10:29:52 +0200, Alan BRASLAU wrote: On Fri, 10 Jul 2015 08:47:35 +0200 Procházka Lukáš Ing. - Pontex s. r. o. wrote: I'm getting "Undefined control sequence" when I uncomment (2); even though \placepublications is widely cited on wiki (e.g. http://wiki.co

[NTG-context] Tabulate: lines bellow header

2015-07-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, Let's have the following code: \starttext \setuptabulate[header=repeat,split=yes] \starttabulatehead \HL \NC H \NC H \NC\NR \LL % \LL[8] causes error \stoptabulatehead \starttabulate[|l|l|] \dorecurse{50}{ \NC A \NC A \NC\NR \HL[8] } \stoptab

[NTG-context] beta/7.7.2015: error with \in

2015-07-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm getting the following error: " mtx-context | run 1: luatex --fmt="c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde... iv" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode --c:path="C:\\Lukas\\ConTeXt\\Styles" "cont-yes.mkiv" This is LuaTeX, Version beta-0.80.

[NTG-context] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, why this code: \def\GG{\ifmmode G_G\else$\GG$\fi} \starttext \GG $\GG$ % OK \startitemize[][] \sym{\GG} \GG % OK \stopitemize \startluacode context.startitemize() context.sym([[\GG]]) context("Abc") context.stopitemize() \stopluacode \stoptext

Re: [NTG-context] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 16 Jul 2015 10:27:48 +0200, Hans Hagen wrote: On 7/16/2015 10:20 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, why this code: \def\GG{\ifmmode G_G\else$\GG$\fi} because in math mode \GG expands \GG which expands \GG I want to just pass G_G in math

Re: [NTG-context] TeX capacity exceeded - in Lua block - why?

2015-07-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 16 Jul 2015 11:03:05 +0200, luigi scarso wrote: \def\GG{\ifmmode G_G\else$\GG$\fi} means "define the macro \GG as G_G if mmmod is true, else as \GG " It's clear that you always are in a situation where mmod is true, then \GG is replaced with G_G Well, I intended "replaced w

[NTG-context] Math - how to mix fonts?

2015-07-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I am not very familiar with mixing fonts in math. I would need to mix several font styles: 1. "normal" (default - slanted, serif) for general variables, 2. slanted serif bold for vectors, 3. slanted sans bold for varieties. In the following snippet, the right fonts are displayed in the

Re: [NTG-context] Math - how to mix fonts?

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, simpler than I thought, thank you! Best regards, Lukas On Fri, 17 Jul 2015 15:15:38 +0200, Wolfgang Schuster wrote: You can use the normal font switching commands (e.g. \it or \ss) to change the math alphabet. %\setupbodyfont[xits] \setupmathematics[lcgreek=none,ucgreek=none] \s

[NTG-context] SyncTeX (TeXworks) - \enabledirectives[system.synctex]

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, two questions related to SyncTeX (and maybe on TeXworks): 1. The following code: \enabledirectives[system.synctex] \starttext Hello! \startluacode % line 6 context("Something") \stopluacode \stoptext doesn't produce SyncTeX file (SyncTeX.synctex.gz). When I compile

[NTG-context] SyncTeX (TeXworks) - \enabledirectives[system.synctex] (now with attachments)

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, two questions related to SyncTeX (and maybe on TeXworks): 1. The following code: \enabledirectives[system.synctex] \starttext Hello! \startluacode % line 6 context("Something") \stopluacode \stoptext doesn't produce SyncTeX file (SyncTeX.synctex.gz). When I com

[NTG-context] Temporary spacing between letters

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to affect the space between letters temporarily? The following code provides it, but I guess there is a better ConTeX way: \starttext \startluacode t = function(str, filler) return str:gsub("(.)", "%1" .. (filler or "~"), #str - 1) end \stopluacode

Re: [NTG-context] Temporary spacing between letters

2015-07-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Great, thank you! Lukas On Sat, 18 Jul 2015 12:11:26 +0200, Hans Hagen wrote: \kerncharacters[.5] -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 _

Re: [NTG-context] SyncTeX (TeXworks) - \enabledirectives[system.synctex] (now with attachments)

2015-07-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, any answer to "\enabledirectives[system.synctex]" functionality or deprecateness? Best regards, Lukas On Sat, 18 Jul 2015 09:43:29 +0200, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, two questions related to SyncTeX (and maybe on TeXworks): 1. The foll

Re: [NTG-context] Printing bibliographic entries without the full publication list

2015-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, "\textcite [authoryear] [whatever-1]" etc. gives weird (see attached): " text citation: (, 2015) " with: ConTeXt ver: 2015.07.28 19:12 MKIV beta fmt: 2015.7.30 int: english/english I would expect something like: " text citation: (Mo, 2015) " Best regards, Lukas On Wed,

[NTG-context] Numbering subformulas broken?

2015-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following example (based on http://wiki.contextgarden.net/Math/Display#Automatic_Sub-Formula_Numbering ): \starttext \startsubformulas[eq:1] \placeformula[eq:1a] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:1b] \startformula

[NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it seems this is a frequent thesis - in the mailing archive, stackoverflow... Anyway, I'm not able to find a valid way (MWE) how to number subformulas (with option to create a reference name, like 'eq:1a' and 'eq:1b', and to be able to refer to them, like "\ineq[eq:1a] and \ineq[eq:1b]"

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 03 Aug 2015 15:31:49 +0200, Eric Détrez wrote: I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it pos

Re: [NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
esired result. ) Lukas On Mon, 03 Aug 2015 12:20:44 +0200, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, it seems this is a frequent thesis - in the mailing archive, stackoverflow... Anyway, I'm not able to find a valid way (MWE) how to number subformulas (with option to cre

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
t the separator to ""? Best regards, Lukas On Thu, 06 Aug 2015 01:25:10 +0200, Wolfgang Schuster wrote: Aditya Mahajan <mailto:adit...@umich.edu> 4. August 2015 02:08 On Mon, 3 Aug 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I am not sure when the subformula

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, great, thanks for explanation! Best regards, Lukas On Thu, 06 Aug 2015 12:07:18 +0200, Wolfgang Schuster wrote: One difference between \startsubformulas[+] and \startsubformulas[label] is that the second method creates a label which can be used to refer to the number of the formula

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question related to the numbering style. The code bellow: \def\fakeformula{a^2 + b^2 = c^2} \starttext \chapter{Cha1} \section{A} \placeformula\startformula\fakeformula\stopformula \section{B} \placeformula\startformula\fakeformula\stopformula

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Otared, thanks for the hint. However, I'm still not able to tune the numbering setup fully. Now I have (with resulting numbers | desired number): \setuphead[part,chapter][placehead=yes,page=no] \setupformulas [prefix=yes, %prefix=no, %prefixsegments=chapter:section, pref

[NTG-context] \typefile and "width" (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to specify width for a tabulator ('\t') being read in a text file during \typefile command? E.g. 10 spaces... Best 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 14 Pr

Re: [NTG-context] \typefile and "width" (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, that's it... Lukas On Mon, 24 Aug 2015 13:57:12 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 24. August 2015 13:30 Hello, is there a way to specify width for a tabulator ('\t') being read in a text file dur

[NTG-context] \setupheadnumber and zero

2015-08-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[chapter][-1] \chapter{Ch0} % Getting "Ch0" instead of "0. Ch0"? \chapter{Ch1} \stoptext

Re: [NTG-context] Table setups interfering with another table?

2015-09-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Mari, I can see two ways: 1. Enclose each table into \bgroup ... \egroup scope, so all \setupTABLE will be treated local (table_test.mkiv). 2. Perform all setups right after \bTABLE (table_test2.mkiv). This is not applicable in all cases (e.g. \bTABLE[width=\textwidth] must be done here

[NTG-context] TOC with too long entry

2015-09-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to achieve the following look of TOC: " 1 Sec 2 1.1 A very very very very very very long section name ... 2 " ^ ^ | | - aligned here instead of: " 1 Sec 2 1.1

Re: [NTG-context] \setupheadnumber and zero

2015-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Great, thanks for the answer. Lukas On Tue, 08 Sep 2015 21:10:51 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 29. August 2015 16:11 Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to pre

[NTG-context] Lua file finder for \externalimage

2015-09-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, what is the name of a Lua function (if such function exists) which performs lookup for an image inside \externalimage? I'm asking especially due to the fact that the path here can be modified by [location={...}]. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Po

Re: [NTG-context] Lua file finder for \externalimage

2015-09-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Find("Big.png") -- Is there something like "context.ExternalFigureLocator.Find(...)"? \stopluacode Best regards, Lukas On Thu, 17 Sep 2015 14:37:34 +0200, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, what is the name of a Lua function (if such

Re: [NTG-context] issue with latest beta

2015-11-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I can confirm Ctx failure with: "ConTeXt ver: 2015.10.09 21:28 MKIV beta fmt: 2015.10.22 int: english/english", Win XP 32b. Lukas On Sun, 01 Nov 2015 16:03:04 +0100, Pablo Rodriguez wrote: Dear list, this basic sample crashes with latest beta on my computer: \setup

[NTG-context] Plot using pgfplots: order of appearance of two simple plots

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm just starting with pgfplots library. I have two plots, one being filled: \usemodule[pgfplots] \starttext \starttikzpicture \startaxis[legend entries={Sin,Cos}] \addplot+[mark=none] {sin(deg(x))}; \addplot+[mark=none,fill]{cos(deg(x))}; \stopaxis \sto

Re: [NTG-context] Plot using pgfplots: order of appearance of two simple plots

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Mojca, thanks a lot for your answer and proposals. I'll try them one after other... Option "reverse legend" is most promising so far. Best regards, Lukas On Mon, 21 Dec 2015 14:45:25 +0100, Mojca Miklavec wrote: On 21 December 2015 at 13:55, Procházka Lukáš Ing. -

[NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question about pgfplots & Lua: how to specify "reverse legend" by Lua? Here are some examples: - Plot 1 contains no Lua code and gives the desired result (OK); - Plot 2 uses Lua to specify "legend entries" successfully (OK); - Plot 3 tries to use Lua to specify "reverese legend

[NTG-context] \nolist deprecated?

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \nolist produces "Undefined control sequence" - bug? Deprecated command? Try: \starttext \placecontent \section{Aaa \nolist{Bbb}} \stoptext Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.p

Re: [NTG-context] Switching to landscape

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 28 Dec 2015 00:06:08 +0100, Wolfgang Schuster wrote: It’s a bug but for the moment you can call \setuplayout (no arguments are necessary) after \setupapersize to have the correct sizes in the PDF. OK, it works. One question related to this theme: How width and height of the

[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 [mailto:

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 Vedran Miletić 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: http://wiki.contextgarden.net/FAQ#Why_should_I_only_use_letters.2C_digits_and_hyphens_in_file.2Fpath_names.3F

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

[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 (0,8cm)--(0,0)--(5cm,0)

[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 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 tried something like

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

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] 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? - http://wiki.c

[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 "http://wiki.cont

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

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the hints - On Thu, 31 Mar 2011 14:20:37 +0200, Patrick Gundlach wrote: Hi Lukáš, just insert [[Category:Reference/en|doif]] at the bottom of the page. OK, I did and a new valid link was created: http://wiki.contextgarden.net/%5Cdoif... But: - its name is still "\

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

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hi, - its name is still "\doif" - and not like "Reference/en/doif..." I have moved the page to Reference/en/doif... (BTW: It seems to me better if all commands appeared without (the common) "Reference/en/", but OK, now I'd like to achieve the normal look of reference items; so how to get

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

[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 "s

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

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
+0200, Wolfgang Schuster 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() gives "Př

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

2011-04-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks W&H, 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] TeX: Macro definition

2011-04-07 Thread 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} takes everything until \par (or empty line as it equals \par primitive) as #1, so the following is valid: \T abc def\par \T abc \T def (#1 becomes: "abc def", "abc" and "d

Re: [NTG-context] TeX: Macro definition

2011-04-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
dofoo). Lukas On Thu, 07 Apr 2011 11:45:06 +0200, Wolfgang Schuster 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} takes everything until \pa

Re: [NTG-context] dashed underbar: wiki

2011-04-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I tried to add the Wolfgang's solution to wiki, the last example on http://wiki.contextgarden.net/TextBackground But the rendered example doesn't show any (dashed) background, although the standalone test file does. Why? If the example was rendered otherwise than in reality, it wouldn

[NTG-context] Tabulate

2011-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, several questions about tabulate. Let's have: --- \starttext \setuptabulate[header=repeat] \starttabulatehead \HL \NC T \NC U \NC\AR % [1] \SR? \NR?... \HL \stoptabulatehead \starttabulate[|c|c|] \NC a \NC b \NC\NR \NC A \NC B \NC\NR \stoptabulate \hairli

[NTG-context] Centerd table?

2011-04-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, why this code doesn't give a centered table? --- \starttext \startalignment[middle] \dontleavehmode \starttable[|c|c|c|] \HL \VL a \VL b \VL c \VL\AR \HL \VL a \VL b \VL c \VL\AR \HL \stoptable \stopalignment \stoptext --- How to achieve it

Re: [NTG-context] Description

2011-04-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OK, thanks. On Wed, 20 Apr 2011 18:20:18 +0200, Wolfgang Schuster wrote: You can use “titleright” only in enumerations. I thought "titleright" was valid for descriptions [as well], see contextref.pdf, sec. "Descriptions", table on the pg. 237: \setupdescriptions [...,...][..,.=.,..] ...

[NTG-context] Problem centernig a table by Lua

2011-05-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm typesetting a centered (middaligned) 1-cell table by Ctx - no problem. When I rewrite the same code to Lua, the table is always moved to the right; see or try the attached files. --- \starttext % By TeX \centerline{ \starttable[|c|] \HL \VL 5 \VL\AR \HL

Re: [NTG-context] checking mainlanguage setup

2011-05-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Sat, 28 May 2011 14:26:47 +0200, Jeong Dalyoung wrote: context([[\\def\\lang{English}]]) It is not working. It just prints "def langEnglish". BTW, are not there too many backslashes? Shouldn't it be (untested): context("\\def\\lang{English}") or context([[\def\lang{English}]]) Lukas

Re: [NTG-context] checking mainlanguage setup

2011-05-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung wrote: Dear Lucas, Shouldn't it be (untested): context("\\def\\lang{English}") It is working. context([[\def\lang{English}]]) It is not working. It prints "def lang English". Thank you. Best regards, Dalyoung OK. I meant jus

[NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, see the following example: \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage % Paper size is 297 * 297 mm from now?! BBB \stoptext Why the last paper size becomes 297 x 297 mm? Suggestion: Wouldn't be good to have an

Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 08 Jun 2011 11:39:50 +0200, luigi scarso wrote: what are the dimensions of Model.pdf ? 210 x 297 mm. Lukas ___ If your question is of interest to others as well, please add an entry to the Wiki! mailli

Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Wed, 08 Jun 2011 12:01:04 +0200, luigi scarso wrote: Not sure if it's a bug, but this fixes the situation (assuming A4 on A4) \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage \setuppapersize[A4][A4] % Paper size is 297 * 297 mm from now?!

<    1   2   3   4   5   6   >