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

2016-06-06 Thread Procházka Lukáš Ing .
Hello Hans, just to remind - - would it be possible to use "--result=OutputFileName" as the name for the output stream immediately? (See the history bellow.) Best regards, Lukas On Sun, 10 Apr 2016 23:43:30 +0200, Hans Hagen wrote: On 4/10/2016 9:49 PM, Lukáš Procházka

[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

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 <luigi.sca...@gmail.com> wrote: On Thu, Feb 4, 2016 at 12:44 PM, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello, let's have a

[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] \usemodule[pgfplots] fails

2016-02-08 Thread Procházka Lukáš Ing .
, Hans Hagen <pra...@wxs.nl> 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.m

[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

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

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

[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

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 <li...@homerow.info> wrote: On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. <l...@pontex.cz> wrote: is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=co

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,

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

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

[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

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

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]

[NTG-context] Thick border of one side of TR/TD

2016-05-17 Thread Procházka Lukáš Ing .
Hello, what is the easiest way to border table row along ONE side? In my example - first row bottom and last row top? All being typeset as TABLE (i.e. \bTABLE ... \bTR ... \bTD ...). I played a bit with rulethickness for TD and/or TR but in all attempts the WHOLE border thickness is

[NTG-context] Dotted box in a form

2016-08-10 Thread Procházka Lukáš Ing .
Hello, I need to create a double "sign-here" form, with the space for the signature underlined with dots. The code bellow works fine and does exactly what I need. The potential question is whether there is a simpler way to achieve this, even without MP code, e.g. with only \leaders or what.

[NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,landscape] Page 2 \page Page 3 \stoptext (I need to mix A4 portrait/landscape pages in a document...) When I need to switch to landscape for more pages

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
2016 16:00:05 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 18. Juli 2016 um 15:09 Hello, why this code doesn't restore A4-portrait for page 3? \showframe \starttext Page 1 \page \adaptpapersize[A4,land

Re: [NTG-context] Restoring/switching paper size?

2016-07-18 Thread Procházka Lukáš Ing .
Hello, one more problem - paper height still 297 mm? \definepapersize[A4L][A4,landscape] \showframe \starttext \setuppapersize[A4L] A4L \stoptext (Ctx already patched by WS' solution.) Best regards, Lukas On Mon, 18 Jul 2016 16:41:06 +0200, Procházka Lukáš Ing. &l

Re: [NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .
That's it, thank you! Lukas On Wed, 20 Jul 2016 10:37:04 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 20. Juli 2016 um 09:37 Hello, is there a way to tell ConTeXt "go to odd page, insert empty page to reach

[NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .
Hello, is there a way to tell ConTeXt "go to odd page, insert empty page to reach the next odd page" eventually? (IOW: When currently on odd page, break page and insert one empty (blank) (= even) page; continue on the next (= odd) page. When currently on even page, break page

Re: [NTG-context] Restoring/switching paper size?

2016-07-20 Thread Procházka Lukáš Ing .
Great, thank you! Lukas On Mon, 18 Jul 2016 17:12:04 +0200, Wolfgang Schuster wrote: A normal environment should be enough (push and pop are used to save and restore states etc.) which inserts are the necessary page breaks. \unprotect \def\startpapersize

Re: [NTG-context] Product-component structure

2016-07-11 Thread Procházka Lukáš Ing .
Hello, my "how-I-do-it" used for typesetting a large book was: styles.sty % Styles, settings etc.; never compiled individually, thus ".sty"; the file also doesn't use '\startenvironment' ... '\stopenvironment' commands (I even don't know whether such commands exist; anyway, I didn't need

[NTG-context] Detect an empty page of a .pdf?

2016-07-11 Thread Procházka Lukáš Ing .
Hello, is there a ConTeXt-Lua way to detect whether i-th page of a .pdf is empty (meaning "has no text on it")? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241

[NTG-context] \startsectionlevel broken?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, I'm getting weird output with \startsectionlevel - its parameters are flushed into page. I copied a sample from http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo and I compiled it with: " This is LuaTeX, Version 0.98.0 (TeX Live 2016/W32TeX) system

[NTG-context] Header background off with \page?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, the following code: \setupheadertexts[Le][Ri] \setupbackgrounds[header][text][bottomframe=on] \starttext \startTEXpage \externalfigure[dummy] \stopTEXpage \page[yes,header,footer,odd] % Empty page to come here Blabla \stoptext should generate an empty page. The

[NTG-context] Nicer than 'context("\\\\")'?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, is there an alternative code instead of 'context("")'? See the code: \starttext %\startsetups[headertext] % \startframed[width=fit,align=flushleft] %Bla\\ %Uhh % \stopframed %\stopsetups \startluacode context.startsetups{"headertext"}

[NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello, I'm preparing a child copybook. I'd like to write a uppercased letter "as is" followed by its shape drawn with dots - something like /\ . / \ . . /\ . / \ . . I guess that some MP "trick(s)" might be used; also, a "simple" font should be used to be

Re: [NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello Taco, On Tue, 16 Aug 2016 09:43:12 +0200, Taco Hoekwater wrote: Hi Lukáš, Most anything can be programmed, but in this case the task is very difficult. Modern fonts always use filled paths instead of stroke lines, so an “A” consists of two paths: the outer shape

Re: [NTG-context] Dotted characters

2016-08-16 Thread Procházka Lukáš Ing .
Hello Hans, On Tue, 16 Aug 2016 09:54:26 +0200, Hans Hagen wrote: the best one can expect without too much work is \startMPpage draw outlinetext.f ("A") () ; currentpicture := currentpicture shifted (-bbwidth currentpicture,0) ; draw

[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

Re: [NTG-context] Dot fills shifted down

2017-01-31 Thread Procházka Lukáš Ing .
Best regards: OK On 31 Jan 2017, at 12:33, Procházka Lukáš Ing. <l...@pontex.cz> wrote: Hello, the following code: \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] Fill here: \filler[DotFill]{} produces filler with dots on

[NTG-context] Unicode text conversion

2017-01-27 Thread Procházka Lukáš Ing .
Hello, does ConTeXt contain a built-in Lua conversion routine to convert text in UTF-16 (and others) to UTF-8 string? Something like: \startluacode local str = "A unicode string" -- Or e.g. string loaded from a file str = convert(str, "utf16", "utf8") context(str) \stopuacode

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

[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

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

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

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
t;mojca.miklavec.li...@gmail.com> wrote: On 24 August 2016 at 09:05, Procházka Lukáš Ing. wrote: Hello Mojca, thanks for the answer. I need a COMMAND LINE solution for Windows - my intention is to process many (tens-hundreds) ConTeXt files into HTML - just to make their code better-readable.

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, I'm sure Hans knows the invocation by heart, but I can look it up as well. This is how the output looks like: http://source2.contextgarden.net/tex/context/sample/sample-tex.html yes, that's the look I'd like to achieve. Lukas Mojca -- Ing. Lukáš Procházka |

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
le to test pretty-printing). In all situations I received " mtx-scite | you need to pass a valid source path with --source " Any idea what's wrong? Lukas On Wed, 24 Aug 2016 11:34:41 +0200, Mojca Miklavec <mojca.miklavec.li...@gmail.com> wrote: On 24 August 2016 at

[NTG-context] Size of the last shipped page by Lua?

2016-09-07 Thread Procházka Lukáš Ing .
Hello, is there a way to detect by Lua what is the size (width and height) of the last shipped page? Especially I'm interested in the situation when page via \start/\stopTEXpage has been shipped, like: \startluacode LastPageSize = function() -- What to come here? return w, h

[NTG-context] Problem finding 'cow'

2016-08-31 Thread Procházka Lukáš Ing .
Hello, it seems my ConTeXt doesn't find its own 'cow.pdf'. The file is located in c:\Ctx-Beta\tex\texmf-context\tex\context\sample\common\cow.pdf when the whole ConTeXt is located in c:\Ctx-Beta\tex\ My resulting .pdf shows no image; and also there is no info in the .log

Re: [NTG-context] Problem finding 'cow'

2016-08-31 Thread Procházka Lukáš Ing .
acking Cheers, Henri On 08/31/2016 04:25 PM, Procházka Lukáš Ing. wrote: Hello, it seems my ConTeXt doesn't find its own 'cow.pdf'. The file is located in c:\Ctx-Beta\tex\texmf-context\tex\context\sample\common\cow.pdf when the whole ConTeXt is located in c:\Ctx-Beta\tex\ My resultin

Re: [NTG-context] Size of the last shipped page by Lua?

2016-09-12 Thread Procházka Lukáš Ing .
Helo, thanks both for proposals - I really need just to READ the values (and not to modify them). Best regards, Lukas On Thu, 08 Sep 2016 22:12:49 +0200, Hans Hagen wrote: On 9/8/2016 9:47 PM, josephcan...@gmail.com wrote: If by messing it’s meant modifying their values,

Re: [NTG-context] Size of the last shipped page by Lua?

2016-09-23 Thread Procházka Lukáš Ing .
Hello, still a problem - consider the following code: \ifx\startpapersize\undefined \unprotect \def\startpapersize{\page\pushmacro\page_paper_restore\setuppapersize} \protect \fi \ifx\stoppapersize\undefined \unprotect

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, thanks for the answer. I need a COMMAND LINE solution for Windows - my intention is to process many (tens-hundreds) ConTeXt files into HTML - just to make their code better-readable. And - as e.g. Ctx wiki has pretty-printing Ctx source - I believe there is such tool... Best

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
... Great, that's it! Thanks again, Mojce. Best regards, Lukas On Wed, 24 Aug 2016 13:55:38 +0200, Mojca Miklavec wrote: mtxrun --script scite --tree --numbers --source=Attach.mkiv --target=Attach.txt I suspect that the script wants folders. Mojca --

[NTG-context] Pdf info: width, height and rotation

2016-11-17 Thread Procházka Lukáš Ing .
Hello, two questions about pages in PDF document (slightly refers to the code http://www.mail-archive.com/ntg-context@ntg.nl/msg57502.html): local MyDocument = lpdf.epdf.load("A4.pdf") context.starttext() local pages = MyDocument.pages local dummy = MyDocument.pages[1] -- we need

Re: [NTG-context] Pdf info: width, height and rotation

2016-11-17 Thread Procházka Lukáš Ing .
Hello, thank you for the reaction. On Thu, 17 Nov 2016 09:51:51 +0100, Hans Hagen wrote: you do that yourself as [3] - [1] is the width while you put it under OK, so width = bbox[3] - bbox[1] 2. Is it possible to get rotation or orientation of the page (be "portrait" or

[NTG-context] Parallel output of source data

2016-12-01 Thread Procházka Lukáš Ing .
Hello, is there a way to let ConTeXt to flush the input stream in parallel into an output buffer, like: \starttext A \startoutput{Test.mkiv} Hello! \startitemize \item Item \stopitemize \stopoutput B \stoptext which would produce: Test.mkiv Hello!

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

2016-12-04 Thread Procházka Lukáš Ing .
Great, that's it! Thank you. Best regards, Lukas On Fri, 02 Dec 2016 20:04:56 +0100, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 2. Dezember 2016 um 08:10 Hello, is there a way to let ConTeXt to flush the input stream

[NTG-context] \itemize unpacked?

2016-12-19 Thread Procházka Lukáš Ing .
Hello, I have code that setups \itemize packed. Is it possible to force "unpacked" option back (mentioned here: http://wiki.contextgarden.net/Command/setupitemgroup)? \starttext \startitemize[][] \item 1a \item 1b \stopitemize \setupitemize[each][packed,joinedup] % <---

Re: [NTG-context] \itemize unpacked?

2016-12-19 Thread Procházka Lukáš Ing .
ked"; so grouping itemize setting is not very comfortable here. Best regards, Lukas On Mon, 19 Dec 2016 13:40:30 +0100, Herbert Voss <herbert.v...@fu-berlin.de> wrote: Am 19.12.2016 um 13:26 schrieb Procházka Lukáš Ing.: Hello, I have code that setups \itemize packed. Is it poss

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

[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

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 <schuster.wolfg...@gmail.com> wrote: Procházka Lukáš Ing. <mailto:l...@pontex.cz> 30. März 2017 um 12:28via Postbox <https://www.postbox-inc.com/?utm_sour

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. <l...@pontex.cz> wrote:

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

[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

Re: [NTG-context] \externalfigure locator

2017-03-21 Thread Procházka Lukáš Ing .
for _, path in 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 :lu

Re: [NTG-context] \externalfigure locator

2017-03-22 Thread Procházka Lukáš Ing .
:50:18 +0100, Procházka Lukáš Ing. <l...@pontex.cz> 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 'lpd

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

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

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

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

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,

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

[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] Pdf info with Lua/Ctx API

2017-08-16 Thread Procházka Lukáš Ing .
t 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 <pra...@wxs.nl> wrote:

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

2017-08-15 Thread Procházka Lukáš Ing .
lt;pra...@wxs.nl> 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 (+

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

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

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 <thomas.schm...@uni-bonn.de> 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,

[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=utf-8=utf-8=firefox-b-ab_rd=cr=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 of the MAPS

Re: [NTG-context] Unicode text conversion

2017-06-14 Thread Procházka Lukáš Ing .
; wrote: On 6/14/2017 2:07 PM, Procházka Lukáš Ing. wrote: Hello, is there also a way to convert CP1250 to UTF8 and vice versa? regimes.toregime('8859-1',"abcde Ä","?") there's also fromregime Best regards, Lukas On Fri, 27 Jan 2017 14:08:42 +0100, Hans Hagen <

Re: [NTG-context] Unicode text conversion

2017-06-16 Thread Procházka Lukáš Ing .
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 Lukáš Ing. <l...@pontex.cz> wrote: OK, thank you; I

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 <pra...@wxs.nl> wrote: On 1/27/2017 1:48 PM, Procházka Lukáš Ing. wrote: Hello, does ConTeXt contain a built-in Lua conversion routine to conver

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]

[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

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

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 <oi...@gmx.es> wrote: On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: [..

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

2017-09-04 Thread Procházka Lukáš Ing .
e 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 <oi...@gmx.es> wrote: On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote: Hello Pablo, you inspired me: \setuplayout[header=5mm,he

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 <pra...@wxs.nl> 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 <pra...@wxs.nl> wrote: On 8/27/2017 9:15 P

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

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

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

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

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

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

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

  1   2   3   4   5   6   7   8   >