[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
I'm trying to typeset some program listings with annotations alongside. I've tried both columns and tabulate but both have (different) issues: 1) Plain \typefile won't allow the line numbers to be in the text - they stay in the margin whch I don't want. 2) \typefile using a \definedtyping name

[NTG-context] Re: Chemistry in LMTX

2023-10-03 Thread Henning Hraban Ramm
Am 03.10.23 um 02:06 schrieb Alan Braslau: On Sun, 1 Oct 2023 10:49:34 +0200 Henning Hraban Ramm wrote: chem-str.lua seems to be an updated version by Alan & Hans Did I miss something? work in progress ... i'm working on that (part of the math upgrade) so best wait till we're stable

[NTG-context] Re: Chemistry in LMTX

2023-10-02 Thread Alan Braslau via ntg-context
On Sun, 1 Oct 2023 10:49:34 +0200 Henning Hraban Ramm wrote: > >> chem-str.lua seems to be an updated version by Alan & Hans > >> > >> Did I miss something? > > > > work in progress ... i'm working on that (part of the math upgrade) > > so

[NTG-context] Re: wiki update: Modules

2023-10-02 Thread Hans Hagen
On 10/1/2023 11:01 AM, Henning Hraban Ramm wrote: Am 01.10.23 um 05:51 schrieb Otared Kavian: Hi Hraban, Thank you for your updating of the modules stuff. As far as I remember the matrix features are not related to any modules, but rather are part of LMTX. In nay case next week I will look

[NTG-context] Re: wiki update: Modules

2023-10-01 Thread Jeong Dal via ntg-context
it. Thanks for reading. Best regards, Dalyoung matrixDoc.tex Description: Binary data > 2023. 10. 1. 오후 6:01, Henning Hraban Ramm 작성: > > Am 01.10.23 um 05:51 schrieb Otared Kavian: >> Hi Hraban, >> Thank you for your updating of the modules stuff. >> As far as I r

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Pablo Rodriguez
ing laws in footnotes, such as in: Relevant to the discusssion, see »Grundgesetz«, §73: : Der Bund hat die ausschließliche Gesetzgebung über: 1. die auswärtigen Angelegenheiten; 2. die Staatsangehörigkeit im Bunde; 3. [...] I need to quote the legal text and the list inside the leg

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 26.09.2023 um 20:32: On 9/26/23 12:52, gerard.degreve wrote: Hello Pablo, Just try to do this : \setupitemgroup [itemize][1] [ before={\blank[.125th]}, after={\blank[.125th]}\strut] Hi Gerard, this also works with \null, but not well with small dimensions

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Pablo Rodriguez
On 9/26/23 12:52, gerard.degreve wrote: > Hello Pablo, > > Just try to do this : >> \setupitemgroup >> [itemize][1] >> [ before={\blank[.125th]}, >> after={\blank[.125th]}\strut] Hi Gerard, this also works with \null, but not well with small dimensions:

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-26 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread gerard.degreve
gerard.degreve:  Hello Pablo, Just try to do this : \setupitemgroup [itemize][1] [ before={\blank[.125th]}, after={\blank[.125th]}\strut] Regards, Gerard Le 25-09-23 19:26:08, Pablo Rodriguez a écrit : Dear list, I have the following sample: \setuppapersize[A6] \setupitemgroup [itemize][1

[NTG-context] item list inside a blockquote

2023-09-25 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[.125th]}, after={\blank[.125th]}] \starttext one \startblockquote \startitemize \item a \stopitemize

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf

[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf[before]}\endgraf}, after={\endgraf

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Hans Hagen
2986: in function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Pablo Rodriguez
x/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984> 1 \setupbodyfont[pagella] 2 3 \starttext 4 \startformula 5 \delta_{ij} = 6 \startmathcases 7 \NC 1 \NC \text{if } i = j \NR 8 \NC 0 \NC \text{otherwise} \NR 9

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Mikael Sundqvist
Hi, Not that it helps you much, but your example works fine here, and it gives the expected result. /Mikael On Sun, Sep 24, 2023 at 1:42 PM Vincent Picard wrote: > > Hello, > > Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that > won't compile with ConTe

[NTG-context] Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Vincent Picard
\startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/texmf

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-23 Thread Hamid,Idris
e Lotus designers thought that giving them width makes them easier to edit, which is indeed the case. And perhaps they were satisfied that Word/InDesign would be able, as needed, to toggle the metrics on and off as well as the shape. That WYSIWYG-DTP curse again.. \setcharacterstripping[1] gives

[NTG-context] Re: Install fonts on MS Windows

2023-09-23 Thread Pablo Rodriguez
ext\texmf\fonts. Dear Jean-Pierre, only if you don’t have no way to install fonts on the OS directory for fonts (%WINDIR%\Fonts in Windows), I would use (in that order): 1. %USERPROFILE%\texmf\texmf-fonts\, or as last option 2. [context-dir]\tex\texmf-local\texmf-fonts\ Excuse me if this is

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
nd related Unicode control characters Hi, I found it ... \startbuffer \definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d \stopbuffer \getbuffer \start \setcharacterstripping[1] \getbuffer \stop so now, being its only user, you have to wikify it ... Ah, there it is! Many tha

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen
Hi, I found it ... \startbuffer \definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d \stopbuffer \getbuffer \start \setcharacterstripping[1] \getbuffer \stop so now, being its only user, you have to wikify it ... Hans

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
53:03 AM Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters 1. Can this approach be generalized to get what we want, viz., a way to toggle the symbols? given the inconsistency in what is or is not in a font the only way out is to have ou

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
ssed. Of course it doesn't matter what fallback font one uses, as long as it has no control-character symbols. 1. Can this approach be generalized to get what we want, viz., a way to toggle the symbols? given the inconsistency in what is or is not in a font the only way out is to have our own

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
ack font one uses, as long as it has no control-character symbols. 1. Can this approach be generalized to get what we want, viz., a way to toggle the symbols? 2. \enabletrackers[typesetters.nbsp] gives a colored box, which is at least something.. But how can we get the NBSP symbol that's alerady

[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual they should work. Hraban \setuppapersize[A5,landscape] \useMPlibrary[dum] \definecolumnset[Two][n=2] \starttext \startcolumnset[Two] \dorecurse{5}{1\recurselevel\samplefile{lorem}\par} \startplacefigure[location=page

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread vm via ntg-context
{\protecteddetokenize {#1}}tab{\typeparameter \c!tab }method{\p_buff_op ... \type{ hello } You injected something that confused the parser, maybe by using some Lua call. and it shows {hello} on the page ___ If your

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Mikael Sundqvist
gt; tex error on line 2 in file Z:/test.tex: Control sequence > expected instead of undefined > > \buff_verbatim_type_normal > #1->\buff_verbatim_initialize_type_two \dostarttaggedchained \t!verbatim > \currenttype \??type \clf_type data{\protecteddetokenize > {#1}}tab{\

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-18 Thread Michael Loescher
There seems to be something wrong with the \type command. MWE: \starttext \type{hello} \stoptext gives an error: tex error > tex error on line 2 in file Z:/test.tex: Control sequence expected instead of undefined \buff_verbatim_type_normal #1->\buff_verbatim_initialize_ty

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
\stopCode \stopchapter \stoptext Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks : > > > > On 16 Sep 2023, at 21:28, Jeroen wrote: > > > > This MWE has a framed text for some verbatim text (code) with as title > ref. a counter 1, 2, etc.. Is there a way to change

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and th

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-17 Thread Michael Loescher
Hello, after the update the latest luametatex.pdf cannot be opened, the file is corrupted. Am 17.09.2023 um 10:01 schrieb Cron Daemon: receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-17 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] rotation weirdness

2023-09-16 Thread Hans van der Meer via ntg-context
that the call to \rotate is the culprit.I enclose an MWE with a little jpeg figure as illustration. yours sincerelydr. Hans van der Meer\def\formattitle#1{\color[\boxtitlecolor]{#1\strut}}\def\boxfigurerotate#1#2{% \rotate[rotation=10]% {% \externalfigure[#1]% [rulethickness=4pt,width=100pt,height=50pt

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
can see the issue: effectively, the streams have worked for frontmatter (Foreword), but when I get to Chapter 1 in bodymatter, they are reversed. You will see that. I can't work out why, but you might be able to see what is causing that. And of course, I have two other problems to work out before I could

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
' using frontmatter, bodymatter etc. etc. Since it would be too long and complicated an MWE to place here in the list to demonstrate my problem, I will send you the file separately so you can see the issue: effectively, the streams have worked for frontmatter (Foreword), but when I get to Chapter

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
for these chapters? Thanks, Jeroen Untried: 1. Define a new section head that clones chapter (\definehead[NPChapter][chapter]). 2. Modify the new section head so that it does not do a break (\setuphead[NPChapter][page=no]). 3. Use the new section head instead of \chapter or \startchapter

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
On 9/14/2023 5:49 PM, Jeroen wrote: In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen Untried: 1

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
I get to Chapter 1 in bodymatter, they are reversed. You will see that. I can't work out why, but you might be able to see what is causing that. And of course, I have two other problems to work out before I could use this in a real production scenario: there is the one you have already

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
On 13 Sep 2023, at 07:47, jbf wrote: > > When I come to bodymatter and Chapter 1, again it works, except that the > positions of the languages are reversed, so I end up with vi on the left and > en on the right. By Chapter 2 we are back to the correct position once more >

[NTG-context] Re: Using structureuservariables before the heading

2023-09-14 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 12.09.2023 um 23:32: You need a box to get the author on a separate line. % \define[2]\ChapterCommand %   {\vbox %  {\structureuservariable{author} %  \blank %  #1\space#2}} \starttexdefinition protected ChapterCommand #1#2   \vbox\bgroup

[NTG-context] Re: tiffs: autoconversion via graphicsmagick produces invalid pdfs

2023-09-13 Thread denis.maier
rters.tif.default = convert \stopluacode \setfigureconversion[tif][jpg] % has no effect \defineexternalfigure[tif][conversion=jpg] \starttexdefinition includegraphics #1 \splitfilename{#1} \processaction[\splitofftype][ tif=>{\externalfigure[#1][tif]}, default=>{\externa

[NTG-context] streams reversed?

2023-09-13 Thread jbf
) in frontmatter. When I come to bodymatter and Chapter 1, again it works, except that the positions of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right). I want to know why

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
erros. You need a box to get the author on a separate line. % \define[2]\ChapterCommand % {\vbox % {\structureuservariable{author} % \blank % #1\space#2}} \starttexdefinition protected ChapterCommand #1#2 \vbox\bgroup \structureuservariable{author} \blank #1\space#

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
or}\blank},     beforesection={Beforesection: \structureuservariable{author}\blank},     insidesection={Insidesection: \structureuservariable{author}\blank},     after={After: \structureuservariable{author}\blank},     ] \def\myChapterCommand#1#2{\structureuservariable{author}\space\blank

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
le{author}\blank}, ] \def\myChapterCommand#1#2{\structureuservariable{author}\space\blank} \define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2} %\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} % does not work % \starttexdefinition myChapterComma

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
={Insidesection: \structureuservariable{author}\blank}, after={After: \structureuservariable{author}\blank}, ] \def\myChapterCommand#1#2{\structureuservariable{author}\space\blank} \define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2} %\def\myChapterCommand#1#2

[NTG-context] Using structureuservariables before the heading

2023-09-12 Thread denis.maier
after={After: \structureuservariable{author}\blank}, ] \def\myChapterCommand#1#2{\structureuservariable{author}\space\blank} \define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2} %\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} % does not work \sta

[NTG-context] Re: \dontleavethemode

2023-09-12 Thread Wolfgang Schuster
error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. mtx-context | fatal error: return code: 1 You get a error message because you have a spelling error in the name of the \dontleavehmode command. You wrote "dontleave*the

[NTG-context] \dontleavethemode

2023-09-12 Thread Ursula Hermann
{\blackrule[color=black, height=0.05ex, width=1cm]\\Me}\blackrule[color=black, height=0.05ex, width=4cm] there is no pdf after compiling. I get: Command Line: context.exe --synctex=-1 "pablo.tex" Startup Folder: C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\tex\context

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
Hi, xml.text(t) is safer than directly accessing t.dt[1]. Note: you may need to strip some XML tags from that content. If the element is not straight-up data but has nested elements, then this will return the full xml representation instead: A short title=> ‘A short ti

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread denis.maier
Ok, I've found a way, see below. But maybe someone has some nice lua (or other) tricks to share... (I'm not sure accessing t.dt[1] is particularly safe when operating on nested structures.) Best, Denis \startbuffer[test] A short title asdf asdf asdf jklö jklö jklö A longer

[NTG-context] XML: flush to lua function

2023-09-11 Thread denis.maier
end end \stopluacode \startxmlsetups xml:ink:ink-title:marking %\ctxlua{markingLength(\xmlflush{#1})} % does not work \ctxlua{markingLength{"1 2 3 4"}} \stopxmlsetups While the function works, I cannot use xmlflush here. How can I p

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
) or the columndistance key (when you have invisible borders). % Alternative 1: % \setupTABLE[frame=on,offset=0pt,columndistance=1em] % Alternative 2: \setupTABLE [frame=off,offset=0pt,loffset=.5em,roffset=.5em] \setupTABLE [column] [first] [loffset=0pt] \setupTABLE [column] [last]  [roffset=0pt

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Jim
who wants to do >> this. Can anyone point me in the direction of a working example? >> And am I misinterpreting the wiki, or is the wiki page broken? > 1. You have to change the value of the incrementnumber key for title, > subject etc. > 2. You have to specify which se

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Wolfgang Schuster
since even the wiki doesn't show the "No number" entry in the \completecontent. I find it hard to imagine that I am the only Context user who wants to do this. Can anyone point me in the direction of a working example? And am I misinterpreting the wiki, or is the wiki page broken? 1

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
for chapter 1, codefragment 1, 2 etc. with the possibility that in the text I can refer to the codefragment like \in{codefragment\space}[code:ccpsample] similar as to tables and figures? Thanks Jeroen %% % MWE1 %% \startuseMPgraphic{mpos:par:myexample} path p; for i = 1

[NTG-context] Re: Text runs out of Verbatim Frame

2023-09-08 Thread Wolfgang Schuster
for if the situation asks for it to have it only have a frame half pagewidth, like a width=0.5\textwidth Thanks Jeroen \unprotect \startuseMPgraphic{mpos:par:myexample} path p; for i = 1 upto nofmultipars : p := multipars[1] topenlarged 4pt bottomenlarged 4pt cornered 2mm ; fill p withcolor 0.95white

[NTG-context] Text runs out of Verbatim Frame

2023-09-08 Thread Jeroen
a frame half pagewidth, like a width=0.5\textwidth Thanks Jeroen \unprotect \startuseMPgraphic{mpos:par:myexample} path p; for i = 1 upto nofmultipars : p := multipars[1] topenlarged 4pt bottomenlarged 4pt cornered 2mm ; fill p withcolor 0.95white ; draw p withcolor black withpen pencircle

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
better define start and stop separately? \def\startMyFigure[#1]{ % e.g. use utilities.parsers.settings_to_hash(#1) } \def\stopMyFigure{} Probably I’ll need to catch the content (\externalfigure, might become more) and use it in a \setlayer – so perhaps something like \definebuffer[MyFigure

[NTG-context] how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
\startMyFigure[#1]{ % e.g. use utilities.parsers.settings_to_hash(#1) } \def\stopMyFigure{} Probably I’ll need to catch the content (\externalfigure, might become more) and use it in a \setlayer – so perhaps something like \definebuffer[MyFigure] \define\stopMyFigure{% \setlayer[page]{\getMyFigure

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
\xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|fig}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:fig \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:graphic \externalfigure

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Fabrice L
> > Here is what is going on: > > `tikzlibrarycalendar.code.tex` contains the line: > > \pgfutil@usemodule{pgfcalendar} > > In `generic/pgf/utilities/pgfutil-context.def`, \pgfutil@usemodule is defined > as: > > \def\pgfutil@usemodule#1{\usemodule[#1]} >

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Aditya Mahajan
ith > all the modules (with the new script from ConTeXt Garden), but nothing works. Here is what is going on: `tikzlibrarycalendar.code.tex` contains the line: \pgfutil@usemodule{pgfcalendar} In `generic/pgf/utilities/pgfutil-context.def`, \pgfutil@usemodule is defined as: \def\pgfuti

[NTG-context] (no subject)

2023-09-05 Thread Ursula Hermann
}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula \stoptext I get: Command Line: context.exe --synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format':

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
Pablo, Thanks, even though I use LMTX, only this form works: [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax] Thanks Jeroen Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez : > On 9/4/23 18:09, Jeroen wrote: > > The following MWE shows pagenumbering starting at the se

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
ldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1}attribute = \xmlatt{#1}{value}\elsecontent = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi reversed:\space\ifxmlse

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-04 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:09 PM, Jeroen wrote: The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 18:09, Jeroen wrote: > The following MWE shows pagenumbering starting at the second page with > page number 1. With the totalnumberofpages we end up with one page too > many. Is there a way to reduce this with 1? Hi Jeroen, this might do the work (LMTX only): [\p

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setcounter [userpage] [0

[NTG-context] After compiling

2023-09-04 Thread Ursula Hermann
I get: Command Line: context.exe --synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./blackrule1.tex" --socket --shell-esca

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
--synctex=-1 "blackrule1.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./blackrule1.tex" --socket --shell-escape --fmt=C:/Users/Hermann/Downloa

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
\xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynode node=\xmltag{#1}:\crlf ifxmlselfempty-else-fi:\space \ifxmlselfempty{#1} attribute = \xmlatt{#1}{value} \else content = \xmlflush{#1} \fi \crlf ifxmlselfempty-else-fi reversed:\space \ifxmlselfempty{#1} content = \xmlflush{#1} \else

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Wolfgang Schuster
jbf schrieb am 04.09.2023 um 08:34: I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6, Section 3  7, Section 4   8, Section 5   9

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-09-03 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
   \xmlsetsetup{\xmldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups\xmlregistersetup{xml:mysetups}\startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1} attribute = \xmlatt{#1}{value}\else content = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
tination-doc.pdf) /NewWindow true /S /GoToR >> endobj A GoToE destination for "\attachment[file=destination-doc.pdf, method=hidden]" would read: 1 0 obj << /S /GoToE /D [ 14 /Fit ] /NewWindow true /T << /R /C

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
oR >> endobj A GoToE destination for "\attachment[file=destination-doc.pdf, method=hidden]" would read: 1 0 obj << /S /GoToE /D [ 14 /Fit ] /NewWindow true /T << /R /C /N (destination-doc.pdf) >> >> endobj With Embedde

[NTG-context] Re: Building luametatex with Lua symbols exposed

2023-09-02 Thread Michal Vlasák
p, > when an external library is loaded in Lua. Any ideas on how to solve it? Hi Jairo, you need to expose _dynamic_ symbols in your luametatex binary. If you are using Linux, just adding the following to the CMake invocation line should work: -DCMAKE_EXECUTABLE_ENABLE_EXPORTS=1 For example

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
(or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
, independent from font size. Could anyone confirm the issue? I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1}   {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par} \stoptext Wolfgang

[NTG-context] Fwd: Kerning feature not working

2023-08-30 Thread Hans Hagen
old mechanism, maybe time for an upgrade with merged vectors) \definecharacterspacing [myspacing] \setupcharacterspacing [myspacing] ["27E8] [right=0.25,alternative=1] \setupcharacterspacing [myspacing] ["27E9] [left=0.25,alternative=1] and then \setcharacterspacing[myspacing] Hans -

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
Finally I saw the problem. Calling \xmlfilter{#1}{./node/command(demo:attribute:node)} is the right way. Sorry for the noise. dr. Hans van der Meer > On 30 Aug 2023, at 13:49, Hans van der Meer via ntg-context > wrote: > > This line of code comes from the xml documentat

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
This line of code comes from the xml documentation (page 31): \xmlfilter{#1}{./node[@type=="cleanup"]} It should select among the 's those with . However, this node is not selected in the call to \xmlfilter. Where am I wrong? MWE follows % failure to typeset attribute selected. \setu

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-08-27 Thread Cron Daemon
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip

[NTG-context] Re: XML: Correct usage of hash symbol in url / new upload

2023-08-27 Thread Hans Hagen via ntg-context
this: \def\foo#1{#1 test ##} \def\foo#1{#1 test\def\more##1{(##1)}} the internal representation of #1 is a reference to parameter 1 while the ## becomes one # (cc parameter) in the second exmaple followed by a character 1 (cc other) then, when tex serializes e.g. in tracing it duplicates the hash

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread Hans Hagen
On 8/25/2023 1:45 PM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: Hans Hagen Gesendet: Freitag, 25. August 2023 09:06 An: Maier, Denis Christian (UB) ; mailing list for ConTeXt users Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute On 8/25/2023

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
but no upload > So, that would mean that the double checking is only necessary for find, not for contains. And indeed the example below works. Is that correct or are there any unwanted side-effects? \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|elem

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
\xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startluacode function xml.finalizers.tex.url(e,a) local u = #e > 0 and

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
; > > I'm trying to check whether an attribute contains (or, actually starts > > with) a > given string. > \xmldoifelse{#1}{.[@class and contains(@class,'abc')]}{Yes}{No} > \xmldoifelse{#1}{.[@class and find(@class,"abc")]}{Yes}{No} Thanks for your help. I can u

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Hans Hagen
% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
One way would be to do the search in Lua; when you have multiple searches to perform, that may be the easiest way to go. For example: \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup

[NTG-context] xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element \xmlfilter{#1}{./find(attribute('class'), 'abc

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
context.im("a^2") > context.stopxcell() > context.startxcell{ width = "1cm" } > context.im("b") > context.stopxcell() > context.startxcell{ width = "1cm" } > context.im("2b^2

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