Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
If you or anyone else is going to play around with generating mazes, definitely take a look at http://www.mazesforprogrammers.com/ and the live demos here: https://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap A nice overview of the relationship with spanning tress (by the

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Sat, 2 May 2020, Hans Hagen wrote: On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
> use pagella math with optima, not modern > Zo? \definetypeface [optima] [mm] [math] [pagella] [default] Ik gok, want documentatie die dat helder maakt heb ik niet. Er is geen uitleg in de manuals die bij de standalone context komen en op ContextGarden vond ik vooral mkii zaken die niet meer

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Hans Hagen
On 5/1/2020 11:33 PM, Gerben Wierda wrote: use pagella math with optima, not modern Zo? \definetypeface [optima] [mm] [math] [pagella] [default] Ik gok, want documentatie die dat helder maakt heb ik niet. Er is geen uitleg in de manuals die bij de standalone context komen en op

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Hans Hagen
On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
On 1 May 2020, at 16:02, Wolfgang Schuster wrote: > > Gerben Wierda schrieb am 01.05.2020 um 13:58: >> \definetypeface [optima] [ss] [sans] [optima] [default] >> \definetypeface [optima] [rm] [serif] [optima] [default] >> \definetypeface [optima] [tt] [mono] [modern] [default] >>

Re: [NTG-context] .so libraries not working with LMTX

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Jairo A. del Rio wrote: I've tried using some C libraries for Lua in LuaTeX: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following message appears (an example with MAPM): token call, execute:

[NTG-context] .so libraries not working with LMTX

2020-05-01 Thread Jairo A. del Rio
I've tried using some C libraries for Lua in LuaTeX: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following message appears (an example with MAPM): token call, execute:

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Wolfgang Schuster
Gerben Wierda schrieb am 01.05.2020 um 18:19: On 1 May 2020, at 16:02, Wolfgang Schuster > wrote: Gerben Wierda schrieb am 01.05.2020 um 13:58: \definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima]

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Hans Hagen
On 5/1/2020 6:19 PM, Gerben Wierda wrote: mm should be modern anyway, I think (not that I need it, I only want the ss form anyway). use pagella math with optima, not modern - Hans Hagen |

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 17:10, Henning Hraban Ramm wrote: > > > >> Am 01.05.2020 um 10:26 schrieb Gerben Wierda : >> >> I have been looking at lmt_followtext and followtext to get typesetting done >> along a path. That works fine, except that in my case, I need the text to >> not be exactly

Re: [NTG-context] Reverse traversing of xml.collected()?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:30, Hans Hagen wrote: > > On 5/1/2020 11:31 AM, Gerben Wierda wrote: >> I’d like to travese the contents of an xml.collected() in a reverse order. I >> have >> for connectionFromXML in xml.collected(viewFromXML,"/connection") do >> parseXMLConnection(

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:22, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 01.05.2020 um 13:15: >> The following code: >> \enabletrackers[context.trace] >> %\usemodule[article-basic] >> \starttypescript [sans] [optima] >>\setups[font:fallback:sans] >>\definefontsynonym [Sans]

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 13:28, Hans Hagen wrote: > > On 5/1/2020 10:21 AM, Gerben Wierda wrote: >> code it back to a \ ? E.g. something like >>{ ‘\U{XXX}', '\' }, > \utfchar{100} > \Uchar 100 Yes, but the question was: how do I code this in the XML and get it through my

[NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Gerben Wierda
The following code: \enabletrackers[context.trace] %\usemodule[article-basic] \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold]

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Henning Hraban Ramm
> Am 01.05.2020 um 10:26 schrieb Gerben Wierda : > > I have been looking at lmt_followtext and followtext to get typesetting done > along a path. That works fine, except that in my case, I need the text to not > be exactly on that path, I need it to hover slightly above tor below he path. >

[NTG-context] [rotate question]

2020-05-01 Thread Floris van Manen
I try to introduce a per character rotation using lua. But a negative rotation angle seems to introduce a vertical offset to the base line. It might be intended, but how to get it gone? Any hints? .Floris \def\streepA{% \rotate[rotation=\ctxlua{context(math.random(1,15))}]{\|}% } \def\streepB{%

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Wolfgang Schuster
Gerben Wierda schrieb am 01.05.2020 um 13:58: \definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima] [default] \definetypeface [optima] [tt] [mono] [modern] [default] \definetypeface [optima] [mm] [math] [optima] [default] \setupbodyfont [optima]

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Hans Hagen
On 5/1/2020 1:58 PM, Gerben Wierda wrote: But my guess is that if I had used ss instead of rm everywhere in my code it would have worked as well. or define the ss first and don't use \rm (first defined is default) -

Re: [NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-05-01 Thread Hans Hagen
On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file named maze.lua: function

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda
> On 1 May 2020, at 09:38, Hans Hagen wrote: > > On 5/1/2020 1:44 AM, Gerben Wierda wrote: >>{ ‘\n', ‘\\strut' }, > often a \zwj or \zwno also works ok (has zero dimensions, contraty to strut; > you could also try \crlf I tried \crlf{} and that worked too (the “{}” because I do not

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen
On 5/1/2020 1:45 PM, Gerben Wierda wrote: On 1 May 2020, at 13:28, Hans Hagen wrote: On 5/1/2020 10:21 AM, Gerben Wierda wrote: code it back to a \ ? E.g. something like { ‘\U{XXX}', '\' }, \utfchar{100} \Uchar 100 Yes, but the question was: how do I code this in the XML and get it

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen
On 5/1/2020 1:45 PM, Gerben Wierda wrote: On 1 May 2020, at 13:28, Hans Hagen wrote: On 5/1/2020 10:21 AM, Gerben Wierda wrote: code it back to a \ ? E.g. something like { ‘\U{XXX}', '\' }, \utfchar{100} \Uchar 100 Yes, but the question was: how do I code this in the XML and get it

Re: [NTG-context] Reverse traversing of xml.collected()?

2020-05-01 Thread Hans Hagen
On 5/1/2020 11:31 AM, Gerben Wierda wrote: I’d like to travese the contents of an xml.collected() in a reverse order. I have     for connectionFromXML in xml.collected(viewFromXML,"/connection") do       parseXMLConnection( rootFromXML, connectionFromXML, viewFromXML, rootFromOverrideXML)

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen
On 5/1/2020 10:21 AM, Gerben Wierda wrote: code it back to a \ ? E.g. something like    { ‘\U{XXX}', '\' }, \utfchar{100} \Uchar 100 - Hans Hagen | PRAGMA ADE Ridderstraat

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Wolfgang Schuster
Gerben Wierda schrieb am 01.05.2020 um 13:15: The following code: \enabletrackers[context.trace] %\usemodule[article-basic] \starttypescript [sans] [optima]    \setups[font:fallback:sans]    \definefontsynonym [Sans]           [file:Optima.ttc(Optima Regular)]     [features=default]    

[NTG-context] Reverse traversing of xml.collected()?

2020-05-01 Thread Gerben Wierda
I’d like to travese the contents of an xml.collected() in a reverse order. I have for connectionFromXML in xml.collected(viewFromXML,"/connection") do parseXMLConnection( rootFromXML, connectionFromXML, viewFromXML, rootFromOverrideXML) end I tried: local relationTable =

[NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Gerben Wierda
I have been looking at lmt_followtext and followtext to get typesetting done along a path. That works fine, except that in my case, I need the text to not be exactly on that path, I need it to hover slightly above tor below he path. Given that the path may have an unpredictable form, that means

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen
On 5/1/2020 1:44 AM, Gerben Wierda wrote:    { ‘\n', ‘\\strut' }, often a \zwj or \zwno also works ok (has zero dimensions, contraty to strut; you could also try \crlf Hans - Hans