[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter[three]{Second chapter} \stoptext I see that the directive for link

[NTG-context] Gray gradient with Metapost

2023-10-05 Thread Fabrice Couvreur
Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Thanks. Fabrice \starttext \startMPcode u=1.2cm; interim ahangle := 30; z0=(0,0); z1=(3u,0

[NTG-context] How can I use a variable for a MetaPost coordinate ?

2023-10-04 Thread peter.hopcroft--- via ntg-context
on it. Is there a way of doing calculations on the coordinates for the draw using ConTexT variables like \textheight? Thank you, Peter Hopcroft -- \starttext Some text \startMPcode pickup pensquare scaled 1pt; draw (0mm,0mm)--(0mm,\textheight) withcolor red \stopMPcode More

[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
file called "three_lines.txt" to be created in the local directory containing the lines: one two three begin \setuplinenumbering[location=text,style=\small\tt] \starttext Location=text not working in main body \typefile[numbering=line]{three_lines.txt} But it does work i

[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
%% For PDF/A \setupbackend[ format={pdf/a-1b:2005}, % or pdf/a-1a:2005 profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=ISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=auto ==> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=start,metho

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200 Marco Patzer wrote: > What about: > > \unit{10 um} > \unit{10 µm} > > Can I assign µ to mean micro (prefix)? Found it: \registerunit [prefix] [µ=micro] \starttext \unit{10 micro meter} \crlf \unit{10 µm} \stoptext Should this be the d

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Wolfgang Schuster
Marco Patzer schrieb am 03.10.2023 um 12:31: Hi! I struggle using the unit Farad (unit of capacitance): The unit "farad" exists. \starttext %% prints 10 10 ft \unit{10 F} \unit{20 ft} \registerunit [F=Farad] \setupunittext [Farad=F] %% prints 10 F 20 F⋅t \unit{10 F} \

[NTG-context] Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
Hi! I struggle using the unit Farad (unit of capacitance): \starttext %% prints 10 10 ft \unit{10 F} \unit{20 ft} \registerunit [F=Farad] \setupunittext [Farad=F] %% prints 10 F 20 F⋅t \unit{10 F} \unit{20 ft} \stoptext When registering Farad as new unit it messes up feet. This looks like

[NTG-context] Frontpage and Titlepage

2023-10-02 Thread Jeroen
] \definealternativestyle [authorstyle] [\rm\tfb] [] \definealternativestyle [titlestyle] [\rm\bfd] [] \starttext \startmakeup [frontpage] \authorstyle {The Author} \blank \titlestyle {This is the Title} \stopmakeup \startmakeup [titlepage] \titlestyle {This is the Title} \stopmakeup

[NTG-context] bibliography questions

2023-10-02 Thread Henning Hraban Ramm
My example is setup as advised in the manual: """ %\mainlanguage[de] \usebtxdataset[beispiel][bib_example.bib] \setupbtx[dataset=beispiel] %\usebtxdefinitions[apa] \definebtxrendering[beispiel][apa][dataset=beispiel,group=beispiele] \starttext \placelistofpublications[b

[NTG-context] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into the footer rather than starting a new page. MWE for ConTeXt ver: 2023.09.26 18:19 LMTX :- \setuppapersize [A4] \showframe \starttext Knuth in knolumns \dorecurse{30}{\crlf} \startcolumns \input knuth \stopcolumns

[NTG-context] Re: formula alignment for mathalign

2023-09-28 Thread Mikael Sundqvist
Hi, On Thu, Sep 28, 2023 at 6:39 PM Aditya Mahajan wrote: > > Hi, > > The `align` parameter of `\setupformulas` is ignored in mathalign. Consider > the following MWE: > > \setupformulas[align=flushleft,leftmargin=2em] > > \starttext > \startformula &

[NTG-context] formula alignment for mathalign

2023-09-28 Thread Aditya Mahajan
Hi, The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the following MWE: \setupformulas[align=flushleft,leftmargin=2em] \starttext \startformula A = B \stopformula vs \startformula \startalign \NC A \NC B \NR \NC A \NC B \NR \stopalign \stopformula \stoptext

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

2023-09-26 Thread Wolfgang Schuster
: \showframe\showgrid\showstruts \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[quarterline]}, after={\blank[quarterline]\null}] \starttext one \startblockquote \startitemize \item a

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

2023-09-26 Thread Pablo Rodriguez
\showframe\showgrid\showstruts \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[quarterline]}, after={\blank[quarterline]\null}] \starttext one \startblockquote \startitemize \item a. \stopitemize \sto

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

2023-09-26 Thread gerard.degreve
] [ before={\blank[.125th]}, after={\blank[.125th]}] \starttext one \startblockquote \startitemize \item a \stopitemize \stopblockquote two \stoptext The blockquote disables the space after the list, but not before. Have I hit a bug or am I missing something? Many thanks for your help, Pablo

[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
e/mkxl/math-noa.lmt: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{

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

2023-09-24 Thread Pablo Rodriguez
nction <...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{o

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

2023-09-24 Thread Mikael Sundqvist
ConTexT. The problem seems to occur when using mathcases > with some ConTeXt provided fonts, including pagella. This is a minimal not > working example : > > \setupbodyfont[pagella] > > \starttext > \startformula > \delta_{ij} = > \startmathcases > \NC 1 \NC \tex

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

2023-09-24 Thread Vincent Picard
Hello, Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that won't compile with ConTexT. The problem seems to occur when using mathcases with some ConTeXt provided fonts, including pagella. This is a minimal not working example : \setupbodyfont[pagella] \star

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

2023-09-24 Thread Jean-Pierre Delange
ith the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi}   {\recursestring\input aristotle-grc\par} \ss Theano Didot: \input aris

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

2023-09-23 Thread Andres Conrado Montoya
i called the fonts with the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristotle-grc\par} \ss Theano D

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

2023-09-23 Thread Pablo Rodriguez
=*gfs* --all. I think this would do the trick. Compile the following source: \mainlanguage[agr] \definefontfamily[mainface][rm][GFS Didot] \definefontfamily[mainface][ss][Theano Didot] \setupbodyfont[mainface] \starttext \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristo

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Mikael Sundqvist
t; >> \definemathstackers[topbin][top][mathclass=\mathbinarycode] > >> > >> \definemathextensible[toprel][frownedupon]["2322] > >> \definemathextensible[topbin][frowned]["2322] > >> > >> \starttext > >> $x \frownedupon{4}

[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] problems with comments

2023-09-21 Thread Henning Hraban Ramm
hat doesn’t matter. "location=inmargin": the symbol is at the edge of the text, but not in the margin. Hraban \setupinteraction[ state=start, ] \setupcomment[ author=Don, location=inmargin, ] \starttext \samplefile{knuth} \comment[author=Me

[NTG-context] Re: \underbar in head

2023-09-21 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 07:01: However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Hans Hagen
;2322] \definemathextensible[topbin][frowned]["2322] \starttext $x \frownedupon{4} y + \frowned{!} z = 10$ \stoptext Interesting, but I think that the OP wanted to use \frown as an accent, \definemathaccent[topfake][top][offset=auto] \definemathtopaccent[topfake][frowned]["2322] \st

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Aditya Mahajan
topbin][frowned] ["2322] > > \starttext > $x \frownedupon{4} y + \frowned{!} z = 10$ > \stoptext Interesting, but I think that the OP wanted to use \frown as an accent, Aditya ___ If you

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Hans Hagen via ntg-context
] \definemathextensible[toprel][frownedupon]["2322] \definemathextensible[topbin][frowned]["2322] \starttext $x \frownedupon{4} y + \frowned{!} z = 10$ \stoptext - Hans Hagen |

[NTG-context] Re: \underbar in head

2023-09-20 Thread jbf
However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'. C

[NTG-context] Re: \underbar in head

2023-09-20 Thread Wolfgang Schuster
{text}}] but would prefer to achieve this with \setuphead \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \chapter{\samplefile{ward}} \stoptext Wolfgang ___ If your question is of interest to others

[NTG-context] Re: Libertinus error with today's version

2023-09-19 Thread Pablo Rodriguez
On 9/18/23 19:52, Rik Kabel wrote: > (Running 2023.09.18 17:40 on Windows 11 x64) > > With > > \setupbodyfont[libertinus,11pt] > \starttext > Hello > \stoptext > > I get no text output in the pdf and the following error reports: Hi Rik, I think cu

[NTG-context] Libertinus error with today's version

2023-09-18 Thread Rik Kabel
(Running 2023.09.18 17:40 on Windows 11 x64) With \setupbodyfont[libertinus,11pt] \starttext Hello \stoptext I get no text output in the pdf and the following error reports: fonts   > otf loading > loading 'G:/ConTeXt_LMTX/tex/texmf/fonts/data/public

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

2023-09-18 Thread vm via ntg-context
On 18/09/2023 17:07, Michael Loescher wrote: \starttext \type{hello} \stoptext here too (linux pop!os 22.04) something goes unexpected: ! Control sequence expected instead of undefined. \buff_verbatim_type_normal ...chained \t!verbatim \currenttype \??type \clf_type data

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

2023-09-18 Thread Michael Loescher
Am 18.09.2023 um 16:20 schrieb Hans Hagen: On 9/18/2023 3:58 PM, Michael Loescher wrote: 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 expec

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

2023-09-18 Thread Mikael Sundqvist
Hi, works as expected here, with the latest. /Mikael On Mon, Sep 18, 2023 at 4:04 PM Michael Loescher wrote: > > There seems to be something wrong with the \type command. > > MWE: > \starttext > \type{hello} > \stoptext > > gives an error: > tex error &

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

2023-09-18 Thread Hans Hagen
On 9/18/2023 3:58 PM, Michael Loescher wrote: 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 what platform? looks l

[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 Jeroen
yfont=11pt, style={\tt}] \defineenumeration [Code] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}.}] \starttext \startchapter [title=first] \startCode [title={The First Title}, refer

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

2023-09-16 Thread Jeroen
CountFrame} {} \defineenumeration [Counter] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText] \starttext \startchapter [title=first] \startCounter [title={The First Title}, reference={tit1}] Some verbatim text \stopCounter \startCounte

[NTG-context] stream sync (or \pushoutputstream)

2023-09-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \showgrid \setuplayout[grid=yes] \starttext \startoutputstream[one] \startcolor[red] \dorecurse{4}{\input knuth\par\pushoutputstream} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor

[NTG-context] rotation weirdness

2023-09-16 Thread Hans van der Meer via ntg-context
,frame=on,framecolor=\boxframecolor,]% }% \formattitle{#2}%}\def\boxfigure#1#2{% \externalfigure[#1]% [rulethickness=4pt,width=100pt,height=50pt,frame=on,framecolor=\boxframecolor,]% \formattitle{#2}%}\def\boxtitlecolor{blue}\def\boxframecolor{blue}\starttext\ConTeXt\ \contextversion\blankProblem

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
ill have problems then you'll need to post a sample that actually shows the problem. I'm using ConTeXt ver: 2023.09.04 19:15. \starttext \startoutputstream[one] \startcolor[red] \dorecurse{5}{\chapter{Stream One} \dorecurse{10}{\input knuth\par} } \stopcolor \stopoutputstream \st

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Bruce Horrocks
> On 15 Sep 2023, at 13:56, Taco Hoekwater wrote: > > Like this? > > \definehead[mychapter][chapter] > \setuphead[mychapter][page=no] Taco beat me to it... a simple example: \starttext \chapter{First} Some text \chapter{Second} More text \chapter{Third} More text

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater
gt; >> Either use >> >> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] >> >> Or, nicer: >> >> \startsectionblockenvironment[backpart] >> \setuphead[chapter][page=no] >> \stopsectionblockenvironment >> >> >>> Best, >>> Den

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
d the sample code you got from Wolfgang to include chapter headings and it all looks fine to me[1] - the red text is all on the right hand side and the greeen text is all on the left. If this doesn't help and you still have problems then you'll need to post a sample that actually shows th

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Rik Kabel
apter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] \starttext \chapter{One} \input knuth \chapter{Two} \input ward \startbackmatter \chapter{Three} \input knuth \chapter{Four} \input ward \stopbackmatter \stoptext Von: Jeroen Gesendet: Donnersta

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater
ge=yes] > \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] > \starttext > \chapter{One} > \input knuth > \chapter{Two} > \input ward > \startbackmatter > \chapter{Three} > \input knuth > \chapter{Four} > \input ward > \stopbackmatter > \s

[NTG-context] Re: Chapters without new page

2023-09-15 Thread denis.maier
]}] \starttext \chapter{One} \input knuth \chapter{Two} \input ward \startbackmatter \chapter{Three} \input knuth \chapter{Four} \input ward \stopbackmatter \stoptext Von: Jeroen Gesendet: Donnerstag, 14. September 2023 23:50 An: mailing list for ConTeXt users Betreff: [NTG-context] Chapters without

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
shows the problem. I'm using ConTeXt ver: 2023.09.04 19:15. \starttext \startoutputstream[one] \startcolor[red] \dorecurse{5}{\chapter{Stream One} \dorecurse{10}{\input knuth\par} } \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorec

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
t. If this doesn't help and you still have problems then you'll need to post a sample that actually shows the problem. I'm using ConTeXt ver: 2023.09.04 19:15. \starttext \startoutputstream[one] \startcolor[red] \dorecurse{5}{\chapter{Stream One} \dorecurse{10}{

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

2023-09-14 Thread Wolfgang Schuster
n use the \protected modifier when you create \Mycommand. \starttext \def\Mycommand#1{#1}% fails %\protected\def\Mycommand#1{#1}% works \edef\CheckMycommand{\Mycommand} \ifempty\CheckMycommand \tex{Mycommand} is empty \else \tex{Mycommand} has content \fi \stoptext If just found the follo

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

2023-09-13 Thread denis.maier
JPEG and default TIFF converters to the above function. figures.converters.tif.pdf = convert figures.converters.tif.jpg = convert figures.converters.tif.default = convert \stopluacode \setfigureconversion[tif][jpg] % has no effect \starttext \externalfigure[t

[NTG-context] My example, with \blackrule, works perfect

2023-09-13 Thread Ursula Hermann
]\\}\blackrule[color=black, height=0.05ex, width=4cm] \starttext \margintext{2.1.1}\ {Ach ist das schön, dass du da bist.} \stoptext Uschi ___ If your question is of interest to others as well, please add an entry to

[NTG-context] streams reversed?

2023-09-12 Thread jbf
this one. Julian The original (Wolfgang) code is as follows: \starttext \startoutputstream[one] \startcolor[red] \dorecurse{10}{\input knuth\par} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{10}{\input zapf\par} \stopcolor

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

2023-09-12 Thread Wolfgang Schuster
le{author} %   Test %   \blank %   #1\space#2 % \stoptexdefinition \starttext \myChapterCommand{1}{asdf} \startchapter[title=First][author=First Author] \input knuth \stopchapter \startchapter[title=Second][author=Second Author] \input knuth \stopchapter \setuphead[chapter]     [     bef

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

2023-09-12 Thread denis.maier
ition myChapterCommand #1 #2 % doesn't work either, but at least blanks should work % \structureuservariable{author} % Test % \blank % #1\space#2 % \stoptexdefinition \starttext \myChapterCommand{1}{asdf} \startchapter[title=First][author=First Author] \input knuth \stopchapter \s

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

2023-09-12 Thread denis.maier
{\structureuservariable{author}\blank #1\space#2} % does not work % \starttexdefinition myChapterCommand #1 #2 % doesn't work either, but at least blanks should work % \structureuservariable{author} % Test % \blank % #1\space#2 % \stoptexdefinition \starttext \myChapterCommand{1}

[NTG-context] Using structureuservariables before the heading

2023-09-12 Thread denis.maier
lank}, 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

[NTG-context] Re: \dontleavethemode

2023-09-12 Thread Wolfgang Schuster
Ursula Hermann schrieb am 12.09.2023 um 11:19: Dear List, I have done an little example with a \blackrule: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \starttext \margintext{\blackrule[color=black, height=0.05ex

[NTG-context] \dontleavethemode

2023-09-12 Thread Ursula Hermann
Dear List, I have done an little example with a \blackrule: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \starttext \margintext{\blackrule[color=black, height=0.05ex, width=1cm]\\Me

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

2023-09-12 Thread Taco Hoekwater
res = table.concat(resWords, " ") .. " …" > else res = t.dt[1] > end > context(res) > end > \stopluacode > \startxmlsetups xml:chapter:title:marking > \xmlfun

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

2023-09-11 Thread denis.maier
end context(res) end \stopluacode \startxmlsetups xml:chapter:title:marking \xmlfunction{#1}{getMarking} \stopxmlsetups \startxmlsetups xml:chapter:title \xmlflush{#1} \stopxmlsetups \setupheadertexts[chapter] \startt

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

2023-09-11 Thread Wolfgang Schuster
] \starttext \bTABLE    \bTR   \bTD Cell 1:1 \eTD   \bTD Cell 1:2 \eTD   \bTD Cell 1:3 \eTD    \eTR    \bTR   \bTD Cell 2:1 \eTD   \bTD Cell 2:2 \eTD   \bTD Cell 2:3 \eTD    \eTR    \bTR   \bTD Cell 3:1 \eTD   \bTD Cell 3:2 \eTD   \bTD Cell 3:3 \eTD    \eTR \eTABLE

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

2023-09-10 Thread Jim
at 21:38 (+0200), Lutz Haseloff wrote: > Hi Jim, > perhaps does this work for you? > > \setuplist[chapter][headnumber=no] > \setuphead[chapter][number=no] > \starttext > \completecontent > \page > \chapter{Chapter one} > \input knuth > \chapter{Chapt

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

2023-09-09 Thread Jim
ecify which sections are shown in the table of content > because by default only the numbered sections are listed. > begin example 1 > \setuphead [title]  [incrementnumber=list] > \setuphead [subject]    [incrementnumber=list] > \setuphead [subsubject] [incrementnumber=list] >

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

2023-09-09 Thread Lutz Haseloff
Hi Jim, perhaps does this work for you? \setuplist[chapter][headnumber=no] \setuphead[chapter][number=no] \starttext \completecontent \page \chapter{Chapter one} \input knuth \chapter{Chapter two} \input ward \stoptext Greetings Lutz Am 9. September 2023 20:11:55 MESZ schrieb

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

2023-09-09 Thread Wolfgang Schuster
  [incrementnumber=list] \setuphead [subject]    [incrementnumber=list] \setuphead [subsubject] [incrementnumber=list] \definehead [contentstitle] [title] \setupcombinedlist [content] [list={chapter,title,section,subject,subsection,subsubject}] \starttext \completecontent \title{Title} \subject{Subject}

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
[listingbackground]}, after=% {\stoptextbackground \blank[4*medium]}, align={flushleft,verytolerant}] \starttext \startListing this is a code example \stopListing \stoptext %% % MWE2 %% \startuseMPgraphic{FunnyFrame} picture p ; numeric w, h, o ; p

[NTG-context] Text runs out of Verbatim Frame

2023-09-08 Thread Jeroen
] [bodyfont=10pt, margin=1em, before=% {\blank[3*medium] \setupinterlinespace[line=2.4ex] \starttextbackground[listingbackground]}, after=% {\stoptextbackground \blank[4*medium]}] \protect \starttext \startListing test test test test test test test test test test test

[NTG-context] Re: # verbatim typesetting

2023-09-07 Thread Marcus Vinicius Mesquita
elow gives a pdf with two #'s instead of only one. Why is that? > > > > \starttext > > > > \startluacode > > context.type("#") > > \stopluacode > > > > \stoptext > because by default tex loves to duplicate hashes when it serial

[NTG-context] Re: # verbatim typesetting

2023-09-07 Thread Hans Hagen via ntg-context
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext because by default tex loves to duplicate hashes when it serializ

[NTG-context] # verbatim typesetting

2023-09-07 Thread Marcus Vinicius Mesquita
Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alm

[NTG-context] Re: Vertical Space between Text and Itemize List

2023-09-06 Thread Mikael Sundqvist
Hi, You can use before, inbetween and after. \setupitemgroup [itemize] [inbetween={\blank[1cm]}, before={\blank[2cm]}, after={\blank[3cm]}] \starttext \samplefile{ward} \startitemize \dorecurse{4}{ \startitem \samplefile{knuthmath} \stopitem } \stopitemize \samplefile{ward} \stoptext

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

2023-09-06 Thread Hans Hagen via ntg-context
related to XML): \starttext \externalfigure[test two spaces.pdf] \externalfigure[test not two spaces.pdf] \stoptext I don‘t know whether this is intended or not. That being said, more than one consecutive space in a file name (I would say it) is rather an exception than the rule

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

2023-09-06 Thread Pablo Rodriguez
On 9/6/23 12:28, denis.ma...@unibe.ch wrote: > Hi, > > I have the example below that uses the three images in the attachment. > For some reason multiple spaces encoded as %20 get merged into a single %20. Hi Denis, this is standard TeX behavior (not only related to XML):

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

2023-09-06 Thread denis.maier
orn_Teigstempel"/> https://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20IV%2076%20%20Spiegel%20vorn_Teigstempel"/> \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext test two spaces.pdf Description: test two spaces.pdf test o

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\).pdf". Sorry for the obscure question, but how can I access this with "\goto{link

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
Dear list, I have the following source: \setupinteraction[state=start, display=new] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\

[NTG-context] Re: out of order sectionsblocks

2023-09-05 Thread Hans Hagen via ntg-context
ndnote] [location=none]    \starttext      \startbodymatter       \startchapter[title={Body}]        \startparagraph         \input knuthmath         \startendnote         \input knuth-gpt         \stopendnote        \stopparagraph       \stopchapter      \stopbodymatter      \startback

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Fabrice L
>> >> \usemodule[tikz] >> \usetikzlibrary[calendar] >> >> \starttext >> This should works: >> \blank >> \tikz \calendar[dates=2000-01-01 to 2000-01-31,week list]; >> \blank >> but this does not ! >> \stoptext >> >

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Aditya Mahajan
On Mon, 4 Sep 2023, Fabrice L wrote: > Dear list, > > I have a problem with tikzCalendar on a recent installation. This minimal > example : > > 8< > > \usemodule[tikz] > \usetikzlibrary[calendar] > > \starttext > This should works: > \bl

[NTG-context] (no subject)

2023-09-04 Thread Ursula Hermann
Dear List, After compiling the following example, which is from February 2021: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me

[NTG-context] Tikz calendar problem.

2023-09-04 Thread Fabrice L
Dear list, I have a problem with tikzCalendar on a recent installation. This minimal example : 8< \usemodule[tikz] \usetikzlibrary[calendar] \starttext This should works: \blank \tikz \calendar[dates=2000-01-01 to 2000-01-31,week list]; \blank but this does not ! \stoptext

[NTG-context] out of order sectionsblocks

2023-09-04 Thread Rik Kabel
The following example generates a log file which begins with the line structure   > lists > out of order sectionsblocks, maybe use \setsectionblock My larger document has over a hundred of these at the beginning. \setupnote [endnote] [location=none] \sta

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
i reversed:\space\ifxmlselfempty{#1}content = \xmlflush{#1}\elseattribute = \xmlatt{#1}{value}\fi\blank\stopxmlsetups \startxmlsetups xml:something\xmlall{#1}{./emptynode}\blank\xmlall{#1}{./notemptynode}\blank\stopxmlsetups \starttext\Con

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Rik Kabel
On 9/4/2023 12:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] no packed in current latest (LMTX only)

2023-09-04 Thread Pablo Rodriguez
Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage \stoptext MkIV gets packed lists just right. Could anyone

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Lukas via ntg-context
Hello, On 2023-09-04 12:06, Wolfgang Schuster wrote: \mainlanguage[cz] \setuphead   [section]   [distance=1.25em,    style=\bfc,    align={flushleft,broad,nothyphenated}] that's it, thank you! Lukas \setupbodyfont[8pt] \starttext \chapter{Dummy} \samplefile{lorem} \section{Speci

[NTG-context] Re: Different Layout for First Page

2023-09-04 Thread Wolfgang Schuster
that both values are reset on the following page and with \startsectionblockenvironment you can make this layout change in the style file of your document. \startsectionblockenvironment[frontpart] \setupheader[state=high] \setupfooter[state=high] \stopsectionblockenvironment \showframe \starttext

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Wolfgang Schuster
ide a *working* minimal example the next time, otherwise we have to fill the missing parts (\starttext ... \stoptext). \mainlanguage[cz] \setuphead   [section]   [distance=1.25em,    style=\bfc,    align={flushleft,broad,nothyphenated}] \setupbodyfont[8pt] \starttext \chapter{Dummy} \samplefi

[NTG-context] After compiling

2023-09-04 Thread Ursula Hermann
hich is from February 2021: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
tuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me}}\dontleavehmode\hairline \startformula a^n + b^n = c^n. \stopformula \stoptext I get: Command Line

[NTG-context] Re: Bug or feature? \numexpression and hashes

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 8:17 AM, Jairo A. del Rio wrote: Hi, list. The following fails with a "Missing number, treated as zero" error prompt: \starttext \expandedrepeat2{\expandedrepeat2{\the\numexpression#I+#P\relax\ }} \stoptext OTOH, \numexpr works seamlessly. Tested on ConTeXt 2023.09.03 19:

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
ntent = \xmlflush{#1} \else attribute = \xmlatt{#1}{value} \fi \blank \stopxmlsetups \startxmlsetups xml:something \xmlall{#1}{./emptynode}\blank \xmlall{#1}{./notemptynode}\blank \stopxmlsetups \starttext \ConTeXt\ \contextversion\blank \xmlprocessbuffer{main}{test}{} \sto

<    5   6   7   8   9   10   11   12   13   14   >