Re: [NTG-context] nil from TeX to Lua

2021-08-10 Thread Taco Hoekwater via ntg-context
> On 9 Aug 2021, at 22:05, Aditya Mahajan via ntg-context > wrote: > > On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: > >> In the TeX to Lua interface with >> >> \def\Macro#1{\directlua{luafunction("#1")}} >> >> the tr

Re: [NTG-context] nil from TeX to Lua

2021-08-09 Thread Aditya Mahajan via ntg-context
On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: > In the TeX to Lua interface with > > \def\Macro#1{\directlua{luafunction("#1")}} > > the transfer from TeX to Lua is by string. However what to do at the Lua end > when calling \Macro{}? > As I unde

[NTG-context] nil from TeX to Lua

2021-08-09 Thread Hans van der Meer via ntg-context
In the TeX to Lua interface with \def\Macro#1{\directlua{luafunction("#1")}} the transfer from TeX to Lua is by string. However what to do at the Lua end when calling \Macro{}? As I understand it, then on the Lua side an empty argument and an empty string are indisti

Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-28 Thread Hans Hagen via ntg-context
wrote: Hello. I'm trying to get LMTX to use my fonts on Fedora 33 Linux. I've got LMTX installed in the directory /sw/versions/context/lmtx and I've put copies of the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts. Some of them are truetype and some of them are opentype. When

Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-28 Thread Henning Hraban Ramm via ntg-context
rote: >>>> Hello. >>>> I'm trying to get LMTX to use my fonts on Fedora 33 Linux. I've got LMTX >>>> installed in the directory /sw/versions/context/lmtx and I've put copies >>>> of the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-font

Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-28 Thread Hans Hagen via ntg-context
in the directory /sw/versions/context/lmtx and I've put copies of the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts. Some of them are truetype and some of them are opentype. When I run mtxrun --script fonts --reload --force it says fonts | names | scanning path '/sw

Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-28 Thread Henning Hraban Ramm via ntg-context
ntext/lmtx and I've put copies of >> the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts. >> Some of them are truetype and some of them are opentype. When I run >>mtxrun --script fonts --reload --force >> it says >>fonts | names | sc

Re: [NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-28 Thread Hans Hagen via ntg-context
On 7/27/2021 11:44 PM, T. Kurt Bond via ntg-context wrote: Hello. I'm trying to get LMTX to use my fonts on Fedora 33 Linux.  I've got LMTX installed in the directory /sw/versions/context/lmtx and I've put copies of the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts

[NTG-context] LMTX mtxrun --script fonts --reload --force isn't finding fonts in tex/texmf-fonts

2021-07-27 Thread T. Kurt Bond via ntg-context
Hello. I'm trying to get LMTX to use my fonts on Fedora 33 Linux. I've got LMTX installed in the directory /sw/versions/context/lmtx and I've put copies of the fonts I'd like to use in /sw/versions/context/lmtx/tex/texmf-fonts. Some of them are truetype and some of them are opentype. When I run

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
Thanks for the explanation! > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Dienstag, 25. Mai 2021 12:06 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] specify a directory for tex files > > denis.m

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread Wolfgang Schuster
denis.ma...@ub.unibe.ch schrieb am 25.05.2021 um 11:44: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Montag, 24. Mai 2021 21:04 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] specify a directory for tex files Jeroen schrieb am

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Montag, 24. Mai 2021 21:04 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] specify a directory for tex files > > Jeroen schrieb am 24.05.20

Re: [NTG-context] specify a directory for tex files

2021-05-24 Thread Wolfgang Schuster
Jeroen schrieb am 24.05.2021 um 20:44: similar to this for figures \setupexternalfigures [directory={./myfigures}] is there a way to specify a directory for tex files so with \input{myfile.tex} the file myfile.tex can be placed in a subdirectory for example ./mytexfiles? \usepath

[NTG-context] specify a directory for tex files

2021-05-24 Thread Jeroen
similar to this for figures \setupexternalfigures [directory={./myfigures}] is there a way to specify a directory for tex files so with \input{myfile.tex} the file myfile.tex can be placed in a subdirectory for example ./mytexfiles

Re: [NTG-context] TeX capacity exceeded

2021-05-19 Thread Hans Hagen
ss). I try to keep that in mind with luametatex/lmtx, which is why I spent quite some time on a lower mem footprint. I have no clue what a modern cpu does compared to mine (tex is single core). (btw, the latest version should also be a bit more efficient / faster with some huge cjk fonts that fo

Re: [NTG-context] TeX capacity exceeded

2021-05-19 Thread Thomas A. Schmitz
On 19.05.21 18:34, Hans Hagen wrote: Can you check the latest upload? You should be able to go way higher. Yes, with 2021.05.19 18:22, the file compiles again in lmtx! I'm also trying your suggestions for improving the Lua code and rethinking my tables for analyzing the vocabulary. Thank

Re: [NTG-context] TeX capacity exceeded

2021-05-19 Thread Hans Hagen
On 5/17/2021 11:43 PM, Thomas A. Schmitz wrote: Hi all, I have a rather large (almost 120,000 lines) xml file, processing pulls in another large xml file. The project compiles under mkiv; with lmtx, I get tex error   > tex error on line 8 in file : TeX capacity exceeded, so

Re: [NTG-context] TeX capacity exceeded

2021-05-18 Thread Hans Hagen
On 5/17/2021 11:43 PM, Thomas A. Schmitz wrote: Is texmfcnf.lua still the configuration file I need to look at for this kind of problem? Which variable could I change? Normally not needed but this is the section for luatex: ["luatex.errorline"] =250, -- no need to change

Re: [NTG-context] TeX capacity exceeded

2021-05-18 Thread Hans Hagen
On 5/17/2021 11:43 PM, Thomas A. Schmitz wrote: Hi all, I have a rather large (almost 120,000 lines) xml file, processing pulls in another large xml file. The project compiles under mkiv; with lmtx, I get tex error   > tex error on line 8 in file : TeX capacity exceeded, so

[NTG-context] TeX capacity exceeded

2021-05-17 Thread Thomas A. Schmitz
Hi all, I have a rather large (almost 120,000 lines) xml file, processing pulls in another large xml file. The project compiles under mkiv; with lmtx, I get tex error > tex error on line 8 in file : TeX capacity exceeded, sorry [reference count=32767] \reallanguagetag just twe

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-16 Thread Nicola
Filesystems Besides, I have found some inconsistencies between texmf.cnf and texmfcnf.lua in the TeX Live distribution that can be installed through apk: for instance, one file used ~/.texlive2019 and the other ~/.texlive2020. There may be other issues, but I am not expert enough. For now, I have given up.

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-07 Thread Nicola
rk under a 32-bit Alpine Linux that > has had the glibc library added. This should - fingers crossed - work > in iSH. That's great news! I'll try it asap and report back. Thanks for looking into it. Anyway, for Hans and Mojca: I confirm that I was not able to run ConTeXt from the texlive pac

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-06 Thread Bruce Horrocks
e (I > use my laptop), configure it as desired, then export it into a .tar > archive, copy it into the iPad, and import it into iSH. This is better > than installing/building packages directly inside the app, because (a) > compiling on the iPad is extremely slow, and (b) some packages may raise

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Hans Hagen
On 5/3/2021 10:29 AM, Nicola wrote: So, this is where I am at: I am trying to make ConTeXt work inside an x86 Alpine Linux Musl container, using the official Alpine package. Then you need to bribe Mojca for an extra musl build client, Hans

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Nicola
On 2021-05-02, Bruce Horrocks wrote: > The iSH documentation that I briefly looked at used a 'side-load' > technique i.e. relied on what's called a 'jailbroken' iPad. I don't know which documentation you have looked at: I can load file systems just fine on a not jailbroken device:

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Nicola
t;> $ docker pull alpine >> >> I was following the documentation of iSH, which is where I want to use >> the container eventually. But I may probably use the alpine image as >> well, which is more up to date and allows me to install TeX Live 2020. >> >>> I would

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-02 Thread Bruce Horrocks
to use > the container eventually. But I may probably use the alpine image as > well, which is more up to date and allows me to install TeX Live 2020. > >> I would start with that then test each new step at the interactive >> shell before adding to the compose file and mo

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
oth files and share the contents? (There may > also be multiple copies of them.) I report below the content of the two files, as they are in TeX Live 2020 (I have switched to `docker pull alpine`, as suggested in another post, in which I can install Tex Live 2020). Nicola ===

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
>>docker pull econcz/x86-alpine-glibc:ish-import > > Why is your first line not > >$ docker pull alpine I was following the documentation of iSH, which is where I want to use the container eventually. But I may probably use the alpine image as well, which is more up to date an

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
nning ConTeXt on Alpine? Any idea what is wrong? > > Hi Nicola, > > I don’t run Alpine or Docker, but this might help you. > > mtxrun --script cache --erase && mtxrun --generate Unfortunately, mtxrun --script cache results in the same error I have already posted. >

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Pablo Rodriguez
on’t run Alpine or Docker, but this might help you. mtxrun --script cache --erase && mtxrun --generate BTW, TeX Live 2021 is already available (https://www.tug.org/texlive/). Just in case it helps, Pablo

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Mojca Miklavec
On Fri, 30 Apr 2021 at 20:53, Nicola wrote: > > This installs and configures repos for Alpine Linux 3.12. Then, > I install TeX Live as follows: > > apk add texlive-full texlive-xetex texlive-luatex texlive-dev > apk add ghostscript ghostscript-fonts ghostscript

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Bruce Horrocks
> On 30 Apr 2021, at 19:53, Nicola wrote: > > I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an > iPad with the iSH app). I am currently testing it with Docker. This is > what I have done: > >docker pull econcz/x86-alpine-glibc:ish-import Why is your first line not

[NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-04-30 Thread Nicola
a /etc/apk/repositories apk update This installs and configures repos for Alpine Linux 3.12. Then, I install TeX Live as follows: apk add texlive-full texlive-xetex texlive-luatex texlive-dev apk add ghostscript ghostscript-fonts ghostscript-dev apk add graphicsmagick graphics

[NTG-context] tex live code freeze

2021-03-05 Thread Hans Hagen
changes are mostly cosmetic and I don't expect many more fundamental additions, but who knows ... (not all in there is yet used extensively) and maybe context users have interesting demands that trigger extra stuff (read: challenges me). So apart from new trickery at the tex macro end, we also

Re: [NTG-context] Warning: "nodes: unable to store reference from lua in tex"

2021-02-26 Thread Hans Hagen
On 2/26/2021 6:58 PM, Wolfgang Schuster wrote: Hans Hagen schrieb am 26.02.2021 um 18:36: On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning  > nodes: unable to store reference from lu

Re: [NTG-context] Warning: "nodes: unable to store reference from lua in tex"

2021-02-26 Thread Wolfgang Schuster
Hans Hagen schrieb am 26.02.2021 um 18:36: On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning  > nodes: unable to store reference from lua in tex ... (repeated more times) " This happe

Re: [NTG-context] Warning: "nodes: unable to store reference from lua in tex"

2021-02-26 Thread Hans Hagen
On 2/26/2021 6:01 PM, Lukas/ConTeXt wrote: Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong tab

[NTG-context] Warning: "nodes: unable to store reference from lua in tex"

2021-02-26 Thread Lukas/ConTeXt
Hello, after I renewed ConTeXt MkIV, I started to get the following warning: " ... luatex warning > nodes: unable to store reference from lua in tex ... (repeated more times) " This happens when I try to typeset a looo...ong table (by \start/\stop-tabulate) over several pages. It

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Hans Hagen
ffer{xml:name}{doc}{} \stoptext A clue: token.expand_macro will kind of 'run a local tex job'. If this works for you. you know the price you have to pay ... wikify Hans - H

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
measures) before they are needed. - When needed, use the reference to the buffer. Tests looked promising. After \starttext buffers and measures are known (both TeX & Lua). Also tested in functions, etc. But inside the first \xmlsetup, they are not expanded anymore, they are typeset (lik

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-26 Thread Hans Hagen
e several times (and \dowithnextbox, \nextboxht and other things). I bet there was no example of empty context.step(). The usage was: stepping in TeX end with context.step("\\texcommands\\with\\doubleslashes") without leaving Lua. What is the purpose of empty context.step()? Kno

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
her things). I bet there was no example of empty context.step(). The usage was: stepping in TeX end with context.step("\\texcommands\\with\\doubleslashes") without leaving Lua. What is the purpose of empty context.step()? K

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Hans Hagen
On 11/25/2020 7:31 PM, Jano Kula wrote: Hello! I would like to set framed boxes, measure their dimensions and proceed based on the measurement. It is a combination of TeX and Lua ends. * Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in Lua looked too complex

[NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello! I would like to set framed boxes, measure their dimensions and proceed based on the measurement. It is a combination of TeX and Lua ends. - Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in Lua looked too complex. - The content of the inner box is set

Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Passing variables to Lua wikified . Jano On Wed, 25 Nov 2020 at 14:33, Jano Kula wrote: > Hello Hans! > > On Wed, 25 Nov 2020 at 12:33, Hans Hagen wrote: > >> Never give up ... >> >> \meaning\getvariable >> > > Thank you for

Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello Hans! On Wed, 25 Nov 2020 at 12:33, Hans Hagen wrote: > Never give up ... > > \meaning\getvariable > Thank you for reminding me of this one. print(">>",tokens.getters.macro(tokens.getters.macro("??variables") .. > "test:something") > Not that trivial, but does the job. Thanks,

Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Hans Hagen
On 11/25/2020 11:54 AM, Jano Kula wrote: Hello, running in circles I have to give up on such an easy thing as passing a tex variable to lua (knowing everything is stored in lua). \setvariable{test}{something}{} \starttext \getvariable{test}{something}\par % how to access the variable

[NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello, running in circles I have to give up on such an easy thing as passing a tex variable to lua (knowing everything is stored in lua). \setvariable{test}{something}{} \starttext \getvariable{test}{something}\par % how to access the variable on lua end? \startluacode -- var = \stopluacode

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
; more question, is there something similar to EmWidth for \textwidth or > > \linewidth? Better, a better way to access TeX dimensions? Thank you > again. > When you grep for EmWidth ... > > LineWidth > TextWidth &g

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Hans Hagen
On 8/9/2020 8:03 PM, Jairo A. del Rio wrote: Oh, thank you a lot, Hans, that's a really cleaner way than mine. One more question, is there something similar to EmWidth for \textwidth or \linewidth? Better, a better way to access TeX dimensions? Thank you again. When you grep for EmWidth

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Oh, thank you a lot, Hans, that's a really cleaner way than mine. One more question, is there something similar to EmWidth for \textwidth or \linewidth? Better, a better way to access TeX dimensions? Thank you again. Jairo :) El dom., 9 de ago. de 2020 a la(s) 12:46, Hans Hagen (j.ha

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Hans Hagen
and TeX to Metapost and better ways to do it in ConTeXt. Thank you in advance. \starttext My text \startMPinitializations numeric myunit; myunit := \the\dimexpr1em\relax; \stopMPinitializations \startluacode userdata = userdata or {} userdata.dummydata = { {1, 2}, {3, 4} } context.startMPcode

[NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua and TeX to Metapost and better ways to do

[NTG-context] Fwd: TeX Annual Meeting 2020 going online

2020-07-02 Thread Taco Hoekwater
Hi all, See the announcement for the (online) TUG 2020 meeting below. Best wishes, Taco > Begin forwarded message: > > From: Paulo Ney DE SOUZA > Subject: TeX Annual Meeting 2020 going online > Date: 1 July 2020 at 21:32:35 CEST > > -------

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-26 Thread Benjamin Buchmuller
from Dec/Jan worked fine.) >>> >>> I recite my example from Wed: >>> >>> ConTeXt ver: 2020.01.30 14:13 MKIV beta fmt: 2020.4.22 (LuaTeX 1.11.1) >>> >>> and I’m running now into troubles with system font indexing: >>> >>>

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater
See this link: https://wiki.contextgarden.net/Mac_Installation In particular, you need this set of shell commands from that page: mkdir $HOME/context cd $HOME/context rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --modules=all --engine=luatex but we

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
> On 24 Apr 2020, at 11:56, Taco Hoekwater wrote: > > Hi, > > FYI, my "context mkiv” standalone seems to be fine (latest download). > “lmtx” standalone (also latest download) not so much (same problems). Thx. How do I get/install a ‘context mkiv’ standalone? The standalone on

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater
> On 24 Apr 2020, at 12:14, Benjamin Buchmuller > wrote: > > Hi Hraban, > > This might confirm Taco‘s notion that there is some bug lmtx. We have moved this off-list for a while. For now, if you have problems with lmtx, just switch back to the regular mkiv standalone. Best wishes, Taco

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
d I’m running now into troubles with system font indexing: >> >> mtxrun --script fonts --reload >> >> locates fonts in macOS directories appropriately (*.afm fonts placed in >> .../tex/texmf-fonts are not found, but at the moment I don’t care too much), &g

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater
Hi, FYI, my "context mkiv” standalone seems to be fine (latest download). “lmtx” standalone (also latest download) not so much (same problems). Looks like something is broken in ltmx’ TTC parser. OS X Catalina 10.15.4 Taco

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Henning Hraban Ramm
unning now into troubles with system font indexing: > > mtxrun --script fonts --reload > > locates fonts in macOS directories appropriately (*.afm fonts placed in > .../tex/texmf-fonts are not found, but at the moment I don’t care too much), > however it resolves only to a sin

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
/Jan worked fine.) I recite my example from Wed: ConTeXt ver: 2020.01.30 14:13 MKIV beta fmt: 2020.4.22 (LuaTeX 1.11.1) and I’m running now into troubles with system font indexing: mtxrun --script fonts --reload locates fonts in macOS directories appropriately (*.afm fonts placed in .../tex

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Thomas A. Schmitz
> On 24. Apr 2020, at 09:21, Gerben Wierda wrote: > > > I altready did that earlier as per the Wiki information (did not report it) > and just tried again. No difference. Steps to happiness: 1. Extract the ttc font to ttf 2. Copy the ttf files to your local texmf directory 3. reload the

[NTG-context] ConTeXt beta issue? Was: Basic font question (Optima, but no bold, no italics). Standalone ConTeXt (beta) does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
beta fmt: 2020.4.7 int: english/english system > system > 'cont-new.mkiv' loaded If the standalone is used, it doesn’t work. If TeX Live 2019 is used, it does work. Note, there is no ‘luatex’ command in the standalone. And I get a different output from the --version comm

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
> On 24 Apr 2020, at 08:53, Wolfgang Schuster > wrote: > > Can you try this: > > \definefontfamily [mainface] [rm] [Optima] > [it=optimaitalic, >bf=optimabold, >bi=optimabolditalic] I altready did that earlier as per the Wiki information (did not report it) and just tried again.

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
in as another user, and used ConTeXt from TeX Live 2019: It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does. G > On 24 Apr 2020, at 08:09, Henning Hraban Ramm wrote: > > > >> Am 24.04.202

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Henning Hraban Ramm
> Am 24.04.2020 um 08:48 schrieb Gerben Wierda : > > Then I thought, let’s test some other things. I logged in as another user, > and used ConTeXt from TeX Live 2019: > > > It seems to be that on my system, the standalone installed ConTeXt does not > work with

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Wolfgang Schuster
thought, let’s test some other things. I logged in as another user, and used ConTeXt from TeX Live 2019: It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does. Can you try this: \definefontfamily [mainface] [rm

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread r . ermers
>>>> What I was also looking for is that I don’t have a test.tex anymore, just >>>>> the XML file I am parsing and a command line action. >>>>> >>>>> So, I use mtxrun, give it the name of an XML. lua code (using a ’script’ >>>>&g

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Gerben Wierda
or adding information to my processing. >>>> >>>> What I was also looking for is that I don’t have a test.tex anymore, just >>>> the XML file I am parsing and a command line action. >>>> >>>> So, I use mtxrun, give it the name of an XML. l

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Wolfgang Schuster
parsing and a command line action. So, I use mtxrun, give it the name of an XML. lua code (using a ’script’ somewhere?) reads the XML, extracts a name (e.g. ‘foo’) from it, creates a .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. ‘foo.pdf'). When processing XML, I

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Gerben Wierda
>> the XML file I am parsing and a command line action. >> >> So, I use mtxrun, give it the name of an XML. lua code (using a ’script’ >> somewhere?) reads the XML, extracts a name (e.g. ‘foo’) from it, creates a >> .tex file (e.g. ‘foo.tex’), produces a .pdf fi

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Hans Hagen
a ’script’ somewhere?) reads the XML, extracts a name (e.g. ‘foo’) from it, creates a .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. ‘foo.pdf'). G On 14 Apr 2020, at 09:16, Taco Hoekwater wrote: Hi Gerben, What you want is quite easy to do since you are using lua already

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Taco Hoekwater
ve it the name of an XML. lua code (using a ’script’ > somewhere?) reads the XML, extracts a name (e.g. ‘foo’) from it, creates a > .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. > ‘foo.pdf'). When processing XML, I normally use context —

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Gerben Wierda
a name (e.g. ‘foo’) from it, creates a .tex file (e.g. ‘foo.tex’), produces a .pdf file from that .tex file (e.g. ‘foo.pdf'). G > On 14 Apr 2020, at 09:16, Taco Hoekwater wrote: > > Hi Gerben, > > What you want is quite easy to do since you are using lua already. Try this:

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-14 Thread Taco Hoekwater
Hi Gerben, What you want is quite easy to do since you are using lua already. Try this: % context --whatever=green test with test.tex: \starttext \startluacode table.print(environment.arguments) \stopluacode \stoptext everything from the command line ends up in

[NTG-context] Using command line values in a TeX document; writing a script?

2020-04-13 Thread Gerben Wierda
Currently, I process a file like this: mtxrun --autogenerate --script context test12.tex and in the file test12.tex one sees something like this: \input archimate-mp \ctxlua{moduledata.archimate(“myarchimatefile.xml")} The latter parses the xml file and produces a PDF using generated MP

Re: [NTG-context] Lua/TeX/METAPOST/textext string issue/puzzle

2020-04-02 Thread Gerben Wierda
Actually, the backslashes disappear before the call to textext() G > On 1 Apr 2020, at 23:44, Aditya Mahajan wrote: > > On Wed, 1 Apr 2020, Gerben Wierda wrote: >> >> My route is probably to complex anyway, but what can I do for the curly >> braces to be actually typeset? > > MkII had a

Re: [NTG-context] Lua/TeX/METAPOST/textext string issue/puzzle

2020-04-01 Thread Aditya Mahajan
On Wed, 1 Apr 2020, Gerben Wierda wrote: My route is probably to complex anyway, but what can I do for the curly braces to be actually typeset? MkII had a feature called \sometxt http://dl.contextgarden.net/myway/sometxt.pdf I wonder if that still works in MkIV. Aditya

[NTG-context] Lua/TeX/METAPOST/textext string issue/puzzle

2020-04-01 Thread Gerben Wierda
String) -- Returns a string where each " is replaced by a METAPOST compatible result, except for outer double quotes" rep = { [1] = { "\"", "\"&\"" }, } local tmpString = string.formatters( "%!tex!", xmlLabelString) retur

Re: [NTG-context] How do I set TeXShop to use mtxrun on a .tex file?

2020-02-29 Thread Otared Kavian
Hi Gerben, There is a dedicated page for this: https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS Please have a look to the section Running LMTX from TeXShop Best regards: OK > On 29 Feb 2020, at 12:34, Gerben Wierda wrote: > > I’d like to use TeXShop.app for

[NTG-context] How do I set TeXShop to use mtxrun on a .tex file?

2020-02-29 Thread Gerben Wierda
I’d like to use TeXShop.app for my development. How do I set TeXShop.app to use my standalone ConTeXt? G ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Where is tex/texmf-context?

2019-10-16 Thread Henri Menke
Dear list, Today I wanted to use ConTeXt MkIV instead of LMTX but when I ran context, I obtained the error mtxrun | unknown script 'context.lua' or 'mtx-context.lua' so I went to the installation directory /opt/context to check and noticed that tex/textmf-context was missing. I

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
Wolfgang will cook up a patch ... The best solution is to remove the values from all three keys because for now each of them is applies twice (even the style). \setuptyping   [before=\hairline,     after=\hairline,     style=\tt\em] \starttext \starttyping[option=tex] \donothing \stoptyping

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Hans Hagen
On 4/28/2019 5:56 PM, Aditya Mahajan wrote: On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},   

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
    [TexSnippet]     [DefaultSnippet] Wolfgang Aditya Mahajan schrieb am 28.04.2019 um 17:00: Hi, The following minimal example: \definetextbackground     [EXAMPLE]     [   location=paragraph, rulethickness=1pt,     leftoffset=5em,    rightoffset=0mm,     ] \setuptyping[option=tex

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
Hi, The following minimal example: \definetextbackground [EXAMPLE] [ location=paragraph, rulethickness=1pt, leftoffset=5em, rightoffset=0mm, ] \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C

Re: [NTG-context] Breakable thin space in TeX

2019-03-29 Thread Hans Hagen
On 3/29/2019 11:48 AM, Huseyin Özoguz wrote: Dear list, I use \, as a non-breakable half-space. But which is it's breakable equivalent? I could not find it in the wiki or any TeX-Wiki. you can try \hsize1mm test\hairspace test

[NTG-context] Breakable thin space in TeX

2019-03-29 Thread Huseyin Özoguz
Dear list, I use \, as a non-breakable half-space. But which is it's breakable equivalent? I could not find it in the wiki or any TeX-Wiki. Thank you. -- Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de ___ If your

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread Hans Hagen
8, banner: this is luatex, version 1.10.0 (tex live 2019) mkiv lua stats > control sequences: 53180 of 65536 + 10 mkiv lua stats > lua properties: engine: lua 5.3, used memory: 441 MB (ctx: 437 MB), hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 21.608 seconds, 2

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:01 PM Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > On Fri, 1 Mar 2019 at 08:50, luigi scarso wrote: > > > ( forget the time, it's a zero-optimized binary (fast to compile)) > > It takes even longer for me with the binary from the distribution. > I know, but

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread Mojca Miklavec
On Fri, 1 Mar 2019 at 08:50, luigi scarso wrote: > > $> context luatex > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: > texmf-linux-64 > mkiv lua stats > used engine: luatex version 1.1 with functionality level > 7088, banner: this is luate

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 8:16 AM Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > On Fri, 1 Mar 2019 at 07:39, Mojca Miklavec wrote: > > On Fri, 1 Mar 2019 at 00:14, Henri Menke wrote: > > > > > > Dear list, > > > > > > I just install

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Mojca Miklavec
On Fri, 1 Mar 2019 at 07:39, Mojca Miklavec wrote: > On Fri, 1 Mar 2019 at 00:14, Henri Menke wrote: > > > > Dear list, > > > > I just installed TeX Live 2019 pretest and running context --make fails with > , > The latest ConTeXt has just been included yesterda

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Mojca Miklavec
On Fri, 1 Mar 2019 at 00:14, Henri Menke wrote: > > Dear list, > > I just installed TeX Live 2019 pretest and running context --make fails with , The latest ConTeXt has just been included yesterday and should be available since today (some time after the usual nightly update cca.

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:17 AM Henri Menke wrote: > Hm, it looks like the macro code hasn't been updated from 2018 yet, because > after fixing isfile it crashes when trying to load the old pdfe library. > > seems so. I have just tested luatex 1.10 against the latest zip and it's all ok. --

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Hm, it looks like the macro code hasn't been updated from 2018 yet, because after fixing isfile it crashes when trying to load the old pdfe library. Cheers, Henri On 1/03/19 12:14 PM, Henri Menke wrote: > Dear list, > > I just installed TeX Live 2019 pretest and running context --m

[NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Dear list, I just installed TeX Live 2019 pretest and running context --make fails with error in callback: ...xlive/2019/texmf-dist/tex/context/base/mkiv/luat-cod.lua:194: attempt to call a nil value (upvalue 'isfile') This can easily be fixed by replacing in luat-cod.lua local

<    1   2   3   4   5   6   7   8   9   10   >