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

[NTG-context] nice overview of tex

2019-01-09 Thread Floris van Manen
> There are two extensive historic articles on tex here: > > http://walden-family.com/ieee/texhistory.html > — … LuaTEX is perhaps the most recent fundamentally new development in the TEX world. YES ! ;-) .F signature.asc Description: Message signed with OpenPGP u

[NTG-context] nice overview of tex

2019-01-09 Thread Hans Hagen
Hi, There are two extensive historic articles on tex here: http://walden-family.com/ieee/texhistory.html -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] (bug?) weird line break in firstlines-001.tex

2018-11-28 Thread Rik
On 11/28/2018 12:01, Pablo Rodriguez wrote: Dear list, the following code comes from firstlines-001.tex: \setupbodyfont [pagella] \setupfirstline [fancy] [n=3] \starttext \setupindenting[medium,yes] \setfirstline[fancy

[NTG-context] (bug?) weird line break in firstlines-001.tex

2018-11-28 Thread Pablo Rodriguez
Dear list, the following code comes from firstlines-001.tex: \setupbodyfont [pagella] \setupfirstline [fancy] [n=3] \starttext \setupindenting[medium,yes] \setfirstline[fancy] \input ward \par \stoptext I’m afraid

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
On 11/28/2018 9:33 AM, Joseph Canedo wrote: I’d like to change some input to modify used font but only in parts of it, for example to implement having first line with different font. So basically if I have text with macros etc…: % firstlines-001.tex \setupbodyfont [pagella] \setupalign

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Joseph Canedo
e, or elsewhere. Thanks De : Hans Hagen Envoyé le :mercredi 28 novembre 2018 09:04 À : Joseph Canedo; mailing list for ConTeXt users Objet :Re: [NTG-context] Grammar to parse TeX input? On 11/27/2018 11:00 PM, Joseph Canedo wrote: > I’ve tried context.processbuffer but I am afraid it’s n

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
from the input so in principle you can start your input with a token scanner, but then you not only end up with lots of 'tokens' but also need to interpret them ... and that is actually what tex is quite effecient in and good at, so the question is: what do you want to achieve ... there might

Re: [NTG-context] Grammar to parse TeX input?

2018-11-27 Thread Joseph Canedo
 : mailing list for ConTeXt users; Joseph Canedo Objet :Re: [NTG-context] Grammar to parse TeX input? On 11/26/2018 3:19 PM, Joseph Canedo wrote: > \startluacode > > function zzz_function(text) > > - How to process ‘text’ to get bits which are macros, groups etc… ? > Eventually e

Re: [NTG-context] Grammar to parse TeX input?

2018-11-26 Thread Hans Hagen
On 11/26/2018 3:19 PM, Joseph Canedo wrote: \startluacode function zzz_function(text) - How to process ‘text’ to get bits which are macros, groups etc… ? Eventually expanded ? end \stopluacode \definebuffer[ZZZBuffer] \def\StartZZZ{\grabbufferdata[ZZZBuffer][StartZZZ][StopZZZ]}

[NTG-context] Grammar to parse TeX input?

2018-11-26 Thread Joseph Canedo
Dear list, I use a buffer to make some text processing. That text contains TeX macros etc… and I’d like to know if there is some feature in lua to parse the text to extract bits which macros, normal text etc… ? Thanks Best regards Joseph Example of pseudo MWE follows. \startluacode

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
Axel Kielhorn schrieb am 05.10.18 um 18:44: Am 05.10.2018 um 17:33 schrieb Wolfgang Schuster : I took a look at your example files and there a few things which can be improved. Product file: 1. You don’t need the actual name of the current file and use * instead 2. You can use brackets

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
> Am 05.10.2018 um 17:33 schrieb Wolfgang Schuster > : > > I took a look at your example files and there a few things which can be > improved. > > > Product file: > > 1. You don’t need the actual name of the current file and use * instead > > 2. You can use brackets as delimiters for the

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 04.10.18 um 09:27: Hi, On 4 Oct 2018, at 08:47, Axel Kielhorn wrote: Hello, this is my second try to start with context and I can’t even do the first step. I’m planing to convert a large but simple document to context. The document consists of 3 Parts. Each part

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
I took a look at your example files and there a few things which can be improved. Product file: 1. You don’t need the actual name of the current file and use * instead 2. You can use brackets as delimiters for the file name instead of a space after the name 3. In products you can put all

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Henning Hraban Ramm
Am 2018-10-05 um 08:31 schrieb Axel Kielhorn : > How about offering a skeleton project for download? I’m offering a Python script that creates projects: https://github.com/fiee/tools/blob/master/contextproject.py This avoids renaming everything. In my bigger projects I use additional shell

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
> Am 04.10.2018 um 20:59 schrieb Henning Hraban Ramm : > > Am 2018-10-04 um 10:08 schrieb Axel Kielhorn : > >> Thus having the whole file inside \start{project|product|component} \stop… >> would be a good idea and consistent. > > That’s what I do. > Since I wrote that wiki page (some years

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Henning Hraban Ramm
Am 2018-10-04 um 10:08 schrieb Axel Kielhorn : > Thus having the whole file inside \start{project|product|component} \stop… > would be a good idea and consistent. That’s what I do. Since I wrote that wiki page (some years ago) I’ll change it. Greetlings, Hraban --- https://www.fiee.net

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn
> Am 04.10.2018 um 09:27 schrieb Taco Hoekwater : > >> According to my understanding I should be able to >> context c_01 to get one chapter >> context prd_A to get one product >> context project_ecm to get the whole book. > > Any whole book should be a product, and the Parts should just be

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Taco Hoekwater
Hi, > On 4 Oct 2018, at 08:47, Axel Kielhorn wrote: > > Hello, > > this is my second try to start with context and I can’t even do the first > step. > > I’m planing to convert a large but simple document to context. > The document consists of 3 Parts. > Each part has several chapters. > >

[NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn
. According to my understanding I should be able to context c_01 to get one chapter context prd_A to get one product context project_ecm to get the whole book. The first two steps lead to circular inclusion and the TeX capacity error. The last step doesn’t load the products and creates no files. I

[NTG-context] tex-gyre fonts missing in 2018.07.02 14:39

2018-07-04 Thread Thomas A. Schmitz
Hi Hans, is it possible that you forgot to include the texgyre fonts in the latest beta? I just realized that the directory experimental/tex/texmf/fonts/opentype/public/tex-gyre is missing… (and my documents are in latin modern) All best Thomas

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
t; I don't know if this is a problem with the font itself or if it is >>> ConTeXt. In any case, the test file below gives strange output (attached). >>> In particular the space/kerning after $f$ seems to be off. >>> >> >> the fonts have bad glyph dimens

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
below gives strange output (attached). >> In particular the space/kerning after $f$ seems to be off. >> > > the fonts have bad glyph dimensions that assume italics always to be > applied (as in traditional tex fonts) > > you can put this at the top of your file: > >

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Hans Hagen
glyph dimensions that assume italics always to be applied (as in traditional tex fonts) you can put this at the top of your file: \definefontfeature[mathextra][collapseitalics=yes] awaiting fixed fonts (if they never get fixed we can consider applying this feature by default) Ulrike Fischer

[NTG-context] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-10 Thread Mikael P. Sundqvist
Hi Hans and others! I don't know if this is a problem with the font itself or if it is ConTeXt. In any case, the test file below gives strange output (attached). In particular the space/kerning after $f$ seems to be off. Ulrike Fischer reminded me in the StackExchange chat that not so long time

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
Dear list, I got a tex setting file env-plain.tex from Internet and reference it in project-openstack-source-analysis.tex, when I used the the command "context project-openstack-source-analysis", the result of output shows "tex error > tex error on line 19 in file /

Re: [NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Rik Kabel
On 2018-01-16 09:26, Dr. Thomas Möbius wrote: \definestartstop     [abstract]     [style=bold,     after={\blank[big]}] \starttext \title{My title: example of a word and character count} {\strut\tfx Formal guidelines: word count of abstract: $x$, character count of main text: $x$, character

[NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Dr . Thomas Möbius
To meet some formal guidelines, I need to provide a word count of my abstract and a character count of the main text, and a character count of all the text appearing in figure captions. Is this possible (maybe using some lua-magic)? Thank you! Thomas Minimal example: \definestartstop

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Christoph Reller
On Wed, 27 Dec 2017 19:53:58 +0100, Pablo Rodriguez wrote: > could you enable issues in your Bitbucket repository? Issues are enabled now. Cheers, Christoph ___ If your question is of interest to others

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Aditya Mahajan
. To avoid that, create a subdirectory called "output" and set \setupvimtyping[directory=output] Then all the temp files will be stored in the directory "output". test.tex Description: TeX document

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Pablo Rodriguez
On 12/21/2017 10:16 PM, Christoph Reller wrote: > > My module does not come in standard context. You have to download it > from https://bitbucket.org/philexander/context-highlight. If general > interest is high enough I can ask to > add it. Christoph, could you enable issues in your Bitbucket

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-27 Thread Pablo Rodriguez
On 12/27/2017 02:14 AM, SteamedFish wrote: > You can try vim module. > > It supports all the formats that vim is able to support and it is a builtin > module. Aditya suggested this possibility to me in a previous message in this thread. But my sources are XML, so the minimal sample is more

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread SteamedFish
You can try vim module. It supports all the formats that vim is able to support and it is a builtin module. \usemodule[t-vim] \definevimtyping [TEX] [syntax=context] \definevimtyping [XML] [syntax=xml] \definevimtyping [LUA] [syntax=lua] \starttext \startTEXpage[offset=2em] a \TEX\ inline

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread Pablo Rodriguez
On 12/21/2017 10:53 PM, Aditya Mahajan wrote: > [...] > Can you post a minimal working example. I don't use XML so it is difficult > for me to understand how these commands are used in practice. Aditya, many thanks for your reply and your help. A minimal sample would be: \startbuffer[demo]

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-26 Thread Pablo Rodriguez
On 12/21/2017 10:16 PM, Christoph Reller wrote: > On Thu, 21 Dec 2017 21:16:45 +0100, Pablo Rodriguez wrote: >> [...] >> It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet >> (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will >

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Aditya Mahajan
and \xmlinlineprettyprint gets the fuctionality for the other two commands. The commands are invoked in this way: \xmlinlineprettyprinttext{#1}{tex} \xmlprettyprinttext{#1}{lua} Maybe adapting \prettyprintbuffer and \inlineprettyprintbuffer to the t-vim module works fine. (But this code is all Greek to me.) Many

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Christoph Reller
e[xml][option=xml] >> [...] >> Note that even partial XML is highlighted correctly. > > It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet > (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will > come later. Maybe, if I find the time,

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
ettyprinttext and \xmlinlineprettyprint gets the fuctionality for the other two commands. The commands are invoked in this way: \xmlinlineprettyprinttext{#1}{tex} \xmlprettyprinttext{#1}{lua} Maybe adapting \prettyprintbuffer and \inlineprettyprintbuffer to the t-vim module works fine. (B

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
ks for your reply. Your module is really great fine. It supports both \setuptype and \setuptyping options. It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will come later. I’m afraid that XML comments

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/20/2017 10:18 PM, Hans Hagen wrote: > On 12/20/2017 8:45 PM, Pablo Rodriguez wrote: >> [...] >> Would it be possible that there are two SnippetComments for all lexers: >> SnippetCommentMark and SnippetCommentText? > > very low priority ... there is some logic behind these that i don't want >

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Aditya Mahajan
. It should be as simple as subsituting \usemodule[vim] Many thanks for your reply, Aditya. My scenario is much more complex: I typeset XML (HTML4 or HTML5) generated from Markdown sources via pandoc. My commands are \xmlinlineprettyprinttext{#1}{tex} and \xmlprettyprinttext{#1}{tex}. I don’t remember

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
be as simple as subsituting > > \usemodule[vim] Many thanks for your reply, Aditya. My scenario is much more complex: I typeset XML (HTML4 or HTML5) generated from Markdown sources via pandoc. My commands are \xmlinlineprettyprinttext{#1}{tex} and \xmlprettyprinttext{#1}{tex}. I don’t remembe

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-21 Thread Christoph Reller
On Tue, Mon, 18 Dec 2017 23:50:09 +0100, Pablo Rodriguez <oi...@gmx.es> wrote: > I have the following sample: > > \definetype[context][option=tex] > \definetype[lua][option=lua] > \starttext > \startTEXpage[offset=2em] > > a \TEX\ inline comment:

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Hans Hagen
On 12/20/2017 8:45 PM, Pablo Rodriguez wrote: On 12/20/2017 12:53 PM, Hans Hagen wrote: On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: [...] % Differs per lexer: \definestartstop [XmlSnippetComment] [color=, style=] I’m afraid that the scite module isn’t an option for

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Pablo Rodriguez
On 12/20/2017 12:53 PM, Hans Hagen wrote: > On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: >> [...] > % Differs per lexer: > > \definestartstop > [XmlSnippetComment] > [color=, > style=] > >> I’m afraid that the scite module isn’t an option for me. > > Then you need to configure

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Hans Hagen
On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: Hans, sorry for insisting, but I really need this. I have the following sample: \definetype[context][option=tex] \definetype[lua][option=lua] \starttext \startTEXpage[offset=2em] a \TEX\ inline comment: \context{ag%befe

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-19 Thread Aditya Mahajan
On Tue, 19 Dec 2017, Pablo Rodriguez wrote: On 12/19/2017 08:26 PM, Aditya Mahajan wrote: On Mon, 18 Dec 2017, Pablo Rodriguez wrote: [...] Would it be possible that all comments in type and typing (at least, for Lua, XML and TeX) would have the same formatting for the whole comment contents

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-19 Thread Pablo Rodriguez
On 12/19/2017 08:26 PM, Aditya Mahajan wrote: > On Mon, 18 Dec 2017, Pablo Rodriguez wrote: >> [...] >> Would it be possible that all comments in type and typing (at least, for >> Lua, XML and TeX) would have the same formatting for the whole comment >> contents,

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-19 Thread Aditya Mahajan
On Mon, 18 Dec 2017, Pablo Rodriguez wrote: \definetype[context][option=tex] \definetype[lua][option=lua] \starttext \startTEXpage[offset=2em] a \TEX\ inline comment: \context{ag%befe} \Lua\ inline comment: \lua{agb --efe} \startTEX This is text. % a comment

  1   2   3   4   5   6   7   8   9   10   >