Re: [NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
Below I include a suggestion on how to do this sort of version agnostic. Cheers, Henri Live example on Wandbox: https://wandbox.org/permlink/jEn9kNnPB0t5rwjP --- #include #include #include #include #include static int (*lua_os_execute)(lua_State *L) = NULL; static int

[NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
Dear list, The following Lua script behaves differently when executed in Lua vs. LuaTeX. print(os.execute("date")) It seems that the definition of os_execute in loslibext.c was copied over from Lua 5.1 and not adapted to newer versions. $ lua5.1 test.lua 0 $ lua5.2 test.lua

Re: [NTG-context] ConTeXt as a service

2019-11-20 Thread Hans Hagen
On 11/20/2019 6:10 PM, Henning Hraban Ramm wrote: You probably need to set a few environment variables: I find HOME, PATH, TEXROOT and TEXMFOS in my setup. I don’t know if you really need all of them, it’s already running for several years… Also your web server process might only run binaries

[NTG-context] setup according to total numbers

2019-11-20 Thread Pablo Rodriguez
Hi Hans, this is related to a previous message (https://mailman.ntg.nl/pipermail/ntg-context/2019/096253.html). I don’t know how hard could to implement them, but it would be useful to be able to setup xtables and lists based on the total number of columns, rows and items. Some cases would be:

[NTG-context] two issues with inmargin attachments

2019-11-20 Thread Pablo Rodriguez
Hi Hans, I have the following sample, using latest beta from 2019.11.14 17:07: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf]

Re: [NTG-context] ConTeXt as a service

2019-11-20 Thread Henning Hraban Ramm
Hi! I’m running ConTeXt on my web server e.g. to generate shipping forms for a customer. As Hans said, it makes sense to use an asynchronous setup; in my case it’s celery/RabbitMQ behind Django. You probably need to set a few environment variables: I find HOME, PATH, TEXROOT and TEXMFOS in

Re: [NTG-context] Exchangeing content of variables between luacode and context

2019-11-20 Thread Rudolf Bahr
On Wed, Nov 20, 2019 at 09:24:44AM +0100, Hans Hagen wrote: > you can store info in the tuc file (there are examplex on the wiki and in > the test suite) or you cam create a table, save it at the end of the run and > load it at the start > > (assuming that you cannot just recalculate the values

Re: [NTG-context] ConTeXt as a service

2019-11-20 Thread Hans Hagen
On 11/20/2019 5:07 PM, Denis Maier wrote: Hi everyone, Is it possible to run ConTeXt as a service on a server? If yes, is there documentation about this? Background: I'm currently on the PKP conference, and we are discussing OJS plugins for automated PDF production. I was wondering if ConTeXt

[NTG-context] ConTeXt as a service

2019-11-20 Thread Denis Maier
Hi everyone, Is it possible to run ConTeXt as a service on a server? If yes, is there documentation about this? Background: I'm currently on the PKP conference, and we are discussing OJS plugins for automated PDF production. I was wondering if ConTeXt could be an option... Best, Denis P.S.: I'll

[NTG-context] [updating LMTX]

2019-11-20 Thread Floris van Manen
when updating lmtx using the install.sh script, it seems to be unable to find among others, the web2c . It looks everywhere, except the location where it was put by that script in the first place. /home/vm/data/context/tex/texmf/web2c the $PATH contains

Re: [NTG-context] eqalign

2019-11-20 Thread Otared Kavian
Hi, Indeed in ConTeXt one has better to use \startalign. Please see the excellent explanations by Aditya http://dl.contextgarden.net/myway/mathalign.pdf Best regards: OK > On 20 Nov 2019, at 09:01, no...@posteo.org wrote: > > Dear All, > > The command \eqalign does not work as

[NTG-context] eqalign

2019-11-20 Thread nohop
Dear All, The command \eqalign does not work as described under: https://wiki.contextgarden.net/Math_with_newmat as the ampersands are typeset (and the equal signs unaligned). The following minimal example shows the issue: - \usemodule[newmat] \starttext \startformula \eqalign{

Re: [NTG-context] ConTeXt: specify a path to font in \definefontfamily

2019-11-20 Thread Hans Hagen
On 11/20/2019 10:08 AM, Krešimir Cindrić wrote: Thank you for the reply. I was aware that I can install fonts in ` tex/texmf-fonts `. However, the idea behind my odd request was the need to have the entire project contained in a single directory. which I can share with people and compile on

Re: [NTG-context] ConTeXt: specify a path to font in \definefontfamily

2019-11-20 Thread Krešimir Cindrić
Thank you for the reply. I was aware that I can install fonts in ` tex/texmf-fonts `. However, the idea behind my odd request was the need to have the entire project contained in a single directory. which I can share with people and compile on any computer with a working TeX Live, without them

Re: [NTG-context] ConTeXt: specify a path to font in \definefontfamily

2019-11-20 Thread Hans Hagen
On 11/19/2019 10:50 AM, Krešimir Cindrić wrote: I'm /very/ new to ConTeXt, so please excuse the newbie question. I'm trying to load a font from a file. The |.otf| files are stored in a directory named |fonts/| which is in the directory of the |.tex| file I'm trying to compile. This code does

Re: [NTG-context] context command line interface documentation?

2019-11-20 Thread Hans Hagen
On 11/19/2019 8:10 PM, Philipp A. wrote: That’s pretty cool, overriding that hook allows to build a ConTeXt language server for editors like VS Code! https://microsoft.github.io/language-server-protocol/ i looked at that a while ago but imo the whole server model is pretty complex

Re: [NTG-context] ConTeXt: specify a path to font in \definefontfamily

2019-11-20 Thread Henning Hraban Ramm
In my typescripts it works with file:fonts/MyFont.otf HTH HR > Am 2019-11-19 um 10:50 schrieb Krešimir Cindrić : > > I'm very new to ConTeXt, so please excuse the newbie question. I'm trying to > load a font from a file. The .otf files are stored in a directory named > fonts/ which is in the

Re: [NTG-context] Exchangeing content of variables between luacode and context

2019-11-20 Thread Hans Hagen
On 11/19/2019 8:34 PM, Rudolf Bahr wrote: My 'actual problem' is more or less a design problem: Should in a book project ConTeXt be the master and Luacode the slave or vice versa? Both seems possible. nearly always context is th emaster (it is anyway as it manages the process) The task to