Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Jairo A. del Rio
Sorry. What I meant is: when you use context.setuphead({'chapter'}, {title="Some text"}) at the Lua end, {'chapter'} and {title="Some text"} (notice "Some text" is a string, not a function) are Lua tables. TeX will print "Some text", but it won't work for context.delayed as it is another table

[NTG-context] A syntax sugar for ConTeXt

2020-11-02 Thread Sylvain Hubert
Dear List, I'm experimenting with a new syntax for ConTeXt and would appreciate it a lot if you could give some opinions/advice on it. https://github.com/champignoom/luax Details in the README. Basically it's lua code faking tex, while remaining a decent programming language, and saving

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Sylvain Hubert
> as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules But there are lua apis that support delayed TeX like `context.chapter(context.delayed'text')`. Whether or not the function is stored in a table should be theoretically irrelevant. I

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Jairo A. del Rio
On the Lua side, you'll have to pass strings so your example works, as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules (see e.g. Lua reference in https://www.lua.org/manual/5.4/ or, better, CLD manual in

[NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Sylvain Hubert
Dear List, I'm trying to mirror the context command `\setuphead[chapter][before=hello]` into lua with delayed typesetting of 'hello', but `\ctxlua{context.setuphead({'chapter'}, {before=context.delayed'hello'})}` does not have any effect. Could anyone help me on this? Thanks! Best, Sylvain

[NTG-context] Running mtxrun in a continuous batch mode

2020-11-02 Thread Ramkumar KB
Hello, I am trying to run mtxrun in a batch process and read the available documentation here - https://wiki.contextgarden.net/Running_ConTeXt_without_a_shell My usecase is being able to create PDF docs based on the input data that comes in a JSON format (in a continuous batch process). In

Re: [NTG-context] lmtx

2020-11-02 Thread Hans Hagen
On 10/31/2020 3:50 AM, Jairo A. del Rio wrote: Hi, Hans. The last release is considerably faster for smaller documents (for larger documents differences seem to be neglectable). Thank you for such an improvement. However, something is wrong with one manual: luametatex manual won't compile:

Re: [NTG-context] multiparagraph quotation

2020-11-02 Thread type
Thank you, Wolfgang, for your prompt and helpful solution! Although I didn't make it clear in the minimal working example, I am using this for ordinary dialog. For the record (and for anyone searching the mailing list in the future), to get that to work right, I had to put in one more thing

Re: [NTG-context] multiparagraph quotation

2020-11-02 Thread Wolfgang Schuster
t...@projectivespace.com schrieb am 02.11.2020 um 18:26: I'm trying to get quotation marks at the beginning of each new paragraph in quotations (in ConTeXt Mk IV), as is the convention in English. Here's a minimal working example of what I have tried: \setupdelimitedtext[quotation][repeat=yes,

[NTG-context] multiparagraph quotation

2020-11-02 Thread type
I'm trying to get quotation marks at the beginning of each new paragraph in quotations (in ConTeXt Mk IV), as is the convention in English. Here's a minimal working example of what I have tried: \setupdelimitedtext[quotation][repeat=yes, middle="] \starttext \quotation{\input knuth } \stoptext

Re: [NTG-context] index entries postponed if sections are empty

2020-11-02 Thread Henning Hraban Ramm
Otared, Jano, thank you for your answers – what finally helped was putting the image and the index entries in a vbox together. Hraban ___ If your question is of interest to others as well, please add an entry to the