Re: [NTG-context] Trying to understand this ctxlua error

2020-04-05 Thread Wolfgang Schuster
Gerben Wierda schrieb am 06.04.2020 um 00:41: I got this error after I had changed some lua code: tex error       > tex error on line 272 in file archimate-lua.new: ! Undefined control sequence         warnIfVerbose( "Breaking off the processing of node %s\nNo       l...eak

[NTG-context] Trying to understand this ctxlua error

2020-04-05 Thread Gerben Wierda
I got this error after I had changed some lua code: tex error > tex error on line 272 in file archimate-lua.new: ! Undefined control sequence warnIfVerbose( "Breaking off the processing of node %s\nNo l...eak

Re: [NTG-context] Bounding box of picture returned by textext() in METAPOST

2020-04-05 Thread Gerben Wierda
Nobody? > On 4 Apr 2020, at 22:58, Gerben Wierda wrote: > > I have this METAPOST macro: > > vardef makeTeXLabel( expr w, h, name) = > if debugProgram or debugLabels: show "NAME makeTeXLabel:", name, tostring > 0.8w, tostring 0.8h; fi > save p; picture p; > p := textext(

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Aditya Mahajan
On Sun, 5 Apr 2020, Jairo A. del Rio wrote: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 05.04.2020 um 17:49: None of them work. Maybe I'm doing something wrong. I guess so because \loadluafile[testh.lua] and \luaenvironment testh.lua work for me. Wolfgang ___

[NTG-context] Is there a robust way to find the first (or last intersection) of path p with path q?

2020-04-05 Thread Gerben Wierda
Intersecting path p and q will give you more or less randomly (actually, there is an algorithm, but not a very useful one for METAPOST) an intersection (time on p, time on q) I am trying to find out if anybody as already created a macro that gives you the intersection with the smallest (or

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
None of them work. Maybe I'm doing something wrong. I have my project file (say, "main.tex") in a folder (say, "Main") and projects in a subfolder (say "Products"). I've written some Lua macros in a file (say, "foo.lua") and I need all the products to be able to call those Lua functions, so I

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 05.04.2020 um 15:00: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Thomas A. Schmitz
On 05.04.20 15:00, Jairo A. del Rio wrote: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

[NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes

2020-04-05 Thread Christoph Hintermüller
Hi I'm helping to make t-vim module fully usable in xhtml and futher epub export. Getting a distingct tag for the individual lines was quiet easy to do using \dostarttagged and \dostoptagged internal macros. What i'm not able to figure are the following things: 1) How can i set/modify the display

Re: [NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Gerben Wierda
> On 5 Apr 2020, at 15:24, Keith McKay wrote: > > Would sections 1.3, 1.18, 2.5 and 2.6 in the Metafun manual help? I used what is in 1.3 (though I actually used Peter Grogono’s PDF MetaPost: A Reference Manual which I find the

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread mf
Il 05/04/20 15:00, Jairo A. del Rio ha scritto: I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this:

Re: [NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Keith McKay
Would sections 1.3, 1.18, 2.5 and 2.6 in the Metafun manual help? Keith On 05/04/2020 11:31, Gerben Wierda wrote: I think I saw a function in MetaFun somehwre that you could give a ‘hard’ path, i.e. (0,0) -- (0,1) — (1,1) and it would become a path with nicely rounded (part of a circle)

[NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this: \startproject project %\component foo.lua %This does

Re: [NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Gerben Wierda
Yes, I meant cornered. But it turns out it works worse in my case, I get paths with hundreds of segments and a run that goes amok. But that made me find a mistake in my code and now I’m using my own again and it works fine: vardef softenPath( expr hardPath) = save softPath; path softPath;

Re: [NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Wolfgang Schuster
Gerben Wierda schrieb am 05.04.2020 um 12:31: I think I saw a function in MetaFun somehwre that you could give a ‘hard’ path, i.e. (0,0) -- (0,1) — (1,1) and it would become a path with nicely rounded (part of a circle) corners (still straight lines), but I can’t find it anymore. I wrote my

[NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Gerben Wierda
I think I saw a function in MetaFun somehwre that you could give a ‘hard’ path, i.e. (0,0) -- (0,1) — (1,1) and it would become a path with nicely rounded (part of a circle) corners (still straight lines), but I can’t find it anymore. I wrote my own, but it is giving me headaches so I’d like to

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-05 Thread Gerben Wierda
> On 5 Apr 2020, at 11:34, Hans Hagen wrote: > > On 4/5/2020 12:29 AM, Gerben Wierda wrote: >> I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). >> These now become separate pages in a single PDF. But I need them to become >> separate PDF’s each during my ConTeXt run,

Re: [NTG-context] Solved: Minimum example of problem getting curly braces printed in METAPOST

2020-04-05 Thread Hans Hagen
On 4/3/2020 5:36 PM, Gerben Wierda wrote: Thanks to Taco, the solution was to simply use: function doubleQuotableEscapedConTeXtString( str)   local rep = {       [1] =  { '{', '{\\textbraceleft}' },       [2] =  { '}', '{\\textbraceright}' },       [3] =  { '#', '{\\texthash}' },       [4]

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-05 Thread Hans Hagen
On 4/5/2020 12:29 AM, Gerben Wierda wrote: I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). These now become separate pages in a single PDF. But I need them to become separate PDF’s each during my ConTeXt run, with a name of my own choosing. Is this possible? I guess

Re: [NTG-context] lmtx vs mkiv

2020-04-05 Thread Axel Kielhorn
> Am 03.04.2020 um 11:07 schrieb Hans Hagen : > > For that reason the latest lmtx installer now (for the time being) also > includes the luatex binary (plus mkiv files needed) so that one can install > lmtx and run both engines. Instead of the --luatex switch one can also force > the engine

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
Geert Dobbels schrieb am 05.04.2020 um 00:30: Wolfgang, Below is what I think is the bare minimum to explain this question (sorry for not doing it right from the beginning...) Keep it up. As I said, with the code as it is below, the header is not repeated after the first page, but the