[NTG-context] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .
Hello, the code bellow produces unwanted vertical gap between the bottom border of the figure and the following title "A" in the first column (marked by red arrows "<->" in the PDF attached). Note that in the second column there is no such gap. I tried to play with "before", "inbetween",

Re: [NTG-context] Column(set)s & overlapping lines

2019-10-01 Thread Procházka Lukáš Ing .
. \setuplayout[grid=yes] Cheers, Henri On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote: Hello, I have the following code: \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] % \starttext \startcolumnset[example

[NTG-context] Column(set)s & overlapping lines

2019-10-01 Thread Procházka Lukáš Ing .
Hello, I have the following code: \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] % \starttext \startcolumnset[example] \startcolumnsetspan[wide] %\externalfigure[hacker][width=120mm] % Produces overlapping

[NTG-context] Options for \column (was: Columns with non-equal width; nested columns)

2019-09-25 Thread Procházka Lukáš Ing .
Hello, I extended the "Description" section at https://wiki.contextgarden.net/Command/column#Description by an incomplete list of options. Please try it and report back, i.e. document it in the wiki. Someone has to do it… The only effect I can see is when I use \column (= go to next

Re: [NTG-context] Columns with non-equal width; nested columns

2019-09-25 Thread Procházka Lukáš Ing .
Hello Hraban, On Wed, 25 Sep 2019 13:07:50 +0200, Henning Hraban Ramm wrote: If your ConTeXt installation is quite recent, you have texmf-context/doc/context/documents/general/manuals/pagecolumns.pdf This is quite new and I don’t know how usable. useful, thanks. (Hint for everyone: the

Re: [NTG-context] Columns with non-equal width; nested columns

2019-09-25 Thread Procházka Lukáš Ing .
200, Henning Hraban Ramm wrote: Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. : I need to get columns like this: | | 1b | | 1a || +-+| | 2a | 2b || | | || I tried the following: \starttext \startcolumns[n=2] % Ho

[NTG-context] Columns with non-equal width; nested columns

2019-09-24 Thread Procházka Lukáš Ing .
Hello, I need to get columns like this: | | 1b | | 1a || +-+| | 2a | 2b || | | || I tried the following: \starttext \startcolumns[n=2] % How to tell that ratio between columns should be 2:1? \input knuth % Be 1a

Re: [NTG-context] Wiki update

2019-05-30 Thread Procházka Lukáš Ing .
Hello Taco, From now on, when you are editing the wiki (especially the /Command/CMD pages), you can use CMD to output the formal table of arguments for that CMD (omit the backslash) For example, section outputs a table with the formal calling convention(s) for the \section command.

[NTG-context] XML export: basic questions

2019-05-22 Thread Procházka Lukáš Ing .
Hello, suppose having "Main.mkiv": \setupbackend[export=yes] \starttext \startsection[title={Sec},MyPar=MyVal] \input knuth \stopsection \stoptext Some questions concerning XML export: 1. Normally, with \setupbackend[export=yes], Ctx creates "Main-export" directory

Re: [NTG-context] section to have different conversion in body part and appendices

2019-05-22 Thread Procházka Lukáš Ing .
rote: On 5/21/19 3:10 PM, Procházka Lukáš Ing. wrote: Hello, is there a way to tell \section (or other heads) to be "number-converted" differently in bodypart and appendices? Hi Lukáš, I think this is what you want to achieve: \definestructureconversionset [sectionnumbers]

[NTG-context] section to have different conversion in body part and appendices

2019-05-21 Thread Procházka Lukáš Ing .
Hello, is there a way to tell \section (or other heads) to be "number-converted" differently in bodypart and appendices? Something like: \setuphead[section][] % e.g. "appendices:numberconversion=A"? \starttext \starbodyamtter \section{In body} % To produce "1. In body"

[NTG-context] joinedup not working within footnote within itemize

2019-05-08 Thread Procházka Lukáš Ing .
Hello, I need to have itemize with "joinedup" option inside footnote which comes within itemize: \starttext A% \startitemize[][] \item ItemA% \footnote{% Some text \startitemize[joinedup][] % <<< "joinedup" doesn't work here <<< \item Item1

Re: [NTG-context] Prevent indentation after itemize

2019-04-12 Thread Procházka Lukáš Ing .
Hello, thanks Aditya for the explaining example! I added the sample to wiki: https://wiki.contextgarden.net/Indentation Best regards, Lukas indentnext=auto means that the next paragraph will be indented when there is a blank space and not indented when there is no blank space. So

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Procházka Lukáš Ing .
Hello, On Thu, 11 Apr 2019 14:44:39 +0200, Aditya Mahajan wrote: On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: ... Great, perfect, thank you! Lukas The wiki page also explains the details of indentation: https://www.contextgarden.net/Indentation thank you for pointing the link

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Procházka Lukáš Ing .
... Great, perfect, thank you! Lukas On Thu, 11 Apr 2019 12:48:25 +0200, Mikael P. Sundqvist wrote: On Thu, Apr 11, 2019 at 10:02 AM Procházka Lukáš Ing. wrote: Hello, Czech typo rules prefer not indenting paragraphs after itemization. How to setup indenting best to achieve

[NTG-context] Prevent indentation after itemize

2019-04-11 Thread Procházka Lukáš Ing .
Hello, Czech typo rules prefer not indenting paragraphs after itemization. How to setup indenting best to achieve this? The following code gives the desired output: \setupindenting[yes,big] \starttext \section{Sec} \input knuth \startitemize[][after={\blank\noindent}] \item

[NTG-context] Ctx LMTX + Lua 5.4

2019-04-08 Thread Procházka Lukáš Ing .
Hello, I'm using a custom .dll in Ctx (my own .dll written in C with some extensions to Lua). Whenever Ctx started to use a newer version of Lua, I rebuilt the .dll with the appropriate version of lua*.dll. With the latest (non-LMTX) Ctx, I used Lua53.dll from:

Re: [NTG-context] Cascaded description

2019-04-06 Thread Procházka Lukáš Ing .
yTextBox is already defined (\relax it first) warning > \dimen \IndByTextBoxWd is already defined (\relax it first) " How & where to "relax the box"? Best regards, Lukas On Tue, 02 Apr 2019 11:38:18 +0200, Procházka Lukáš Ing. wrote: Hello, I'm trying to get n

[NTG-context] Cascaded description

2019-04-02 Thread Procházka Lukáš Ing .
Hello, I'm trying to get nested descriptions (using "tab") to form a "cascade". The result should look like: AAA ababababababab ababababababab BBB ababababab ababababab CCC ababab ababab <--> indent (margin?) of the first nested description in relation to

[NTG-context] Showing value of a MP variable

2019-03-08 Thread Procházka Lukáš Ing .
Hello, is it possible (namely for debugging) values of MP variables (be it on the console or in the log)? I thought there is MP command "show" (mentioned in mpman.pdf) for this; but: \starttext A \startMPcode newpair pt; pt := (10,20); show pt; % <-- How

Re: [NTG-context] context --ansi creates empty log file

2019-03-08 Thread Procházka Lukáš Ing .
Hello, I encountered the same with the minimal: \starttext \nonexisting \stoptext Messages displayed on the console are "full-fledged" both with "--ansi" switch or without it. But the resulting .log file is incomplete with "--ansi". Would it be possible to adapt loggers to write

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello Aditya, thanks for the code, I'll try something like that. Best regards, Lukas On Thu, 28 Feb 2019 12:54:06 +0100, Aditya Mahajan wrote: On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my

[NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some conditional text from here ... B \e % ... to here

Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Procházka Lukáš Ing .
Hello Hans, On Wed, 20 Feb 2019 09:15:40 +0100, Hans Hagen wrote: as column setup for TABLEs by "\setupTABLE[c][1][width=1in]" is handy and is used frequently, would it be possible to provide identical mechanism for xtables? all is possible but it won't happen ... different approach ... you

Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Procházka Lukáš Ing .
Hello, On Tue, 19 Feb 2019 21:35:41 +0100, Wolfgang Schuster wrote: Procházka Lukáš Ing. schrieb am 19.02.19 um 21:27: Hello, it seems that xtable setup doesn't recognize the "c" option, which is recognized successfully by TABLE setup; tested on mapping provided by "ntb

[NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-19 Thread Procházka Lukáš Ing .
Hello, it seems that xtable setup doesn't recognize the "c" option, which is recognized successfully by TABLE setup; tested on mapping provided by "ntb-to-xtb" module: \usemodule[ntb-to-xtb] \restoreTABLEfromxtable \starttext \bTABLE \setupTABLE[c][1][width=1in] % Set 1st column

[NTG-context] Weird TABLE split across pages

2019-02-19 Thread Procházka Lukáš Ing .
Hello, a TABLE is split weirdly over two pages: - on the first page (here: page 8): the (repeated) header of the TABLE and the first body row followed by void space, - then (here: on the page 9) the remaining part of the TABLE; - see the sample attached. I'm not able to strip my real case

Re: [NTG-context] New logo proposal

2019-01-30 Thread Procházka Lukáš Ing .
Hello, thanks Paul for the nice job! The colorful hexa-shaped logo seems much prettier. One point/suggestion - if the letters "TEX" shared the same background - be it e.g. light gray - it might be cleaner how to read ("discover") the word "ConTeXt"; it would also keep the hexagonal shape,

[NTG-context] Process file with '#' in the file name

2019-01-07 Thread Procházka Lukáš Ing .
Hello, is there a way to process a file with '#' in the file name by ConTeXt? E.g. file "T#.mkiv" with \starttext A \stoptext fails - not so surprisingly; but anyway - is there a way or "trick" to process it? Bets regards, Lukas

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello Luigi, On Thu, 06 Dec 2018 11:23:25 +0100, luigi scarso wrote: On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote: Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page

[NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page) if type(name) == "string" then name = { name = name, page = page } end if name.name then local data =

Re: [NTG-context] graphics

2018-12-05 Thread Procházka Lukáš Ing .
Hello, would it be possible to provide some samples finally? That would be very handy especially for those who are used to create plots via "several clicks on Excel ribbon". Personally, I am interested in 2D plots to be created loading (an) external data file(s) (text files formed into

Re: [NTG-context] Completecontent has problems with chapter in table

2018-11-23 Thread Procházka Lukáš Ing .
Hello, something like this? \setupexternalfigures[location=default] \define[1]\MyNumCmd{% \externalfigure[hacker][height=2cm] } \setuphead[chapter][numbercommand=\MyNumCmd] \starttext \chapter{Ch} \input knuth \stoptext Best regards, Lukas On Fri, 23 Nov 2018 09:13:39

[NTG-context] debug.getinfo

2018-11-22 Thread Procházka Lukáš Ing .
Hello, the function 'debug.getinfo' was removed? The following code: \startluacode print(debug.getinfo) \stopluacode \starttext A \cldcontext{tostring(debug.getinfo)} \stoptext gives/prints 'nil'. IIRC, the function was non-nil some weeks ago... Best regards, Lukas -- Ing.

[NTG-context] Tabulate & repeating header

2018-11-12 Thread Procházka Lukáš Ing .
Hello, the following code: \starttext \bgroup \setuptabulate[split=yes,header=repeat] \starttabulatehead \FL \NC {\bf format char} \NC {\bf meaning} \NC \AR \LL \stoptabulatehead \starttabulate[|r|l|] \NC c \NC centered \NC \AR \NC l

[NTG-context] Keeping Ctx versions (was: Re: spacing)

2018-11-11 Thread Procházka Lukáš Ing .
Hello Henning, I go similar way as Alan does - I'm updating ConTeXt (usually) once a week while keeping backups of the previous versions. My experience is that cca once a year I'm forced to get back to a previous Ctx copy as something stops working (IIRC, there some issues with switching to

[NTG-context] Problem installing a new font

2018-11-11 Thread Procházka Lukáš Ing .
Hello, -- all attachments packed into one .zip -- probably one of the basic questions and skills in ConTeXt, but the first case for me: how to install a (downloaded third-party) font into ConTeXt: I downloaded font source files from https://www.ctan.org/tex-archive/fonts/aurical/ and I

Re: [NTG-context] Problem updating 32b version

2018-10-24 Thread Procházka Lukáš Ing .
Hello Pablo, thank you for testing, it's OK also on another computer with WinX 64b... Best regards, Lukas On Wed, 24 Oct 2018 17:38:17 +0200, Pablo Rodriguez wrote: On 10/24/18 2:58 PM, Procházka Lukáš Ing. wrote: Hello, I encountered problem updating ConTeXt. I'm still using 32b built

[NTG-context] Problem updating 32b version

2018-10-24 Thread Procházka Lukáš Ing .
Hello, I encountered problem updating ConTeXt. I'm still using 32b built due to some deps on 3rd party libs (32b, too). Running 'first-setup.bat' doesn't create 'tex\texmf-mswin\' directory as usually. I also modified the first-setup.bat to avoid 64b platform testing - see the

Re: [NTG-context] Odd/even page test

2018-10-17 Thread Procházka Lukáš Ing .
Hello Pablo, that's it, thank you! Lukas On Tue, 16 Oct 2018 17:58:04 +0200, Pablo Rodriguez wrote: On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote: Hello, I need to check whether even or odd page is to be printed. I'm starting with the following simple code: \def\T{\ifodd

[NTG-context] Odd/even page test

2018-10-16 Thread Procházka Lukáš Ing .
Hello, I need to check whether even or odd page is to be printed. I'm starting with the following simple code: \def\T{\ifodd\pagenumber ODD\else EVEN\fi} \starttext \dorecurse{2}{\T\page} \startTEXpage[width=50mm,height=150mm]\stopTEXpage \dorecurse{2}{\T\page} \stoptext Why

[NTG-context] \noheaderandfooterlines to suppress header frame, too

2018-10-10 Thread Procházka Lukáš Ing .
Hello, this may have been posted here some time before, but - would it be possible to extend \noheaderandfooterlines command to temporarily suppress bottom frame, too? Suppose having the following code: \setupheadertexts[left][right] \setupbackgrounds[header][bottomframe=on] \starttext

Re: [NTG-context] OT: mupdf 1.14

2018-10-09 Thread Procházka Lukáš Ing .
Hello Luigi, BTW, I have problem converting/compressing a scanned ~.pdf (~77 kB; of course, I have some bigger PDFs) via: mutool.exe convert -F pdf -O resolution=150,compress-images -o ~~.pdf ~.pdf - The mutool.exe crashes (here on Win7 64b). (Is my understanding of mutool command

Re: [NTG-context] wrapup

2018-09-21 Thread Procházka Lukáš Ing .
Hello, just a note: whilst command line option "--result=..." must point to the dir where the processed file is located, "os.rename()" allows to move files across dirs (at least on Win7), so this might be a way to evade "--result" limitation. Best regards, Lukas On Fri, 21 Sep 2018

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Procházka Lukáš Ing .
Hello, On Fri, 21 Sep 2018 10:30:34 +0200, Henri Menke wrote: You could still do it, but it would require two passes. In the first pass to identify that you want to change the output file and write the new name to an auxiliary file. In the second file, you use your automation script to read

[NTG-context] tatoolbar

2018-09-07 Thread Procházka Lukáš Ing .
Hello, due to great TextAdept (TA) [1] extendibility, I'd like to try to program a TA add-on which would provide a ConTeXt source "browser". The idea is to create an independent window in the TA which will show the current document structure, or even the project structure, and provide some

[NTG-context] Synctex + Sumatra + TextPad

2018-08-21 Thread Procházka Lukáš Ing .
Hello, this question extends the "[NTG-context] future versions - synctex" thread. I'm using TextPad for editing Ctx source files, PdfXChange Viewer to view PDFs, both on Windows. After reading some recent posts and after studying some web sources - especially [a]

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Procházka Lukáš Ing .
Hello, a bit later - I was thinking if to react here, after reading all about synctex and complicated support for complicatedly assembled source files - but my personal experience/wish... On 7/24/2018 11:02 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Hans, all, One needed feature

[NTG-context] Buffer within a \def

2018-08-10 Thread Procházka Lukáš Ing .
Hello, I'm not very familiar with using buffers, so a basic question: Is it possible to use buffers within a \def? The following sample doesn't compile: \def\T{ \startbuffer[Buf] a b ccc d e f \stopbuffer \getbuffer[Buf] } \starttext \T A \stoptext What's wrong?

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: \setuplayout[page] \startluacode context.setMPtext("Pare", "1") context.setMPtext("Pare2", "22") context.setMPtext("Pare3", "333") \stopluacode % \startuseMPgraphic{Pare}

[NTG-context] Storing Lua values between Ctx "*first* and next runs

2018-07-14 Thread Procházka Lukáš Ing .
Hello, is there a Lua variable/namespace which is stored automatically between Ctx "*first" and following runs? I thought 'userdata' is intended for this, but it seems it's not; I'd like to achieve something like: \startluacode if tex.modes["*first"] then userdata.LPr =

Re: [NTG-context] *** Spam *** Figure captions: "Fig." instead "Figure"

2018-07-13 Thread Procházka Lukáš Ing .
:22 MESZ schrieb "Procházka Lukáš Ing." : Hello, what is the way to change caption text for figures to be "Fig." instead of "Figure"? \setupcaptions[numberstopper={.},] changes "Figure 1" to "Figure 1.", but is there a similar key for t

[NTG-context] Figure captions: "Fig." instead "Figure"

2018-07-13 Thread Procházka Lukáš Ing .
Hello, what is the way to change caption text for figures to be "Fig." instead of "Figure"? \setupcaptions[numberstopper={.},] changes "Figure 1" to "Figure 1.", but is there a similar key for the text? (\setupcations[prefix=] allows only "yes" or "no" -

Re: [NTG-context] Parallel output of source data

2018-07-03 Thread Procházka Lukáš Ing .
clearer for me how buffers work! Best regards, Lukas Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 3. Juli 2018 um 08:52 Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but

Re: [NTG-context] Parallel output of source data

2018-07-03 Thread Procházka Lukáš Ing .
Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but - why? \unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport} \def\dostartcontentexport[#1]% {\iffirstargument

Re: [NTG-context] space sectioning control

2018-06-26 Thread Procházka Lukáš Ing .
Hello, there was no key "textdistance" described on wiki, so I added the option into key-value list: http://wiki.contextgarden.net/Command/setuphead Lukas On Mon, 25 Jun 2018 15:20:43 +0200, Wolfgang Schuster wrote: You have to change the value of textdistance. \setuphead

Re: [NTG-context] TABLE: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-21 Thread Procházka Lukáš Ing .
Hello, On Wed, 20 Jun 2018 13:13:08 +0200, Aditya Mahajan wrote: - How to suppress the vertical space between the last row of "aaa - bbb" table and the first row of the "AAA - BBB" table? (Untested) Try `\blank[none]` instead of `\crlf`. Aditya actually, \blank[none] was not "enough",

Re: [NTG-context] TABLE: centering splitted TABLE

2018-06-21 Thread Procházka Lukáš Ing .
uuu\eTD \bTD vvv\eTD \eTR } \eTABLEbody \eTABLE \stopplacetable \stopalignment Best regards, Lukas On Wed, 20 Jun 2018 07:59:28 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 20. Juni 2018 um

Re: [NTG-context] TABLE: centering splitted TABLE

2018-06-19 Thread Procházka Lukáš Ing .
Hello, On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing. wrote: - How to make the "uuu - vvv" table - which goes into several pages - centered on each page, like "aaa - bbb" (non splitting) table is? any reaction? E.g. "splitted TABLE cannot be ce

Re: [NTG-context] Parsing \...luacode within a \def

2018-06-18 Thread Procházka Lukáš Ing .
Hello, thanks for explanation - I could not understand difference in behavior inside \def ("--" dismiss all following) and out of \def ("--" acts on the one line only); so the explanation is "\startluacode INSIDE MACRO body acts like any such catcode regime changing operation"... Best

[NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Procházka Lukáš Ing .
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b")

[NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Procházka Lukáš Ing .
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b") \stopluacode

[NTG-context] OT: Pexeso (one missing rule)

2018-06-11 Thread Procházka Lukáš Ing .
Hello, there is a card game called "Pexeso". It is played by two or more players with pairs of cards of identical pictures. Initially, cards are spread regularly and are turned upside down. The first player turns two cards; if they are identical, he picks them and continues turning two more

[NTG-context] OT: Pexeso

2018-06-11 Thread Procházka Lukáš Ing .
Hello, there is a card game called "Pexeso". It is played by two or more players with pairs of cards of identical pictures. Initially, cards are spread regularly and are turned upside down. The first player turns two cards; if they are identical, he picks them and continues turning two more

[NTG-context] TABLE: centering splitted TABLE; suppressing vertical space btw two TABLEs

2018-06-09 Thread Procházka Lukáš Ing .
Hello, I have two questions about TABLEs. Suppose having the following code: \setuplayout[page] \starttext \startalignment[middle] \dontleavehmode

Re: [NTG-context] Problem defining macro with Lua inside

2018-05-30 Thread Procházka Lukáš Ing .
... Great, thank you! Lukas On Wed, 30 May 2018 13:47:12 +0200, Henri Menke wrote: On 05/30/2018 08:19 PM, Procházka Lukáš Ing. wrote: Hello, I'm trying to define a macro (a MS Word -> clipboard -> Ctx tool), whose simplified form is the following: This cannot work \startluaco

[NTG-context] Problem defining macro with Lua inside

2018-05-30 Thread Procházka Lukáš Ing .
Hello, I'm trying to define a macro (a MS Word -> clipboard -> Ctx tool), whose simplified form is the following: \def\startWord{% \startluacode context[[ } \def\stopWord{% ]] \stopluacode } \starttext aaa \startWord abc def ghi \stopWord \stoptext

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
<schuster.wolfg...@gmail.com> wrote: \starthead takes takes the title as argument, i.e. \starthead {…} … \stophead Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n]

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, the "headstyle" option in \startitemize affect undesirably all text following \head in the itemize scope: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h] Head \stophead Some text. \item[i] Item. \stopitemize See \in[h] and \in[i].

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello Wolfgang, thank you for the answer, wikified: http://wiki.contextgarden.net/Command/head Best regards, Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pont

[NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize

[NTG-context] Question about \definedescription

2018-05-22 Thread Procházka Lukáš Ing .
Hello, the following defintions: \definedescription[A][alternative=top] \A{Aaa} \input knuth \definedescription[B][alternative=hanging] \B{Bbb} \input knuth generate texts shaped: Aaa Thus, I came to the conclusion that the designer BbbThus, I came to the conclusion

[NTG-context] Trim blank space of a PDF page

2018-05-22 Thread Procházka Lukáš Ing .
Hello, just curious - is threre a way how to crop a page of a PDF via ConTeXt? Ideally - to process a single page PDF into another file, with the one page cropped... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz |

[NTG-context] Framed & before/after

2018-03-21 Thread Procházka Lukáš Ing .
Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or: http://wiki.contextgarden.net/Command/setupframedtexts ? In the following example it seems both keys are ignored:

[NTG-context] Problem with Lua: context.component()

2018-02-23 Thread Procházka Lukáš Ing .
Hello, suppose having: t1.mkiv \starttext a \startluacode context.setvalue("b", "bbb") context.setvalue("c", 2) context.component("t2.mkiv") \stopluacode \stoptext and t2.mkiv \startcomponent * \b\c \stopcomponent I get no result when trying to

[NTG-context] Feature request: display Lua version

2018-02-22 Thread Procházka Lukáš Ing .
Hello, namely due to planned embedding Lua 5.3 into ConTeXt, would it be possible ConTeXt to show Lua version being used? Something like: d:\Lukas\ConTeXt\Test>context.exe --version mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file:

[NTG-context] Substitution for ". . ."

2018-02-16 Thread Procházka Lukáš Ing .
Hello, suppose having code: \starttext \section[sec]{This is a very long and important and unshortenable section title} See \about[sec]. \stoptext It produces: " 1 This is a very long and important and unshortenable section title See “This is a very long and important and

Re: [NTG-context] Testing value of a \def

2018-02-08 Thread Procházka Lukáš Ing .
Great, thank you! Lukas On Thu, 08 Feb 2018 11:06:29 +0100, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 8. Februar 2018 um 10:50 Hello, I'm trying to test whether value of \jobname is "Test"; I suppose it shou

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Procházka Lukáš Ing .
Hello, thanks both for quick answer. Best regards, Lukas On Thu, 08 Feb 2018 12:49:53 +0100, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 8. Februar 2018 um 12:14 Hello, in the following example: \setupheadertexts

[NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Procházka Lukáš Ing .
Hello, in the following example: \setupheadertexts[Left][Right] \starttext Aaa \page \startsection[title={Sec}] \start \setupbodyfont[6pt] \dorecurse{12}{\input knuth} \stop \stopsection \stoptext header text size on page #2 is small (6 pt) although

[NTG-context] Testing value of a \def

2018-02-08 Thread Procházka Lukáš Ing .
Hello, I'm trying to test whether value of \jobname is "Test"; I suppose it should be as the file name is "Test.mkiv". But the code: \starttext \jobname \doifelse{\jobname}{Test}{Yes}{No} \def\T{Test} \ifx\jobname\T True\else False\fi \ctxcommand{doifelse("\jobname" ==

Re: [NTG-context] image file resolver in Lua?

2018-02-06 Thread Procházka Lukáš Ing .
Hello Henning, On Tue, 06 Feb 2018 13:13:12 +0100, Henning Hraban Ramm wrote: I’ll try as soon as I get some time, since algorithmic image placement is a recurring problem for me, as I try to replace InDesign in my workflow. I thought about providing a module, but each of my

Re: [NTG-context] image file resolver in Lua?

2018-02-06 Thread Procházka Lukáš Ing .
Hello Henning, This is really interesting, but my original question was about the file path resolver, i.e. how to get "t:/sources/cow.pdf" from just "cow"? I guess there was a similar question here: https://mailman.ntg.nl/pipermail/ntg-context/2017/088324.html Reading till the

Re: [NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Procházka Lukáš Ing .
Hello Jeong, see both solutions attached. Check them in relation to TOC. Best regards, Lukas On Sat, 27 Jan 2018 16:08:03 +0100, Jeong Dal wrote: Hi, I’d like to start the chapter number from 0. So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test,

Re: [NTG-context] TOC and appendices

2018-01-08 Thread Procházka Lukáš Ing .
sec 1 \stopbodymatter \startappendices %\definestructureconversionset[T][][A] %\setupheads[sectionconversionset=T] \chapter{ChapB} In chap B \section{SecA} In sec A \stopappendices \stoptext Cheers. Am 06/01/2018 um 14:32 schrieb Procházka Luk

[NTG-context] TOC and appendices

2018-01-06 Thread Procházka Lukáš Ing .
Hello, I have document which contains Appendices. The part of appendices should be numbered form "A", contrary to the rest of the document (body part), which is to be numbered naturally from 1. Sections, even these in appendices, are numbered OK; the problem is that even sections of

[NTG-context] \setupinteraction "author" adds '"'

2018-01-06 Thread Procházka Lukáš Ing .
Hello, once the "author" member in \setupinteraction contains ",", Ctx adds (unwanted) quation marks into "author" field in PDF. So - how to avoid these '"'? My MWE: \setupinteraction[author={Foo, Bar}] \starttext A \stoptext Result - see the picture. Best regards, Lukas --

Re: [NTG-context] Small caps and bold

2017-12-14 Thread Procházka Lukáš Ing .
Hello, On Thu, 14 Dec 2017 10:16:33 +0100, Hans Hagen <pra...@wxs.nl> wrote: On 12/14/2017 8:37 AM, Procházka Lukáš Ing. wrote: Hello, I'm trying to typeset some text in bold + smallcaps. But even the sample on wiki: http://wiki.contextgarden.net/Bold_small_caps ex

[NTG-context] Small caps and bold

2017-12-13 Thread Procházka Lukáš Ing .
Hello, I'm trying to typeset some text in bold + smallcaps. But even the sample on wiki: http://wiki.contextgarden.net/Bold_small_caps extended to: \starttext \setff{smallcaps} Normal and \bf bold Small Caps. {\sc Normal and \bf bold Small Caps.} \stoptext doesn't

Re: [NTG-context] Metapost: How to get total number of pages?

2017-11-17 Thread Procházka Lukáš Ing .
Hello Thomas, thank you, I'll keep it in mind! Best regards, Lukas On Fri, 17 Nov 2017 14:42:58 +0100, Thomas A. Schmitz <thomas.schm...@uni-bonn.de> wrote: On 17.11.2017 14:02, Procházka Lukáš Ing. wrote: it seems that there is 'PageNumber' variable (macro) available within M

[NTG-context] Metapost: How to get total number of pages?

2017-11-17 Thread Procházka Lukáš Ing .
Hello, it seems that there is 'PageNumber' variable (macro) available within MP code, maybe introduced by 'StartPage', within MP. How do I get total number of pages or last page number within MP (in Ctx: \totalnumberofpages, \lastpage)? TIA. Best regards, Lukas -- Ing. Lukáš Procházka |

Re: [NTG-context] Tabulate containing high element

2017-11-01 Thread Procházka Lukáš Ing .
Hello Taco, thank you for the hack. \tabulatesplitlinemode=0 has local effect, so one may enclose it into group to protect global setting. I also had to enclose some elements into \tbox to get proper vertical alignment - see the MWE attached. Thank you anyway. Best regards, Lukas On

Re: [NTG-context] Tabulate containing high element

2017-10-31 Thread Procházka Lukáš Ing .
Hello, any idea? My other attempts to constrain the row height to reflect its highest member fail, too. Is it possible in the tabulate environment at all? Best regards, Lukas On Mon, 30 Oct 2017 09:04:18 +0100, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello, On Sun, 29 Oct 2

Re: [NTG-context] Tabulate containing high element

2017-10-30 Thread Procházka Lukáš Ing .
Hello, On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan <adit...@umich.edu> wrote: On Sun, 29 Oct 2017, Procházka Lukáš Ing. wrote: Hello, how to make tabulate row "aware" of some content of some "bigger" height? In the following sample: \starttext \star

[NTG-context] Tabulate containing high element

2017-10-29 Thread Procházka Lukáš Ing .
Hello, how to make tabulate row "aware" of some content of some "bigger" height? In the following sample: \starttext \starttabulate[|pd(.4\textwidth)|p|] \HL \NC \framed[location=top,width=1in,height=1in]{Abc} \VL Def \NC\NR \HL \stoptabulate \stoptext

Re: [NTG-context] hvdm-plc module

2017-10-27 Thread Procházka Lukáš Ing .
I like to hear if my offer is accepted, but I will not feel disappointed if it is decided not to incorporate it into mkiv. Hans van der Meer On 2 Aug 2017, at 17:47, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello Mojca, hello Hans, would it be possible to include the hdvm-plc packa

Re: [NTG-context] Tabulate and \VL

2017-10-24 Thread Procházka Lukáš Ing .
Hello, I noticed that \VL's behavior over several lines has been fixed - thank you, Hans! Best regards, Lukas On Thu, 05 Oct 2017 15:28:54 +0200, Hans Hagen <pra...@wxs.nl> wrote: On 10/5/2017 8:57 AM, Procházka Lukáš Ing. wrote: Hello, maybe a very basic question - - but in the

[NTG-context] Tabulate and \VL

2017-10-05 Thread Procházka Lukáš Ing .
Hello, maybe a very basic question - - but in the sample bellow the VL of the first row is drawn only to height of the first line of the 2line paragraph; how to make the VL "full-height"? \starttext \starttabulate[|l|p|] \NC Hello \VL This is a dummy but very lng text which

Re: [NTG-context] itemtag

2017-09-26 Thread Procházka Lukáš Ing .
... Great, thank you, Hans! (A demo/result involved.) Lukas On Mon, 25 Sep 2017 19:13:03 +0200, Hans Hagen wrote: Hi, At the context meeting there was some request / mentioning of a itemized tabulate. In fact we already have \itemtag. I've now added \NI too. \starttext

Re: [NTG-context] Increment the section counter

2017-09-14 Thread Procházka Lukáš Ing .
Hello, BTW, I needed to add a section numbered by zero some time ago; there is a solution which uses "conversion" parameter. When one needs to add a zero based section "manually" (ad hoc), there is another solution, too: \starttext \bgroup \setuphead[section][ownnumber=yes]

  1   2   3   4   5   6   7   8   >