Re: [NTG-context] Unicode text conversion

2017-01-27 Thread Procházka Lukáš Ing .
Hello Hans, that's it, thank you! Best regards, Lukas On Fri, 27 Jan 2017 14:08:42 +0100, Hans Hagen wrote: utf16_to_utf8_le -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4

[NTG-context] Dot fills shifted down

2017-01-31 Thread Procházka Lukáš Ing .
Hello, the following code: \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] Fill here: \filler[DotFill]{} produces filler with dots on the baseline. Is there a way to shift the dots a bit lower, bellow the baseline, e.g. to 0.25em bell

Re: [NTG-context] Dot fills shifted down

2017-01-31 Thread Procházka Lukáš Ing .
Jan 2017, at 12:33, Procházka Lukáš Ing. wrote: Hello, the following code: \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] Fill here: \filler[DotFill]{} produces filler with dots on the baseline. Is there a way to shift the dots a bit lower

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Procházka Lukáš Ing .
Hello, tables in Lua are "shared" - there is one copy until you "deep copy" one to another. Se comments bellow - On Mon, 13 Feb 2017 06:50:38 +0100, Jeong Dal wrote: Dear all, It may be a slight off topic. In the following example, I copied a table “m” to “tempM”, and remove the last row

[NTG-context] Section 1.2)-3

2017-02-16 Thread Procházka Lukáš Ing .
Hello, how to \setuphead to produce numbers like "1.2)-3"? \setuphead[section][] \setuphead[subsection][] \setuphead[subsubsection][] \section{Sec} % To give "1. Sec" \subsection{SSec} % To give "1.1) SSec" \subsubsection{SSSec} % To give "1.1)-1. SSSec" Best regards, Lukas

[NTG-context] Alter text to "Figure"

2017-02-27 Thread Procházka Lukáš Ing .
Hello, how to alter auto-text to figures placed by "\placefloat[]{Caption}{\externalfigure[]}" to be: "Figure 1. Caption" instead of "Figure 1 Caption", IOW, how to add "." after the figure "auto-text"? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz

[NTG-context] \externalfigure locator

2017-03-20 Thread Procházka Lukáš Ing .
Hello, is there a Lua version of external figure locator used by \externalfigure? Suppose having: \setupexternalfigures[location={default,local,global},directory={../../Pics}] \externalfigure[mill]% Finds e.g. in d:\Ctx-Beta\tex\texmf-context\tex\context\sample\common\mill

Re: [NTG-context] \externalfigure locator

2017-03-21 Thread Procházka Lukáš Ing .
ipairs(figures.paths) do local figure_file = path .. '/' .. file local doc = lpdf.epdf.load(figure_file) -- assume pdf (just an example) if doc then …. end done There are perhaps helper functions as well. Joseph De : Procházka Lukáš Ing. Envoyé le :lundi

Re: [NTG-context] \externalfigure locator

2017-03-22 Thread Procházka Lukáš Ing .
21 Mar 2017 08:50:18 +0100, Procházka Lukáš Ing. wrote: Hello Joseph, thank you for reaction. I guess: - "figures.path' is a ConTeXt variable, is it? - There are more extensions possible, not only .pdf. So how to access other extensions Ctx is to manage? - I guess that 'lpdf.e

Re: [NTG-context] Altering footnotes via \setupfootnotes

2017-03-27 Thread Procházka Lukáš Ing .
Hello Henri, that's it - thank you for the solution! BTW - Your code seems to work even without \blank[-line]: \setupnote [footnote] [after={\switchtobodyfont[\noteparameter{bodyfont}]}] \setupnotation [footnote] [ after={\blank[line]}, indenting={yes,medium}, ] \startt

[NTG-context] Line numbering broken somehow?

2017-03-28 Thread Procházka Lukáš Ing .
Hello, in the following example line numbering with \typefile works well except the last page - here it doesn't follow the style assigned. What's wrong? Best regards, Lukas \starttext Some text here \page \start \setupinterlinespace[1.8ex] \definefontsize[z] \define

[NTG-context] Pretty printer

2017-03-28 Thread Procházka Lukáš Ing .
Hello, I'd like to write my own pretty-printer (it should just highlight words/members of a set-of-keywords with a color), preferably as a Lua handler. Following wiki: http://wiki.contextgarden.net/Verbatim_text I searched for verb*.* or pret*.* in the Ctx distribution (on my local in

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
Hello, could anyone confirm that line numbering on the last page is somehow broken, i.e. it ignores the style assigned by \setuplinenumbering (but works OK on other pages)? Best regards, Lukas On Tue, 28 Mar 2017 10:10:14 +0200, Procházka Lukáš Ing. wrote: Hello, in the following

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
Hello, thanks for explanation. In your example - On Thu, 30 Mar 2017 13:08:16 +0200, Wolfgang Schuster wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 30. März 2017 um 12:28via Postbox <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_camp

[NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-05 Thread Procházka Lukáš Ing .
Hello, I encountered problem loading WinCon.dll (a module that I wrote and I've been using for several years): lua error > lua error on line 3 in file d:/Lukas/Jobs/D10-036/10-037.SO/Geom.Smo/~/WinTest.mkiv: error loading module 'WinCon' from file 'd:\Lukas\Lua\52\WinCon.dll':

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-05 Thread Procházka Lukáš Ing .
Hello, On Wed, 05 Apr 2017 15:06:08 +0200, Hans Hagen wrote: On 4/5/2017 2:29 PM, Procházka Lukáš Ing. wrote: Strange thing is that WonCon.dll with Ctx used to work for several years... What is the problem now? Probably an updated compiler ... after all, vs 2008 is 8 years old which is

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-05 Thread Procházka Lukáš Ing .
Hello, On Wed, 05 Apr 2017 17:02:01 +0200, Hans Hagen wrote: On 4/5/2017 4:12 PM, Procházka Lukáš Ing. wrote: Just to ensure that I'm not trying to use 32b WinCon.dll with 64b Ctx/LuaTeX... os.platform will it retrieve OS platform or LuaTeX (= executable) platform? Which compil

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-06 Thread Procházka Lukáš Ing .
Hello Akira, you mention possibility of --shell-escape at http://tug.org/pipermail/luatex/2017-March/006410.html. How exactly do you mean to combine "ffi" and "--shell-escape" to work with latest ConTeXt/LuaTeX? (I tried (rather amateurishly) to run "context --shell-escape WinTest.mkiv

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-11 Thread Procházka Lukáš Ing .
Hello Akira, On Sun, 09 Apr 2017 00:23:48 +0200, Akira Kakuto wrote: Any way to re-enable user DLL loading into ConTeXt, even in the future, would be appreciated... I have just uploaded dynamically linked luatex and luajittex. great news, I'll try it in the upcoming week. Thank you. Bes

Re: [NTG-context] Problem loading a DLL with the latest Ctx beta

2017-04-18 Thread Procházka Lukáš Ing .
Hello Akira, I tested ConTeXt run with my DLL module and all works fine. Thank you again! Best regards, Lukas On Sun, 09 Apr 2017 00:23:48 +0200, Akira Kakuto wrote: Any way to re-enable user DLL loading into ConTeXt, even in the future, would be appreciated... I have just uploaded dyn

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Procházka Lukáš Ing .
Hello, do you mean this? - It shows EXACTLY 3 digits after the decimal point: \cldcontext{string.format("\letterpercent.3f", 5.8/1.6)} \cldcontext{string.format(string.char(37) .. ".3f", 5.8/1.6)} \startluacode context(string.format("%.3f", 5.8/1.6)) \stopluacode Best regards, Lu

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
Hello, suppose having the following code: \startuseMPgraphic{T} newpath rc; rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); draw rc withpen pencircle scaled (2.5mm) withcolor %col; transparent(1, .4, col); d

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
Hello, that works fine, thank you! Best regards, Lukas On Mon, 24 Apr 2017 15:39:56 +0200, Thomas A. Schmitz wrote: On 24.04.2017 15:11, Procházka Lukáš Ing. wrote: The rectangle drawn is transparent, which is OK. But the text "Test" is not, is it fully red; why? How to sp

Re: [NTG-context] Unicode text conversion

2017-06-14 Thread Procházka Lukáš Ing .
Hello, is there also a way to convert CP1250 to UTF8 and vice versa? Best regards, Lukas On Fri, 27 Jan 2017 14:08:42 +0100, Hans Hagen wrote: On 1/27/2017 1:48 PM, Procházka Lukáš Ing. wrote: Hello, does ConTeXt contain a built-in Lua conversion routine to convert text in UTF-16 (and

Re: [NTG-context] Unicode text conversion

2017-06-14 Thread Procházka Lukáš Ing .
OK, thank you; I deduce: regimes.toregime('8859-1',"abcde Ä","?") means actually: - "convert from the current regime" (be e.g. UTF8) - regimes.toregime(, , ) Lukas On Wed, 14 Jun 2017 14:21:47 +0200, Hans Hagen wrote: On 6/14/2017 2:07 PM, Proch

Re: [NTG-context] Unicode text conversion

2017-06-15 Thread Procházka Lukáš Ing .
11 io.savedata(fn .. "~", str) 12 end 13 14 -- 15 16 cvt("_01-Identifikacni-Udaje.mkiv") 17 >> \stopluacode What's wrong with my code? Any help would be appreciated. Best regards, Lukas On Wed, 14 Jun 2017 14:31:47 +0200, Procházka

[NTG-context] hvdm-plc module

2017-08-01 Thread Procházka Lukáš Ing .
Hello, just to check: is https://www.google.cz/search?q=hvdm-plc+context&ie=utf-8&oe=utf-8&client=firefox-b-ab&gfe_rd=cr&ei=4o-AWfa3Fa6E8QeZmYH4Bw available for download? I'd like to test/use the hvdm-plc module (probably here: hvdmeer.myqnapcloud.com/pubs), which is mentioned in one

[NTG-context] Pdf info with Lua/Ctx API

2017-08-14 Thread Procházka Lukáš Ing .
Hello, is there a way how to get the following info from a PDF file via Lua/Ctx API?: - first: number of pages of the PDF, - next: for each page: get width, height and orientation (portrait/landscape) or rotation (+90,+ 180, +270 or so) of i-th page. Best regards, Lukas -- Ing. Lukáš Proch

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-15 Thread Procházka Lukáš Ing .
, Hans Hagen wrote: On 8/14/2017 1:08 PM, Procházka Lukáš Ing. wrote: Hello, is there a way how to get the following info from a PDF file via Lua/Ctx API?: - first: number of pages of the PDF, - next: for each page: get width, height and orientation (portrait/landscape) or rotation (+90,+ 18

Re: [NTG-context] Pdf info with Lua/Ctx API

2017-08-16 Thread Procházka Lukáš Ing .
}, } " - Is it intend? Or residual debugging status? 2. Is there a Ctx built-in converter which would convert width and height (e.g. here: ["height"]=55380991) from "height units" to milimeters? Best regards, Lukas On Mon, 14 Aug 2017 16:55:09 +0200, Hans Hagen wro

[NTG-context] Currency - space delimiting thousands

2017-08-27 Thread Procházka Lukáš Ing .
Hello, is there a built-in (Lua-?)numeric format to produce big numbers with spaces delimiting thousands (widely used for currencies)? E.g.: \cldcontext{string.format("%[separate-thousands].0f", 1234567.0)} % To give: "1 234 567.00" Best regards, Lukas -- Ing. Lukáš Procházka |

Re: [NTG-context] Currency - space delimiting thousands

2017-08-29 Thread Procházka Lukáš Ing .
Hello, thank you, Hans... On Mon, 28 Aug 2017 11:30:49 +0200, Hans Hagen wrote: On 8/27/2017 9:15 PM, Procházka Lukáš Ing. wrote: Hello, is there a built-in (Lua-?)numeric format to produce big numbers with spaces delimiting thousands (widely used for currencies)? E.g.: \cldcontext

Re: [NTG-context] Currency - space delimiting thousands

2017-08-29 Thread Procházka Lukáš Ing .
That's great, Hans, thank you! Lukas On Tue, 29 Aug 2017 13:30:48 +0200, Hans Hagen wrote: On 8/29/2017 12:35 PM, Procházka Lukáš Ing. wrote: Hello, thank you, Hans... On Mon, 28 Aug 2017 11:30:49 +0200, Hans Hagen wrote: On 8/27/2017 9:15 PM, Procházka Lukáš Ing. wrote: Hello

[NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Procházka Lukáš Ing .
Hello, suppose the following code: \setuplayout[header=5mm,headerdistance=5mm,] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext Page 2 in this sample is empty - no text and no header/footer - b

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-31 Thread Procházka Lukáš Ing .
temporarily switch header and footer background off; would \page[noheaderandfooterbackground] be implemented (kindly asking Hans...)? Best regards, Lukas On Wed, 30 Aug 2017 19:43:57 +0200, Pablo Rodriguez wrote: On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: [...] How to: - define header to

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Procházka Lukáš Ing .
Best regards, Lukas On Wed, 30 Aug 2017 19:43:57 +0200, Pablo Rodriguez wrote: On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: [...] How to: - define header to be framed normally and - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called? Hi Lukáš,

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-04 Thread Procházka Lukáš Ing .
ybe a switch to which would suppress result/page trimming would be nice here... Best regards, Lukas On Fri, 01 Sep 2017 22:34:53 +0200, Pablo Rodriguez wrote: On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote: Hello Pablo, you inspired me: \setuplayout[header=5mm,headerdistance=5mm

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

Re: [NTG-context] itemtag

2017-09-25 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 \startitemize[n] \

[NTG-context] Tabulate and \VL

2017-10-04 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 g

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 wrote: On 10/5/2017 8:57 AM, Procházka Lukáš Ing. wrote: Hello, maybe a very basic question - - but in the sample bellow t

Re: [NTG-context] hvdm-plc module

2017-10-27 Thread Procházka Lukáš Ing .
ll 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. wrote: Hello Mojca, hello Hans, would it be possible to include the hdvm-plc package into ConTeXt garden minimals? The module seems very useful -

[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] Tabulate containing high element

2017-10-30 Thread Procházka Lukáš Ing .
Hello, On Sun, 29 Oct 2017 23:50:51 +0100, Aditya Mahajan 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 \starttabulate[|pd(.4\textwi

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. wrote: Hello, On Sun, 29 Oct 2017 23:50:51 +0100

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

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

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 wrote: On 17.11.2017 14:02, Procházka Lukáš Ing. wrote: it seems that there is 'PageNumber' variable (macro) available within MP code, maybe introduce

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

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 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 extended to: \star

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

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

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áš Ing.: \

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, but it doesn’t wo

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

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 projects has so

[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" == "Test")}{

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

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 wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 8. Februar 2018 um 12:14 Hello, in the following example: \setupheadertexts[Left][Right] \starttext Aaa

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 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 should be as the file name is "

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

[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: d:/Ctx-Beta/

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

[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: \defineframed[AddressBox][before=\re

[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 | http://w

[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] 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 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 wrote: Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11

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

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
: \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][] \item[a] A \head[b] B

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

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

[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 \bTABLE[before=,after=,inbetwee

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

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

[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] 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") \s

[NTG-context] papersize A1?

2016-02-02 Thread Procházka Lukáš Ing .
Hello, the following code doesn't produce 594 x 841 mm (A1) page; the resulting size is 594 x 758 mm. Also, there is no "Hello" text. \setuppapersize[A1] \starttext Hello \stoptext What's wrong? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o.

[NTG-context] \externalfigure produces blank page

2016-02-04 Thread Procházka Lukáš Ing .
Hello, let's have a simple code: \starttext \startTEXpage \externalfigure[Tv32.pdf]%[scale=500] \stopTEXpage \stoptext It yields a blank (or empty) page (its size A1 is OK); and the size of the resulting .pdf is very close to that of the inserted image. The inserted Tv32.pdf

Re: [NTG-context] \externalfigure produces blank page

2016-02-04 Thread Procházka Lukáš Ing .
Hello, nice to hear that. So - when I renew Ctx tonight, will it work well tomorrow? Lukas On Thu, 04 Feb 2016 12:54:24 +0100, luigi scarso wrote: On Thu, Feb 4, 2016 at 12:44 PM, Procházka Lukáš Ing. wrote: Hello, let's have a simple code: \starttext \startTE

[NTG-context] \usemodule[pgfplots] fails

2016-02-08 Thread Procházka Lukáš Ing .
Hello, the following code: \usemodule[pgfplots] \starttext aaa \stoptext fails with: " close source> 1 > 16 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv tex error > tex error on line 0 in file : ! Emergency stop <*> cont-yes.mkiv " When I comme

Re: [NTG-context] \usemodule[pgfplots] fails

2016-02-08 Thread Procházka Lukáš Ing .
+0100, Hans Hagen wrote: On 2/8/2016 11:02 AM, Procházka Lukáš Ing. wrote: Hello, the following code: \usemodule[pgfplots] \starttext aaa \stoptext fails with: " close source> 1 > 16 > d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv tex error

[NTG-context] \starthiding inside \doifmode?

2016-02-12 Thread Procházka Lukáš Ing .
Hello, it seems that \starthiding ... \stophiding dislikes \doifmode scope. The following code fails: \enablemode[A] \starttext Hello \starthiding Don't show me %\stophiding \doifmode{A} { Aaa \starthiding Don't show me %\stophiding } World \stoptext On

Re: [NTG-context] Job done event

2016-02-15 Thread Procházka Lukáš Ing .
Thanks, working solution! Lukas On Sun, 14 Feb 2016 15:38:28 +0100, Wolfgang Schuster wrote: \appendtoks ... % put your own code here \to \everystoptext Wolfgang -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bez

[NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize \item Hello! \stopitemize \stopbuffer which would

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
That's it, thank you! Lukas On Wed, 17 Feb 2016 13:39:47 +0100, Marco Patzer wrote: On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. wrote: is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=context] Also have a look at Aditya's

Re: [NTG-context] in next beta

2016-03-10 Thread Procházka Lukáš Ing .
Hello, I'm probably not getting what supposed; my sample files are attached; both were compiled with today's beta. Could the intended product be placed somewhere to download? Best regards, Lukas On Tue, 08 Mar 2016 11:22:50 +0100, Hans Hagen wrote: On 3/7/2016 9:59 PM, Wolfgang Schuster w

Re: [NTG-context] Are nested sections possible?

2016-03-14 Thread Procházka Lukáš Ing .
Hello, one more thing: It would be nice to allow mixing: - \section like commands (or \startsection ... \stopsection) - AND \startsectionlevel ... \stopsectionlevel. The main problem is that one may NEED to mix: - (ancient) source files which use \section (deprecated) style - with more versat

Re: [NTG-context] How to get the current section level?

2016-04-04 Thread Procházka Lukáš Ing .
... That's it, thank you! Lukas On Mon, 04 Apr 2016 11:30:15 +0200, Wolfgang Schuster wrote: Lukáš Procházka 3. April 2016 um 22:02 Hello, is there a (Lua) way how to get the current section level? \startsetups[headinformation] \starttabulate \NC Name \E

[NTG-context] How to center \framed on a position?

2016-04-06 Thread Procházka Lukáš Ing .
Hello, how to center vertically and horizontally a \framed text at the layer origin? I'm not able to figure it out... Here's my code: \setuplayout[page] \definelayer[mybg] \setlayer[mybg] [x=\dimexpr.5\paperwidth\relax,y=\dimexpr.5\paperheight\relax,] {\framed [frame=on,offset=

Re: [NTG-context] combining itemize and starttabulate

2016-04-07 Thread Procházka Lukáš Ing .
Hello, that's a great feature! I guess it will be involved into Ctx (with the next beta)... Lukas On Thu, 07 Apr 2016 10:49:25 +0200, Hans Hagen wrote: On 4/6/2016 1:04 PM, Jan Willem Flamma wrote: Dear members, The following combination of itemize and starttabulate is numbered from 'd. t

Re: [NTG-context] Redirect compilation to another .pdf?

2016-04-11 Thread Procházka Lukáš Ing .
Hello, On Sun, 10 Apr 2016 23:43:30 +0200, Hans Hagen wrote: On 4/10/2016 9:49 PM, Lukáš Procházka wrote: - the option "--jobname" is not listed when you type "context.exe" (= help), so it seems like a "hidden" option; it's not supported as engine flag - Suggestion: would it be possible

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

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 centered

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; 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", \bl

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

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

2018-07-02 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 \edef\conten

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

[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" - http://wiki.contextgarden.net/Command

<    1   2   3   4   5   6   7   8   >