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

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, 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 .
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-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] 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

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

[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

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,

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] 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 _

[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

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

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

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

[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

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

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

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

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

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] 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] \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

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

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
art] to give "Díl..." in body matter and "Dodatek..." in appendices, and also to get letter numbering ("A", "B"...) in appendices (so "Dodatek A", "Doadatek B", ...)? A sample source code with body matter and appendices is attached...

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

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

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

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

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

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

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

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

[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

[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

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

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

[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] \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] \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] 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,

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: " ...

[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

[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

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áš

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

[NTG-context] Vertical space after \head

2015-03-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is it possible to affect simply vertical space being generated after \head? Here: \starttext \startitemize[][headstyle=bold] \head Something\par \input knuth \stopitemize \stoptext I'd like to have space of size \blank[medium] between the head and

Re: [NTG-context] Is there a way to completely remove all auxiliary and resulting files?

2015-03-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, typing "context.exe" with no argument yields: C:\Lukas\Jobs\R6-011.ZDS\1-PDPS\B-StavCast\SO_201\Details>context.exe " mtx-context | ConTeXt Process Management 0.61 mtx-context | mtx-context | basic options: mtx-context | mtx-context | --run process (o

Re: [NTG-context] # in file name

2015-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 20 Mar 2015 15:05:25 +0100, Hans Hagen wrote: On 3/20/2015 2:25 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I need to insert a figure "PrehlSit#A2.pdf" - a file whose name contains # - by Lua. How to "code" the name? one can flush with v

[NTG-context] # in file name

2015-03-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I need to insert a figure "PrehlSit#A2.pdf" - a file whose name contains # - by Lua. How to "code" the name? I tried: \startluacode context.pagefigure({PrehlSit#A2.pdf"}, {scale=500}) context.pagefigure({PrehlSit\#A2.pdf"}, {scale=500}) context.pagefigure({Pr

[NTG-context] File name to print to include %

2015-03-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to get: "%Home%" with \hyphenatedfilename to the Ctx output. But, these two methods don't work: \hyphenatedfilename{\%Home\%} -- gives "\%Home\%" and \hyphenatedfilename{%Home%} -- (obviously) produces error. So what to write into \hyphenatedfilename to get "%Home%"? Best re

Re: [NTG-context] Now that I have something working on mkiv, I'd like to try ePUB

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are some ePUB and XML conversion/processing questions time to time here in the forum. Try to search or to ask directly someone who asked for ePUB conversion. (I have no experience with ePUB.) Lukas On Sun, 15 Mar 2015 22:12:33 +0100, Gerben Wierda wrote: Now that I have my b

Re: [NTG-context] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... And wikified: http://wiki.contextgarden.net/Command/setupheadertexts 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 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 _

Re: [NTG-context] Multiline header

2015-03-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 16 Mar 2015 18:34:00 +0100, Wolfgang Schuster wrote: Am 16.03.2015 um 13:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\par def\\ ghi\crlf jkl

Re: [NTG-context] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Mon, 16 Mar 2015 14:00:54 +0100, luigi scarso wrote: On Mon, Mar 16, 2015 at 1:54 PM, Procházka Lukáš Ing. - Pontex s. r. o. < l...@pontex.cz> wrote: Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\p

[NTG-context] Multiline header

2015-03-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to create multiline header? This code ignores all attempts to force a new line: \setupheadertexts[{abc\par def\\ ghi\crlf jkl}] \starttext aaa \stoptext Thank you in advance. Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. |

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Fri, 06 Mar 2015 14:45:44 +0100, Hans Hagen wrote: On 3/6/2015 1:08 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Thanks for explanation, I didn't know about that... i guess that there is a lot of stuff deep down only a few people know about (this is typical needed for

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Thanks for explanation, I didn't know about that... Lukas On Fri, 06 Mar 2015 10:52:47 +0100, Hans Hagen wrote: On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, when you want to use your personal (additional) path (but apparently not a tree), e.g. for s

Re: [NTG-context] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, when you want to use your personal (additional) path (but apparently not a tree), e.g. for styles (environments), you can use --path switch: " context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex " (Source: "context.exe --help") (Once I tried also: " set TeXMFLocal=c:\MyName\M

[NTG-context] Blank space between \subsection & columns (related to: XML processing & columns & (almost) empty pages)

2015-02-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I found a "more minimal" example which produces unwanted blank space between \subsection and columns: % nofruns=1 \starttext \dorecurse{5}{ \subsection{T} \startcolumns[n=4,balance=yes] \input knuth \stopcolumns } \stoptext The blank space appears on p

Re: [NTG-context] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thank you - method 1 is exactly what I'm looking for. Best regards, Lukas On Wed, 18 Feb 2015 14:58:49 +0100, Wolfgang Schuster wrote: Am 18.02.2015 um 11:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, how to more easily achieve this?: Some text on

[NTG-context] Placing a box with left-aligned lines on the right border

2015-02-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to more easily achieve this?: Some text on line Text in box Longer text in the box Shorter text in box |<-->| Width of the box is tha

Re: [NTG-context] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks Hans, this works perfectly... Lukas \startbuffer[demo] -- A1 X1 B1 -- A2 X2 B2 -- A3 X3 B3 \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{*}{xml:*} \stopxmlsetups \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \

Re: [NTG-context] XML - accessing parental children attribute (was: some troubles)

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a slightly modified example: t.xml AA AB and the Ctx source: t.mkiv \startxmlsetups xml:T \xmlfunction{#1}{test} \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?! \xmlsetsetup{\xmldocument}{a/aa}{xml:*} \xmlsetsetup{

[NTG-context] XML - some troubles

2015-02-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, suppose having: t.xml AA AB and the Ctx source: t.mkiv \startxmlsetups xml:T \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?! \xmlsetsetup{\xmldocument}{a/ab}{xml:*} \stopxmlsetups \startxmlsetups xml:ab \section{New

[NTG-context] Attachment marks to be aligned horizontally

2015-01-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, marks of attachments in the attached MWE are aligned in the following way: - after A and C - horizontally, - after B - vertically. The only difference is that \blank precedes in the B case. So - how to force horizontal alignment for attachment marks in the B case, supposing that

Re: [NTG-context] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, hard to imagine ... did you patch one of the lxml-*.lua files? I renewed Ctx now and it seems to work (the reported problem related to the yesterday's beta)... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz |

[NTG-context] Latest beta: bug with 'convert()'?

2014-12-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm getting the following failure: c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: attempt to call field 'convert' (a nil value) stack traceback: c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-xmp.lua:109: in function 'valid_xmp' c:/Ctx-Beta/te

Re: [NTG-context] Ctx & XML

2014-12-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, On Thu, 11 Dec 2014 10:10:16 +0100, Hans Hagen wrote: that already makes assumptions that it's just data ... the context xml parser is a roundtrip one so a bit more control is provided: local str = [[ c > d ]] I've added some flags: inspect(xml.totable

Re: [NTG-context] Ctx & XML

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 11 Dec 2014 02:24:24 +0100, Hans Hagen wrote: On 12/10/2014 11:08 PM, Lukáš Procházka wrote: I assume that you also want the content of elements, not just the attributes. Yes... Or how to achieve this in a best way under Ctx: XML file -> Lua table/tree? It all depends on

[NTG-context] pagefigure & cow

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following code doesn't find "cow" image with the latest beta; what am I doing wrong? local C = context C.starttext() C("a") C.pagefigure{"cow"} C.stoptext() Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pon

Re: [NTG-context] MP/Lua binding

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 08 Dec 2014 14:32:16 +0100, Hans Hagen wrote: article in bachotek proceedings and upcoming ctx group proceedings ... i might consider a manual indeed Hans Personally, any printable/buyable manual on this topic would be appreciated... Lukas -- Ing. Lukáš Procházka | mailto:l...@pon

Re: [NTG-context] MP/Lua binding (was: Pass a lua table to metapost)

2014-12-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans, it's possible to ask values from within mp: \starttext \startluacode document.variables = { labels = { "one", "two", "three", } } \stopluacode \startMPpage numeric dx, dy; dx = 4.4cm; dy = 0.53cm; path b[]; for i=1 upto

Re: [NTG-context] backgrounds

2014-10-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Mon, 20 Oct 2014 03:46:39 +0200, Hongwen Qiu wrote: 在 2014年10月17日 19:32, Procházka Lukáš Ing. - Pontex s. r. o. 写道: Source & result attached. I didn't expect your source even to compile since you missed out the \starttext thing. - I succeeded to compile... Of course, the

Re: [NTG-context] sidefloats

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Source & result attached. On Wed, 15 Oct 2014 10:35:04 +0200, Hans Hagen wrote: new in next beta: \starttext \placefigure [left] {} {\framed[height=1cm,width=2cm]{}} \input tufte \doifelsesidefloat {\dontleavehmode{\bf OKAY}: HERE} {\inmargin

Re: [NTG-context] backgrounds

2014-10-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Source & result attached. On Wed, 15 Oct 2014 10:33:28 +0200, Hans Hagen wrote: Hi, new in next beta %D Sometimes you have a document wide (page) background but need to overload it %D locally. In such case (at least in my experience) the only values that get set %D are the background

[NTG-context] Win fonts lookup: ** (was: Animation captions (was: error in animation))

2014-10-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, when trying Jeong's example, Ctx prints: " fonts > names > globbing path 'c:/windows/fonts/**.otf' fonts > names > identifying system font files with suffix 'OTF' fonts > names > globbing path 'c:/windows/fonts/**.OTF' fonts > names > 0 system files

Re: [NTG-context] Gallery of fonts

2014-09-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I (partially) succeeded with creation of the font "showcase"; the script attached generates simple preview of how the font looks. If anyone interested, the result (~2.2 MB) may be downloaded from: http://leteckaposta.cz/309703124 (The link will be valid for about 1 month from now.) Bes

[NTG-context] Gallery of fonts

2014-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello ConTeXtists, there are many fonts distributed with Ctx standalone (minimals). I'd like to create a "gallery" (or "preview") of fonts - one font per page (A4) with all its "kinds" (italic, bold, semibold; ss, rm, hw atc.), and a couple of sizes (10, 11, 12, 16, 24 pt). Is there a way how

[NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Thomas, I'm just curious: - Which editor(s) (including commercial one(s)) do you usually use to create XML source for Ctx? (Under Windows?) - XML input vs. .tex (.cld) source: IMHO, when one needs to program parts of Ctx source, it's better to use TeX source/language combined with Lua

Re: [NTG-context] Class diagram in Ctx?

2014-08-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks both for the tips, I'm going to try. 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 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___

[NTG-context] Class diagram in Ctx?

2014-08-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd like to create a "class diagram" (or "hierarchy chart") with ConText, something like: [class A] | \ V V [class B] [class C] Could anyone hint me how to start? Or which module to use? TikZ? - An initial hint would be appreciated, I'll study next... Thanks in advance

Re: [NTG-context] \os

2014-08-03 Thread Procházka Lukáš
Hello, thanks, Wolfgang, it's clear now completely. On Sun, 03 Aug 2014 20:48:11 +0200, Wolfgang Schuster wrote: When you *want* your document to use old style figures for the body font you have to enable the onum feature in the default feature set which can be done with \definefontfe

Re: [NTG-context] \os

2014-08-02 Thread Procházka Lukáš
Hello, On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster wrote: Don’t use the \os command this way because the command is only meant to be used on the form {\os 1234} where you put braces around the numbers you want to change. When you use the \os command as shown above you get problems

Re: [NTG-context] \os

2014-08-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, my case may be a bit more complicated; it uses an environment file which uses \os in it. So let's have: \definefontfeature[default][default][onum=no,lnum=yes] % In fact, in a separate environment file >> \setupbodyfont[palatino,11pt] \os % In fact, in a separate environment file <<

[NTG-context] \os

2014-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the command \os turns old-style numbers on. How to turn it off (when being on initially)? TIA. 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 Praha 4 Tel: +420 241 096 751 F

Re: [NTG-context] Typesetting file names with ~

2014-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Wed, 30 Jul 2014 14:21:09 +0200, Tomas Hala wrote: \type{d:/xx/~/yyy} that's it; thanks. Lukas Cheers, Tom -- 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

[NTG-context] Typesetting file names with ~

2014-07-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, which is the best way to typeset text (aka file names) containing tilde so that the tilde be visible? I guess there is a something like (inline) "verbatim" mode which makes ~ (and maybe % $ etc.) visible... I need to typeset e.g. d:/Lukas/~/abc.def and I'd like avoid "translating" ~

Re: [NTG-context] project structure

2014-07-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Sat, 26 Jul 2014 11:01:15 +0200, Hans Hagen wrote: Hi, There is a new experimental feature (one of the side effects of discussions with Alan about bibliographies and using distributed files in a project structure). Say that you have this: test1.tex : uses \component one/test2 one

Re: [NTG-context] Resetting \setupTABLE

2014-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how about to enclose the former TABLE (including its \setupTABLE) into a group - {} or \bgroup ... \egroup? I guess setups are local... Regards, Lukas On Mon, 23 Jun 2014 07:30:52 +0200, Troy Henderson wrote: What is the "proper" way to reset the setups made by \setupTABLE so that

<    1   2   3   4   5   6   7   8   >