Re: [NTG-context] running gnuplot failure

2020-03-29 Thread Jan-Erik Hägglöf
That was working just fine, thank you so much! Janne > 30 mars 2020 kl. 01:48 skrev Hans Hagen : > > On 3/29/2020 8:32 PM, Jan-Erik Hägglöf wrote: >> Hi! >> I have tried to run the following codeexample with no success >> \usemodule >> [gnuplot] > in lmtx gnuplot can be done like this (here i

Re: [NTG-context] running gnuplot failure

2020-03-29 Thread Hans Hagen
On 3/29/2020 8:32 PM, Jan-Erik Hägglöf wrote: Hi! I have tried to run the following codeexample with no success \usemodule [gnuplot] in lmtx gnuplot can be done like this (here i just write the file but it can be external or a saved buffer or ... ): \usemodule[gnuplot] \startluacode

Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Tomas Hala
Sun, Mar 29, 2020 ve 08:24:53PM +0200 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 29.03.2020 um 19:55: # >Hi all, # > # >I noticed the difference in behaviour of textcommand which depends # >on the location: for top, bottom and page the \crlf (see MWE) is applied # >while for the left and

Re: [NTG-context] Nodes module for commutative diagrams etc

2020-03-29 Thread Wolfgang Schuster
Weber, Matthias schrieb am 29.03.2020 um 21:02: Dear list, I need to typeset a handful of simple commutative diagrams like the one below, and I found the nodes manual by Alan that has exactly what I want. But what is the incantation to load the module, or am I missing something else? Thanks,

Re: [NTG-context] Primes far too high in Lucida Type1

2020-03-29 Thread Wolfgang Schuster
Tim Steenvoorden schrieb am 22.03.2020 um 12:10: Hi all, I’m trying to typeset a document using Lucida Type1 fonts. Primes are put way too high. Also, kerning with punctuation characters placed after a prime are too wide. This can be seen in attached rendering of below example.  $e,\sigma

[NTG-context] Nodes module for commutative diagrams etc

2020-03-29 Thread Weber, Matthias
Dear list, I need to typeset a handful of simple commutative diagrams like the one below, and I found the nodes manual by Alan that has exactly what I want. But what is the incantation to load the module, or am I missing something else? Thanks, Matthias \starttext \startMPcode path p ; p

[NTG-context] running gnuplot failure

2020-03-29 Thread Jan-Erik Hägglöf
Hi!I have tried to run the following codeexample with no success\usemodule[gnuplot] \setupGNUPLOTterminal[context][width=5in,height=2.5in,fontscale=0.9] \setupGNUPLOTterminal[tikz][width=5in,height=2.5in,fontscale=0.9] \starttext\startGNUPLOTinclusionsset samples 400set key left Left

Re: [NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Wolfgang Schuster
Tomas Hala schrieb am 29.03.2020 um 19:55: Hi all, I noticed the difference in behaviour of textcommand which depends on the location: for top, bottom and page the \crlf (see MWE) is applied while for the left and right not even if other values (\red, any-text) are used as expecterd. How could

[NTG-context] Different behaviour of textcommand (setupcaption+startplacefigure)

2020-03-29 Thread Tomas Hala
Hi all, I noticed the difference in behaviour of textcommand which depends on the location: for top, bottom and page the \crlf (see MWE) is applied while for the left and right not even if other values (\red, any-text) are used as expecterd. How could I activate the textcommand=\crlf for

Re: [NTG-context] Space around comma in math mode

2020-03-29 Thread Wolfgang Schuster
w n schrieb am 29.03.2020 um 16:10: That works, great Just curious, is this setup described on the Context Wiki, or on the mailing list ? https://wiki.contextgarden.net/Command/setupmathematics#Syntax PS. The wiki has a search function. Wolfgang

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
We should move this to the thread What alternative for scantokens( "btex " & texcommands & " etex”)? I’ve put my vardef there. The calls to this vardef are created by lua code. I need to fix two things: use a string variable to build a btex-etex construct and be able to use (almost) any

Re: [NTG-context] Space around comma in math mode

2020-03-29 Thread w n
That works, great Just curious, is this setup described on the Context Wiki, or on the mailing list ? Thanks for the help On Sun, Mar 29, 2020 at 3:28 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > w n schrieb am 29.03.2020 um 15:20: > > Hi, > > > > I am using > > $ context

Re: [NTG-context] Space around comma in math mode

2020-03-29 Thread Wolfgang Schuster
w n schrieb am 29.03.2020 um 15:20: Hi, I am using $ context --version mtx-context     | ConTeXt Process Management 1.03 mtx-context     | mtx-context     | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context     | current version: 2020.01.30 14:13

[NTG-context] Space around comma in math mode

2020-03-29 Thread w n
Hi, I am using $ context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.01.30 14:13 mtx-context | main context file:

[NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-29 Thread Gerben Wierda
I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex. picture p; p := scantokens( "btex " & texcommands & " etex”); with texcommands a variable that holds a string of TeX commands doesn’t work. The METAPOST parser complains about not finding etex. I’m using MetaFun

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 15:06: On 29 Mar 2020, at 14:35, Wolfgang Schuster > wrote: Gerben Wierda schrieb am 29.03.2020 um 14:30: On 29 Mar 2020, at 12:58, Wolfgang Schuster > wrote: Gerben

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
> On 29 Mar 2020, at 14:35, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 29.03.2020 um 14:30: >>> On 29 Mar 2020, at 12:58, Wolfgang Schuster >>> wrote: >>> >>> Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
> On 29 Mar 2020, at 12:58, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 29.03.2020 um 12:52: >> I am using MetaFun (Lua code) to create METAPOST commands from an XML file. >> One of the issues I am running into that in METAPOST I have to handle >> strings with " characters in

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 14:30: On 29 Mar 2020, at 12:58, Wolfgang Schuster wrote: Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle

Re: [NTG-context] conditional for undefined references

2020-03-29 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 29.03.2020 um 13:53: Dear list, consider the following sample: \setuppapersize[A8] \starttext \ConTeXt: \in[seac] Is it defined?: \doifelse{\in[seac]}{??}{undefined}{defined} \Lua: \ctxlua{context([[{\in[seac]}]])} Is

Re: [NTG-context] I could use some ideas for a strategy to get these kind of labels in a METAPOST picture

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 10:47: On 28 Mar 2020, at 19:04, Wolfgang Schuster wrote: Gerben Wierda schrieb am 28.03.2020 um 18:58: Actually, I would already be helped with a way to convert this string: My “Büsiness" sérvice into something that can be typeset by

[NTG-context] conditional for undefined references

2020-03-29 Thread Pablo Rodriguez
Dear list, consider the following sample: \setuppapersize[A8] \starttext \ConTeXt: \in[seac] Is it defined?: \doifelse{\in[seac]}{??}{undefined}{defined} \Lua: \ctxlua{context([[{\in[seac]}]])} Is it defined?: \startlua if [[{\in[seac]}]] == "??"

[NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo "Bar” Foo turns into someCall( "Foo “Bar”

Re: [NTG-context] I could use some ideas for a strategy to get these kind of labels in a METAPOST picture

2020-03-29 Thread Gerben Wierda
I tried this and it worked. Next issue: if the string has a “ character in it, METAPOST cannot handle it. New question for the list... G > On 29 Mar 2020, at 10:47, Gerben Wierda wrote: > > > >> On 28 Mar 2020, at 19:04, Wolfgang Schuster >> wrote: >> >> Gerben Wierda schrieb am

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo

Re: [NTG-context] I could use some ideas for a strategy to get these kind of labels in a METAPOST picture

2020-03-29 Thread Gerben Wierda
> On 28 Mar 2020, at 19:04, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 28.03.2020 um 18:58: >> Actually, I would already be helped with a way to convert this string: >> My “Büsiness" sérvice >> into something that can be typeset by ConTeXt. Using embedded lua is fine. > >