Re: [NTG-context] bug with special hyphenation?

2018-02-08 Thread Hans Hagen
On 2/8/2018 8:00 PM, Pablo Rodriguez wrote: Have I hit an issue with the new hyphenator, or am I simply missing somehting? it's a border case that i'll look into Hans - Hans Hagen |

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

2018-02-08 Thread Henning Hraban Ramm
Am 2018-02-04 um 13:06 schrieb Hans Hagen : > Not sure what you want top know but a lot of image properties can be checked > by prerolling: > > \getfiguredimensions[t:/sources/cow.pdf] ... > \NC \string\figurefilepath \NC \figurefilepath \NC \NR > \NC

[NTG-context] bug with special hyphenation?

2018-02-08 Thread Pablo Rodriguez
Dear list, I have been experiencing an issue with the new hyphenator for months (or maybe almost a year), but it took me a while to discover what was triggering it. First, the mandatory sample: \startluacode function document.addfunnyhyphen(tfmdata) local underscore =

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 04:26:16PM +0100, Henning Hraban Ramm wrote: > Am 2018-02-08 um 15:34 schrieb Rudolf Bahr : > > > On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > >> On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > >>> Sometimes the necessity could arise to

Re: [NTG-context] Overwritten text with newcolumnsets

2018-02-08 Thread Charles Vejnar
Here it is: \usemodule[newcolumnsets] \setuplayout[grid=yes] \setupbodyfont[10pt] \definecolumnset[example][n=2] \starttext \startcolumnset[example] \dorecurse{7}{\input knuth \par} \placefigure[center]{Legend.}{\hbox{\externalfigure[dummy][height=8cm]}} \dorecurse{8}{\input knuth \par}

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Henning Hraban Ramm
Am 2018-02-08 um 15:34 schrieb Rudolf Bahr : > On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: >> On 02/07/2018 06:39 PM, Rudolf Bahr wrote: >>> Sometimes the necessity could arise to send data from lua to context >>> and answers back to lua. I tried this by

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Hans Hagen
On 2/8/2018 3:34 PM, Rudolf Bahr wrote: On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: On 02/07/2018 06:39 PM, Rudolf Bahr wrote: Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write"

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 08.02.2018 15:34, Rudolf Bahr wrote: With the use of "\immediate\write" and "\read" in context and the read and write functions in lua I know exactly from where to where the data goes. How to do the same with "context()"? This question is impossible to answer - what is "the same"? Please

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > > Sometimes the necessity could arise to send data from lua to context > > and answers back to lua. I tried this by using "read" and > > "immediate\write" commands in context. These

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

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. 8. Februar 2018 um 12:14 Hello, in the following example:

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

2018-02-08 Thread Hans Hagen
On 2/8/2018 12:14 PM, Procházka Lukáš Ing. wrote: Hello, in the following example: \setupheadertexts[Left][Right] \starttext   Aaa   \page   \startsection[title={Sec}]     \start   \setupbodyfont[6pt]   \dorecurse{12}{\input knuth}     \stop   \stopsection \stoptext

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

2018-02-08 Thread Wolfgang Schuster
Procházka Lukáš Ing. 8. Februar 2018 um 12:14 Hello, in the following example: \setupheadertexts[Left][Right] \starttext Aaa \page \startsection[title={Sec}] \start \setupbodyfont[6pt] \dorecurse{12}{\input knuth} \stop \stopsection

[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

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

2018-02-08 Thread Wolfgang Schuster
Procházka Lukáš Ing. 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 "Test.mkiv". But the code: \starttext \jobname \doifelse{\jobname}{Test}{Yes}{No} \def\T{Test}

[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] Overwritten text with newcolumnsets

2018-02-08 Thread Henning Hraban Ramm
Am 2018-02-08 um 05:22 schrieb Charles Vejnar : > I am trying to add a figure now using \placefigure. But the placement in > brackets is always ignored. AFAIK it's normal to get a figure at the top of a > new page when it's larger than a column but it's also always on

Re: [NTG-context] Change of nuts.dimensions function ?

2018-02-08 Thread Hans Hagen
On 2/7/2018 2:57 PM, Joseph Canedo wrote: Hello all, It seems that with latest ConTeXt beta (with luatex 1.07.0) it seems that nuts.dimensions function behaviour has changed. Simple MWE shows the change. Which function should be used now to get natural width of a range [n, t[ of nodes 

Re: [NTG-context] Wrong Lua package loaded by 'require'

2018-02-08 Thread Hans Hagen
On 2/7/2018 11:51 PM, Przemek Wesolek wrote: Hi, I have problems using PGF graph drawing with ConTeXt. The problem is described on https://tex.stackexchange.com/questions/414102/ It all boils down to Lua trying to load wrong file. When require 'pgf.gd.control' is called, ConTeXt resolvers

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 02/07/2018 06:39 PM, Rudolf Bahr wrote: Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write" commands in context. These commands are described in chapter 21 and 22 of Donald E. Knuth's "The TeXbook".