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

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

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 .
er 2015 at 13:55, Procházka Lukáš Ing. - Pontex s. r. o. wrote: 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))}; \ad

[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

[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

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

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

2015-09-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
;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. <l...@pontex.cz> wrote: Hello, what is the name of a Lua function (if s

[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

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

[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

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

[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] \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 schuster.wolfg...@gmail.com 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

[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

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 schuster.wolfg...@gmail.com wrote: One difference between \startsubformulas[+] and \startsubformulas[label] is that the second method creates a label which can be used to refer

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Aug 2015 01:25:10 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com 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 numbering broke, but I can confirm that it is not working

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,

Re: [NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
:20:44 +0200, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz 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 create a reference name, like 'eq:1a' and 'eq

[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

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 i...@eric-detrez.fr 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

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

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. l...@pontex.cz wrote: Hello, two questions related to SyncTeX (and maybe on TeXworks): 1. The following

[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] 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] 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 schuster.wolfg...@gmail.com wrote: You can use the normal font switching commands (e.g. \it or \ss) to change the math alphabet. %\setupbodyfont[xits]

[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

[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

[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 11:03:05 +0200, luigi scarso luigi.sca...@gmail.com 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

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

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

[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.1 (TeX

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

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 alan.bras...@cea.fr wrote: On Fri, 10 Jul 2015 08:47:35 +0200 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: I'm getting Undefined control sequence when I uncomment (2); even though \placepublications is widely cited on wiki (e.g

[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

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

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

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
: 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 to highlight the dependencies (rendering setup, makeup and so on; if anyone interested, see the attachment

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

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

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

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

[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

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

[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

[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

[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

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 manue...@ucm.es 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

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

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
, Lukas On Tue, 09 Jun 2015 11:02:05 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 09.06.2015 um 09:21 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, how to typeset centerd asterisk (*) in Ctx? I mean the symbol which is used in the third level

Re: [NTG-context] Asterisk

2015-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
/Asterisk#Encodings 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. l...@pontex.cz schrieb am Di., 9. Juni 2015 um 09:25 Uhr: Hello, how

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

[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 blanksbefore Aaa? Thank you in advance. Best regards,

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 oi...@gmx.es 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

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 hajt...@gyza.cz 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,

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

2015-04-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
:31:50 +0200, Hans Hagen pra...@wxs.nl 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 page. \starttext

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

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

2015-04-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The \setupheads command is only a synonym for \setuphead but there can be a difference between \setuphead[..,..=..,..] and \setuphead[section][..,..=..,..] Wolfgang confirmed:

[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

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: ... ConTeXt ver:

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

[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

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 ota...@gmail.com 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

[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

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

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\Detailscontext.exe mtx-context | ConTeXt Process Management 0.61 mtx-context | mtx-context | basic options: mtx-context | mtx-context | --run process (one

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

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

[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: [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 schuster.wolfg...@gmail.com wrote: Am 16.03.2015 um 13:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, how to create multiline header? This code ignores all attempts to force a new line

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 gerben.wie...@rna.nl wrote:

[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] 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 luigi.sca...@gmail.com 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

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

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

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

[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

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

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 schuster.wolfg...@gmail.com wrote: Am 18.02.2015 um 11:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, how to more easily

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] a aa number=/aa aa number=a1A1/aa ax number=x1X1/ab ab number=b1B1/ab aa number=/aa aa number=a2A2/aa ax number=x2X2/ab ab number=b2B2/ab aa number=/aa aa number=a3A3/aa ax

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 a aa number=111AA/aa ab number=222AB/ab /a and the Ctx source: t.mkiv \startxmlsetups xml:T \xmlfunction{#1}{test} \xmlsetsetup{\xmldocument}{*}{+} % \xmlsetsetup{\xmldocument}{*}{-} % Empties output?!

[NTG-context] XML - some troubles

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

[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

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

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

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

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

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 qiuhong...@gmail.com 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

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

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 pra...@wxs.nl wrote: new in next beta: \starttext \placefigure [left] {} {\framed[height=1cm,width=2cm]{}} \input tufte \doifelsesidefloat {\dontleavehmode{\bf OKAY}: HERE}

[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: fontsnames globbing path 'c:/windows/fonts/**.otf' fontsnames identifying system font files with suffix 'OTF' fontsnames globbing path 'c:/windows/fonts/**.OTF' fontsnames 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.) Best

[NTG-context] Gallery of fonts

2014-09-10 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 to

[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

  1   2   3   4   5   6   >