[NTG-context] lmtx

2021-01-18 Thread Hans Hagen
also a typescript: type-imp-punk.mkxl one can create different versions and play with random variants and such. The question is: do we need more metapost font magic and infrastructure? For "pdf features that browsers implement fuzzy or not at all" lovers there is test \star

Re: [NTG-context] question about vardef variables

2021-01-18 Thread Taco Hoekwater
error message with a more > complex macro. It made me figure out where my problems came from. > > So here are my two questions: > - Why shouldn't we tell metafun if expr is a path, a pair or so on? You were (attempting to) redefine the macro’s arguments, but they are read-only.

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-17 Thread Hans Hagen
with LMTX, the spacing between letters becomes very small so that when I type "|f|", for example, the second "|" intersects the f and looks rather ugly. However, compiling with the --luatex switch fixes these issues and the math looks nice again. Can anybody else replicate this iss

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Hans Hagen
very small so that when I type "|f|", for example, the second "|" intersects the f and looks rather ugly. However, compiling with the --luatex switch fixes these issues and the math looks nice again. Can anybody else replicate this issue, and does anybody know

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Otared Kavian
aven't tested them).If I compile with LMTX, the spacing between letters becomes very small so that when I type "|f|", for example, the second "|" intersects the f and looks rather ugly. However, compiling with the --luatex switch fixes these issues and the math

[NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Jack Hill
Hi, I've been having some trouble with ConTeXt not typesetting math correctly when using the Pagella font (I do not know if the same issue occurs with other fonts as I haven't tested them). If I compile with LMTX, the spacing between letters becomes very small so that when I type &qu

[NTG-context] Size problems in fencing

2021-01-08 Thread Mikael Sundqvist
e=3]{a} \stopformula \switchtobodyfont[lucidaot] If we switch to lucida, the \type{size=1} and \type{size=2} are the same: \startformula \Set[size=0]{a}\quad \Set[size=1]{a}\quad \Set[size=2]{a}\quad \Set[size=3]{a} \sto

Re: [NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Jean-Philippe Rey
wrote the following ==\usemodule[graph]\starttext\startMPcode{graph}draw begingraph(150mm, 100mm); gdraw "test-mpgraph.txt"; endgraph;\stopMPcode\stoptext==which fails with "error: Improper type" (see attache

Re: [NTG-context] Bib support broken in lmtx

2021-01-03 Thread Philipp A.
he bug, just try accessing it: > > \startluacode > local current = publications.datasets.default > tex.print('\\starttyping') > tex.print(table.serialize(current.luadata)) > -- to show that the key doesn’t contain weird invisible characters, I’ll > type it here:

Re: [NTG-context] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
contain weird invisible characters, I’ll type it here: tex.print(table.serialize(current.luadata.angerer2016)) tex.print('\\stoptyping') \stopluacode will display: t={ ["angerer2016"]={ ["author"]="Angerer...", ["category"]="artic

Re: [NTG-context] Bib support broken in lmtx

2020-12-25 Thread denis.maier
tats > font engine: otf 3.112, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.156 seconds mkiv lua stats > publications load time: 0.004 seconds, 1396 bytes, 1 definitions, 0 shortcuts mkiv lua stats > font embedding time: 0.006 s

[NTG-context] Bib support broken in lmtx

2020-12-25 Thread Philipp A.
2, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.156 seconds *mkiv lua stats > publications load time: 0.004 seconds, 1396 bytes, 1 definitions, 0 shortcuts* mkiv lua stats > font embedding time: 0.006 seconds, 1 fonts mkiv lua stats

[NTG-context] issue with \cite in ConTeXt ver: 2020.12.22 22:14 LMTX fmt: 2020.12.22

2020-12-22 Thread Alan Bowen
[packed]}, after={\egroup}, ] \definereferenceformat [cite] [type=title,left={},right={}] \definereferenceformat [bibpage] [type=page] starttext Now \cite[test 2020] on page \page \startbibitem[test 2020] \input ward \stopbibitem \stoptext Instead of “Now test 2020 on page”, I get “Now 248

Re: [NTG-context] Snooping around in LMTX: Questions about Lua global variables

2020-12-22 Thread Hans Hagen
. Wait, you traverse global tablers so their entries are *not* global. \starttext \startluacode context.starttabulate { "|T|T|" } for k, v in table.sortedhash(_G) do context.NC() context(type(v)) context.NC() context(k) context.NC() context.NR() end context.st

Re: [NTG-context] Polar pgfplots seems to be broken (Aditya Mahajan)

2020-12-21 Thread Gavin
ntitled.tex: ! Undefined control sequence >>> >>> \pgfplots@environment@polaraxis@ [#1]->\begin >>> {axis}[#1,data cs=polar,axis >>> type=polar] >>> l.18\startpolaraxis[] >>> &

Re: [NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Aditya Mahajan
{axis}[#1,data cs=polar,axis > > type=polar] > > l.18\startpolaraxis[] > > > > 16 \startsection[title={Polar Plot}] > > 17 \starttikzpicture % tikz code > > 18 >> \st

[NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Gavin
n file > /Users/Gavin/Documents/Computer/ConTeXt/Polar Plot Experiments/Untitled.tex: > ! Undefined control sequence > > \pgfplots@environment@polaraxis@ [#1]->\begin > {axis}[#1,data cs=polar,axis > type=polar] > l.18

Re: [NTG-context] lmtx-20201218 | \usetypescriptfile | typescripts > unknown library

2020-12-20 Thread Wolfgang Schuster
Richard Mahoney schrieb am 20.12.2020 um 03:42: In the recent versions of LMTX I've been having trouble with finding my own typescriptfile -- type-sourceserifpro.tex (attached) This file lives in the working directory of all of the other project files, and is also here: ~/lmtx-20201218/tex

[NTG-context] lmtx-20201218 | \usetypescriptfile | typescripts > unknown library

2020-12-19 Thread Richard Mahoney
In the recent versions of LMTX I've been having trouble with finding my own typescriptfile -- type-sourceserifpro.tex (attached) This file lives in the working directory of all of the other project files, and is also here: ~/lmtx-20201218/tex/texmf-fonts/tex/context/user/type- sourceserifpro.tex

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Jan U. Hasecke
height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] > \definefield[test][check][cbox][yes][no] > > \starttext > \field[test] \space Do you see the word »yes«? > \stoptext > > Unfortunately in Firefox and some other PDF Viewer there is th

Re: [NTG-context] Getting the filename which is being typeset

2020-12-05 Thread Axel Kielhorn
> Am 04.12.2020 um 10:04 schrieb Hans Hagen : > > On 12/4/2020 8:02 AM, Axel Kielhorn wrote: >>> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster >>> : >>> >>> The following example shows the output of all commands: >>> >>&g

Re: [NTG-context] Getting the filename which is being typeset

2020-12-04 Thread Hans Hagen
On 12/4/2020 8:02 AM, Axel Kielhorn wrote: Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster : The following example shows the output of all commands: \starttext \starttabulate [|T|T|] \NC \type{\jobname} \NC \jobname \NC\NR \NC \type{\jobfilename} \NC \jobfilename

Re: [NTG-context] Getting the filename which is being typeset

2020-12-03 Thread Axel Kielhorn
> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster > : > > The following example shows the output of all commands: > > \starttext > \starttabulate [|T|T|] > \NC \type{\jobname} \NC \jobname \NC\NR > \NC \type{\jobfilename} \NC \jobfilena

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
environment file for the style and processing settings. > > context --environment=myxmlstyle myfile.xml > > The following example shows the output of all commands: > > \starttext > \starttabulate [|T|T|] > \NC \type{\jobname} \NC \jobname \NC\NR > \NC \type{\jo

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Wolfgang Schuster
settings.     context --environment=myxmlstyle myfile.xml The following example shows the output of all commands: \starttext \starttabulate [|T|T|] \NC \type{\jobname}   \NC \jobname   \NC\NR \NC \type{\jobfilename}   \NC \jobfilename   \NC\NR \NC \type{\jobfilesuffix

Re: [NTG-context] Adding syntax highlighting when typesetting from xml (asciidoc/docbook)

2020-12-01 Thread Hans Hagen
rint("okay")} bold \stopbuffer \usemodule[scite] \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|pre}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pre \blank \xmlprettyprint{#1}{\xml

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
hey are far from perfect > but suit my needs. A few days ago, Hans warned not to use \noalign in LMTX, > so I used the trick he gave to the list even if I don't really understand it. > > === LMTX version > %D \macros{HR, VR} > %D \type{\HR} draws a horizontal rule b

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
%D \macros{HR, VR} %D \type{\HR} draws a horizontal rule between two rows of a matrix %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between two columns of a matrix %D each macro takes an optional parameter giving the rule dimensions %D Example %D \type{\startmatrix \NC

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

2020-11-25 Thread Hans Hagen
,0)ctx.par()     ctx("TeX Getvar: ") ctx.getvariable("Test", "Height")ctx.par()     var = tokens.getters.macro(tokens.getters.macro("??variables") .. "Test:Height")     ctx("Lua Type: ")   ctx(type(var))ctx.par()     ctx("L

[NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Joseph
Dear list, Following MWE outputs only ‘m’ characters (with latest upload).Thanks \startluacode function roman_num(n)   assert(type(n) == 'number')   context(tex.romannumeral(n))end \stopluacode \define[1]\RM{\ctxlua{roman_num(#1)}} \starttext\RM{1}\RM{7}\RM{10}\RM{70}\RM{100}\stoptext

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

2020-11-25 Thread Jano Kula
tx.getvariable("Test", "Height")ctx.par() var = tokens.getters.macro(tokens.getters.macro("??variables") .. "Test:Height") ctx("Lua Type: ") ctx(type(var))ctx.par() ctx("Lua Value: ") ctx(var)ctx.par() end \stopluac

[NTG-context] checkbox in fields show the word yes

2020-11-17 Thread Jan U. Hasecke
,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] \definefield[test][check][cbox][yes][no] \starttext \field[test] \space Do you see the word »yes«? \stoptext Unfortunately in Firefox and some other PDF Viewer there is the word "yes" written in the checkbox. This make

[NTG-context] problems with signature fields

2020-11-11 Thread Pablo Rodriguez
1 0 R /MaxLen 1024 /Q 0 /Subtype /Widget /T /V >> endobj 4 0 obj << /Type /Annot /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /F 4 /Parent 2 0 R /Q 0 /Subtype /Widget /Rect [ 14.033054 14.033054 70.40415 25.08072 ] >>

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
orecurse, such that \dorecurse{10}{\type{ab c}} > > does not squash the spaces? > > Verbatim in arguments of other commands is tricky because in case with > \dorecurse the loop reads the content before it is passed to type, as a > result of this process all spaces are collapsed.

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 08.11.2020 um 17:56: Hi Wolfgang, I'm sorry that the question was not clear enough. Let me ask in this way: how to define a \dorecurse, such that \dorecurse{10}{\type{a    b c}} does not squash the spaces? Verbatim in arguments of other commands is tricky because

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
Hi Wolfgang, I'm sorry that the question was not clear enough. Let me ask in this way: how to define a \dorecurse, such that \dorecurse{10}{\type{ab c}} does not squash the spaces? Sylvain On Sun, 8 Nov 2020 at 15:03, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: >

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 08.11.2020 um 14:47: Dear List, I would like to ask how to define a command, \same, such that     \same{\type{a   b c}} produces the same result as its argument does     \type{a   b c} The naive way doesn't work because it makes all the spaces collapse

[NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
Dear List, I would like to ask how to define a command, \same, such that \same{\type{a b c}} produces the same result as its argument does \type{a b c} The naive way doesn't work because it makes all the spaces collapse: \define[1]\same{#1} I would also like to ask whether

Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Sylvain Hubert
If you happen to use ibus on a linux, there's a emoji/unicode picker <https://mike-fabian.github.io/ibus-typing-booster/documentation.html#emoji-predictions>, where you can type `elem` and pick one from the candidates “∈∉∊⋲⋳⋴⋵⋶⋷⋸⋹⟒⫙” . On Thu, 5 Nov 2020 at 21:25, wrote: > A quick

Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread type
Thank you for your extremely thorough and helpful response, Hans! I'm still fairly new to ConTeXt, but I'm learning, and I have been helped greatly by all the support that is generously provided on this email list. With thanks, Sciurus -Original Message- From: Hans Hagen Sent:

Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
for "is an element of" a set). … > This is a very common character in mathematics, so I wanted to ask: what is > the recommended way to type this character? (I'm hoping to avoid having to > cut and paste the character into the document every time I want to use it. > And I don't have

Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
how to read this information, but if I read it > correctly, perhaps this character should be gotten with \in. Also, the Basic > Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states > that you should be able to type this character with "\in". But that doesn'

Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread Hans Åberg
like an epsilon, and > which is the mathematical symbol for "is an element of" a set). … > This is a very common character in mathematics, so I wanted to ask: what is > the recommended way to type this character? (I'm hoping to avoid having to > cut and paste the character into

Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread Wolfgang Schuster
completely sure how to read this information, but if I read it correctly, perhaps this character should be gotten with \in. Also, the Basic Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states that you should be able to type this character with "\in". But that doesn

[NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
correctly, perhaps this character should be gotten with \in. Also, the Basic Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states that you should be able to type this character with "\in". But that doesn't work (even inside a formula), since \in is used for r

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

2020-11-02 Thread Jairo A. del Rio
r context.delayed as it is another table (metatable trickery to allow nesting, I guess). Try: \starttext \startluacode context(type(context.delayed)) \stopluacode \stoptext Long story short: context.cmda(context.delayed.cmdb(something)) will (possibly) work; context.cmdc({key=context.de

Re: [NTG-context] multiparagraph quotation

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

[NTG-context] multiparagraph quotation

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

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Henri Menke
> (PS: I would say that adding support for transliteration of the text > from one script to the other would be a really nice feature. Then you > could type your text for a book once and have it typeset in both > versions without any extra effort :) There is Philipp Gesang's transliter

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Hans Hagen
nsliteration of the text from one script to the other would be a really nice feature. Then you could type your text for a book once and have it typeset in both versions without any extra effort :) As for transliteration, cyrillic to latin is one-to-one, straightforward with no exceptions. A simple

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Ivan Pešić
ay that adding support for transliteration of the text > from one script to the other would be a really nice feature. Then you > could type your text for a book once and have it typeset in both > versions without any extra effort :) As for transliteration, cyrillic to latin is one-to-on

Re: [NTG-context] Asymmetrical Column layout leads to an extra blank page (Solved!)

2020-10-30 Thread Ramkumar KB
soi1:1][width=.25\makeupwidth] > \setupcolumnset[soi1:2][width=.30\makeupwidth] > \setupcolumnset[soi1:3][width=.45\makeupwidth] > > Any tips, help or pointers would be greatly appreciated. If not for > columnset, is there any other way to get this type of layout? > > Thank you, >

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Hans Hagen
some new stuff (in the middle of fit) (PS: I would say that adding support for transliteration of the text from one script to the other would be a really nice feature. Then you could type your text for a book once and have it typeset in both versions without any extra effort :) just gimme the specs

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Mojca Miklavec
ly. Thank you, Mojca (PS: I would say that adding support for transliteration of the text from one script to the other would be a really nice feature. Then you could type your text for a book once and have it typeset in both versions without any extra effort :) __

[NTG-context] Asymmetrical Column layout leads to an extra blank page

2020-10-29 Thread Ramkumar KB
] \setupcolumnset[soi1:2][width=.30\makeupwidth] \setupcolumnset[soi1:3][width=.45\makeupwidth] Any tips, help or pointers would be greatly appreciated. If not for columnset, is there any other way to get this type of layout? Thank you

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
ments given (main font, scripts, serif & sans, fallbacks fonts to other scripts)? For example IBM Plex <https://www.ibm.com/plex/languages/> will cover most of what you need (except cjk for now) and there is a font definition file type-imp-plex.mkiv in the distribution (

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Jano Kula
llbacks fonts to other scripts)? For example IBM Plex <https://www.ibm.com/plex/languages/> will cover most of what you need (except cjk for now) and there is a font definition file type-imp-plex.mkiv in the distribution (not all fallbacks d

[NTG-context] Introduction to ConTeXt Wiki pages

2020-10-21 Thread type
Hi all, Just wanted to put the word out that I have posted two new pages to the Wiki, both aimed at new users of ConTeXt: https://wiki.contextgarden.net/Introduction https://wiki.contextgarden.net/Some_Basic_Commands The first is an introduction to the general principles of writing documents in

Re: [NTG-context] library 'uni' is unknown

2020-10-01 Thread Jairo A. del Rio
font files so they could be compiled via Metapost. If you go for 2), > the following would work as a poor's man solution for any symbol you need. > > \starttext > \startuseMPgraphic{Flag} > %From ifsym.gen > draw (3pt,0pt)--(3pt,10pt); > fill (3pt,10pt)--(0pt,8pt)--(3pt,6pt)--cyc

Re: [NTG-context] library 'uni' is unknown

2020-10-01 Thread Jairo A. del Rio
,8pt)--(3pt,6pt)--cycle; \stopuseMPgraphic This is a poor's man \type{ifsym's \Flag}: \useMPgraphic{Flag}. \stoptext There's a more advanced way to register glyphs explained in Luametafun ( http://www.pragma-ade.com/general/manuals/luametafun.pdf), in case you're interested. Regards, Jairo :) El

Re: [NTG-context] VisualStudioCode on Linux

2020-09-25 Thread Willi Egger
ks.json > { > "name" : "context", > "tasks" : [ >{ >"label": "ConTeXt LuaMetaTeX", >"type": "shell", >"command": "export > PATH=$HOME/ConTeXt-lmtx/tex/texmf-

Re: [NTG-context] VisualStudioCode on Linux

2020-09-24 Thread Mikael Sundqvist
here, I think): %%% Begin of file $HOME/.config/Code/User/tasks.json { "name" : "context", "tasks" : [ { "label": "ConTeXt LuaMetaTeX", "type": "shell", "command": "export PATH=$H

[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
; > > -- > > Message: 1 > Date: Mon, 21 Sep 2020 12:21:37 +0200 > From: Denis Maier > To: ntg-context@ntg.nl > Subject: [NTG-context] Parallel text support > Message-ID: <780fe43c-f2c3-6ea1-04

Re: [NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Wolfgang Schuster
Denis Maier schrieb am 21.09.2020 um 16:38: Hi, I'm a bit confused, but this here won't compile: = \startbuffer[test] Test \stopbuffer \startxmlsetups xml:test     \xmlsetsetup{#1}{*}{-}     \xmlsetsetup{#1}{article}{xml:*}     \xmlsetsetup{#1}{table[@content-type

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen) >> 5. Math fonts for Nimbus fonts (Otared Kavian) >> 6. Re: 2020 Meeting recordings? (Taco Hoekwater) >> >> >> -- >> >&

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
s LMTX > (Christoph Reller) > 4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen) > 5. Math fonts for Nimbus fonts (Otared Kavian) > 6. Re: 2020 Meeting recordings? (Taco Hoekwater) > > > -- > &g

[NTG-context] Extreme tables and XML conflict?

2020-09-21 Thread Denis Maier
Hi, I'm a bit confused, but this here won't compile: = \startbuffer[test] Test \stopbuffer \startxmlsetups xml:test     \xmlsetsetup{#1}{*}{-}     \xmlsetsetup{#1}{article}{xml:*}     \xmlsetsetup{#1}{table[@content-type!='parallel']}{xml:table}     \stopxmlsetups

Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Hans van der Meer
lfilter{#1}{/volume/command(xml:article-meta:volume)}, > doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, > elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, > title=\xmlfilter{#1}{/title-group/article-title/co

[NTG-context] Best way to store text for later use

2020-09-18 Thread Denis Maier
=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)}, doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Taco Hoekwater
mma wrote: > > Dear list member, > > Following up from: > https://www.mail-archive.com/ntg-context@ntg.nl/msg94719.html > > The below MWE works but how can I avoid having to type > \startmode[en] > \getbuffer[en] > \stopmode > \s

[NTG-context] Typing efficiency

2020-09-04 Thread Jan Willem Flamma
Dear list member, Following up from:https://www.mail-archive.com/ntg-context@ntg.nl/msg94719.html The below MWE works but how can I avoid having to type    \startmode[en]    \getbuffer[en]    \stopmode    \startmode[nl]    \getbuffer[nl]    \stopmode after every block of text?  I tried

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread Hans Hagen
unhbox\scratchbox\stopalignment   \fi} \starttext   \type{\wordorparagraphright} should use \type{\wordright} if its argument   is narrower than \type{\hsize}, or make a right-aligned paragraph with it   when it's wider.   Below, \type{\wordorparagraphright} is tested with a short text, that

[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread mf
ent[flushright]\unhbox\scratchbox\stopalignment \fi}} \unexpanded\def\wordorparagraphright#1{% \setbox\scratchbox\hbox{#1} \ifdim\wd\scratchbox < \hsize \wordright{#1} \else \par\penalty1 \startalignment[flushright]\unhbox\scratchbox\stopalignment \fi} \starttext

[NTG-context] own answer to part of the question re typeface options

2020-09-01 Thread jbf
} and the rest of the paragraph as normal (alegreya-regular)... I also now know, using the same type of solution above, that I can use two different weights of Dax, as follows: \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular,*bf=file:dax-medium*] which enables me to do as follows

Re: [NTG-context] Mathematical symbol of non-inclusion

2020-08-31 Thread Fabrice Couvreur
titutions on MacOS: a sequence of characters can be > automatically translated into another. So for example, ".subset" might > translate into "⊂" as you type along. To find the ⊂ the first time, there > is a Unicode symbol table. Other platforms and editors have similar >

Re: [NTG-context] Mathematical symbol of non-inclusion

2020-08-30 Thread Hans Åberg
quot; might translate into "⊂" as you type along. To find the ⊂ the first time, there is a Unicode symbol table. Other platforms and editors have similar features. There are other ways, but I have found this easiest and

[NTG-context] CFF2 based variable fonts with SubRS

2020-08-26 Thread Marcel Fabian Krüger
ubroutines do subroutines[i] = readbytetable(f,subroutines[i]) end @@ -2394,7 +2394,7 @@ readers.parsecharstrings = parsecharstrings -- used in font-onr.lua (type 1) local function readnoselect(f,fontdata,data,glyphs,doshapes,version,streams) local dictionari

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
Thanks all for useful tips. I ended up doing something similar as a short term fix for my float number override issue, basically setting up a new float type to use for the deviant ones and then resetting the numbering of the existing ones. It would be great if there was a facility to just drop

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
two figures in a stream >>>> of normally numbered figures like this. I was thinking of the equivalent >>>> of the old \sym{symbol} command that used to work as a way to override a >>>> single item in an otherwise sequential list. >>>> >>

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
of the old \sym{symbol} command that used to work as a way to override a single item in an otherwise sequential list. I guess there's a brute force method of setting up a new type of figure with the label "Figure 27.1" and having them numbered as lowercase alpha, but if there's an easier way

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
e the numbering of two figures in a stream of >>> normally numbered figures like this. I was thinking of the equivalent of >>> the old \sym{symbol} command that used to work as a way to override a >>> single item in an otherwise sequential list. >>>

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
sequential list. I guess there's a brute force method of setting up a new type of figure with the label "Figure 27.1" and having them numbered as lowercase alpha, but if there's an easier way that would be great. I’m also interested in overriding automatical numbering, e.g. of chapters or i

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
an otherwise sequential list. > > I guess there's a brute force method of setting up a new type of figure with > the label "Figure 27.1" and having them numbered as lowercase alpha, but if > there's an easier way that would be great. I’m also interested in overriding automatica

[NTG-context] Color specific cells in a table

2020-08-23 Thread Fabrice Couvreur
Hello, This table will be used to illustrate Pascal's triangle. I manage to color the cell (2,0) but I would also like to color the cells (2,1) and (3,1). Is it possible ? Thank you Fabrice \usecolors[X11] \starttext \startluacode local background_one = { align = "middle", sty

[NTG-context] Overriding the number on a float

2020-08-23 Thread Duncan Hothersall
of normally numbered figures like this. I was thinking of the equivalent of the old \sym{symbol} command that used to work as a way to override a single item in an otherwise sequential list. I guess there's a brute force method of setting up a new type of figure with the label "Figure

Re: [NTG-context] sudden error

2020-08-22 Thread Pablo Rodriguez
On 8/23/20 1:24 AM, jbf wrote: > Am suddenly getting the error: > > close source    > level 1, order 3, name > '/home/me/Documents/Freedom/Context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > ! error:  (type 0): cannot find file ''mtx-context | fatal error: > r

[NTG-context] sudden error

2020-08-22 Thread jbf
Am suddenly getting the error: close source    > level 1, order 3, name '/home/me/Documents/Freedom/Context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' ! error:  (type 0): cannot find file ''mtx-context | fatal error: return code: 256 I really don't think I have done anyth

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
> \startluacode > function filter(a) > local div = lxml.getid(a) > process(div) > lxml.flush(div) > end > function process(div) > for c=1,#div.dt do > if type(div.dt[c]) == 'string' then > div.dt[c] = string.gsub(div.dt[c], " of the

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Taco Hoekwater
cldcontext do not help you. That does not mean it can’t be done. As I don’t know a of a nice way, here is a low-level ‘ugly' way: \startluacode function filter(a) local div = lxml.getid(a) process(div) lxml.flush(div) end function process(div) for c=1,#div.dt do if type(div.dt[c]) ==

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-16 Thread Keith McKay
comes from. Best Wishes Keith On 15/08/2020 18:35, Taco Hoekwater wrote: Hi Keith, It took me a while before I saw it, but I think you wanted to type in z0 = (60,60); z1 = z0 rotated 120; z2 = z0 rotated 240; instead of z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-15 Thread Taco Hoekwater
Hi Keith, It took me a while before I saw it, but I think you wanted to type in z0 = (60,60); z1 = z0 rotated 120; z2 = z0 rotated 240; instead of z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240; because the latter puts z2 at z0, resulting in a path that is a straight line

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-14 Thread Mojca Miklavec
to convince a few > colleagues to experiment it with TeXShop. > > If I type in the Terminal > port installed 'tex*' > the answer is: > None of the specified ports are installed. > > I guess this is because after having solved the problem I met with installing

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-14 Thread Otared Kavian
Hi Mojca, You are correct about not removing « by hands » parts of a package… The reason for which I wen to that extremity was that I wanted absolutely to be sure to be able to run ConTeXt from TeXLive2020 in order to convince a few colleagues to experiment it with TeXShop. If I type

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-12 Thread Nicola
es to be aligned: >>>> >>>> Preface >>>> I XYZ >>>> ... >>>> VIII XYZ >>>>... >>>> >>>> I have tried to do my homework by playing with \setuphead, but I am >>>>

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
(this may help others). Just one more thing: [...] I'd prefer all the titles to be aligned: Preface I XYZ ... VIII XYZ ... I have tried to do my homework by playing with \setuphead, but I am afraid I need your help on this. Sorry, but too tired to type a sample. How

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
te the wiki (this may help others). > >> Just one more thing: >> [...] >> I'd prefer all the titles to be aligned: >> >> Preface >>I XYZ >> ... >> VIII XYZ >> ... >> >> I have tried to do my homework by playing w

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
gt; I'd prefer all the titles to be aligned: > > Preface >I XYZ > ... > VIII XYZ > ... > > I have tried to do my homework by playing with \setuphead, but I am > afraid I need your help on this. Sorry, but too tired to type a sample. How

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-11 Thread Otared Kavian
from Terminal). > > > […] > > And another one: > > Please look into the home directory for a local .texlive2020 folder. > > There shouldn’t be any and it shouldn’t contain anything context related. > > I checked for the existence of directories of the type .te

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Otared Kavian
020 folder. > There shouldn’t be any and it shouldn’t contain anything context related. I checked for the existence of directories of the type .texlive2020: there is no such directory in my home directory. There were three leftover directories .texlive2008, .texlive2010 and .texlive2019,

Re: [NTG-context] How to set pdfminorversion in LMTX?

2020-08-10 Thread Wolfgang Schuster
the example above, compare the version numbers) %PDF-1.7 %ÃÏÎÔÅØÔÐÄÆ ... << /Lang (en) /Metadata 7 0 R /PageLabels << /Nums [ 0 << /S /D /St 1 >> ] >> /PageMode /UseNone /Pages 15 0 R /Type /Catalog /Version /1.4.0 >

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