[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context
\starttext              \setupheadertexts[Name:~][Date:~__][Date:~__][Name:~]             \setupfootertexts[][pagenumber][][pagenumber]     \input knuth \stoptext I used this code to create header texts that prints Name / Date on the

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
ames to include summaries. In any case, the MWE below correctly displays the "smile" images (in *.pdf format) and incorrectly displays the smile.svg image). On the other hand, the \startMPpage script given by Hans only produces a white square. The *.log is attached. The MWE : \start

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
Thank you! The solution worked! On Friday, March 15, 2024 at 02:30:40 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 15.03.2024 um 20:50: > When I run this code, \at{page}[xyz] is unable to find the cross reference: > > \starttext > %\r

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 15.03.2024 um 20:50: When I run this code, \at{page}[xyz] is unable to find the cross reference: \starttext %\reference[xyz]{} \starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|] \NC    \reference[xyz]{} \NC \NC\NR \NC \doifnotmode{*trialtypesetting

[NTG-context] Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
When I run this code, \at{page}[xyz] is unable to find the cross reference: \starttext%\reference[xyz]{} \starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|] \NC    \reference[xyz]{} \NC \NC\NR \stoptabulate \pagebreak \at{page}[xyz] \stoptext The code does work when I uncomment line #2

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
ata [MyInMargin][ininner] \definemarginframed[MyInMargin] [topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineframed[topruletitle] [width=max, frame=off, topframe=on, rulethickness=1pt, align={justify}, extras=\dontleavehmode] \startt

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par So I have here an example from the second page: \definemargindata[inrightmargin][right][margin=margin,width=.50em\rightmarginwidth,style=,color=] \definemarginframed[MyInMargin

[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
es and principles are exactly the same for horizontal writing. > > > > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30 > > > > See my attached gongitsune.tex example how you can squeeze text in a very > > narrow header/footer. > >

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
gt; > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30 > > > > See my attached gongitsune.tex example how you can squeeze text in a very > > narrow header/footer. > > > > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3 &

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
7: > After many hours of trial-and-error, I was able to recreate the problem > in a minimum working example: > > file main.tex only contains: > > \starttext > >      \index{birds} >      \index{insects} > >      \input secondary > >      \placeindex >

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
ble to recreate the problem > in a minimum working example: > > file main.tex only contains: > > \starttext > >      \index{birds} >      \index{insects} > >      \input secondary > >      \placeindex > > \stoptext > > file secondary.tex

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 13.03.2024 um 23:27: After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}     \input secondary     \placeindex \stoptext file

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}          \input secondary          \placeindex      \stoptext file secondary.tex only contains:    \index

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
    \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[title=Standards]   \placeregister[learnedlong]     \stopchapter \stoptext ___ If your questi

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
e text height. > > • protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6 > > You're getting this for free because ruby text doesn't take up vertical > space, in case vertical text is working it would now stick into the margins > as expected. > > \s

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
ine[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
cuments (a MWE will do). \starttext \input tufte \externalfigure[smile03.pdf][conversion=mp] \stoptext It seems to me that Pablo has been struggling with the fine graining of PDF files in recent months, but I think it was more about the information contained in the PDF output than the pro

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
r] [height=\strutht,depth=\strutdp,offset=.250ex,color=red] \definebar [yourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=blue] \definebar [ourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=green] \starttext \startTEXpage[width=4

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
s attached file : \starttext \input tufte \externalfigure[smile.svg][conversion=mp] \stoptext Best//JP Le 12/03/2024 à 15:01, Henning Hraban Ramm a écrit : Am 12.03.24 um 14:53 schrieb seyal zavira: > when i want to put some SVGs in my document the svg does not     render properl

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - inter-001.pdf Description: Adobe PDF document \definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Henning Hraban Ramm
Am 12.03.24 um 14:53 schrieb seyal zavira: > when i want to put some SVGs in my document the svg does not render properly here is the code: > > \starttext > \startMPcode > draw lmt_svg [ > filename = "smile.svg"] > \stop

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
is : > > https://wiki.contextgarden.net/SVG > > Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit : > > hi all. > > > > when i want to put some SVGs in my document the svg does not render > properly here is the code: > > > > \starttext > > \startMPco

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
Hi ! Did you have a look at this : https://wiki.contextgarden.net/SVG Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit : hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename = "smil

[NTG-context] how to include an an svg file?

2024-03-12 Thread seyal . zavira
hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename = "smile.svg"] \stopMPcode \stoptext also when i look at evenmore manual at page15, for font Abelone-FREE the gradients has rendere

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
} } } \breakhere \stoptexdefinition \protect \starttext \section{Old alignment} \samplefile{knuth} \placeformula\startformula\startalign \NC \text{something} + \text{really} + \text{really} + \text{long} \NC= \sqrt{x} \NR[+] \intertext{\sa

[NTG-context] Re: Japanese

2024-03-10 Thread Jean-Pierre Delange
#fig_ad1_6 You're getting this for free because ruby text doesn't take up vertical space, in case vertical text is working it would now stick into the margins as expected. \starttext \ruledhbox{a \ruby{x}{y} b} \stoptext * In my previous

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Hans Hagen
low level commands \glyphscale \glyphxscale \glyphyscale \glyphslant \glyphweight directly can have side efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test

[NTG-context] Re: Japanese

2024-03-10 Thread Emanuel Han via ntg-context
space, in case vertical text is working it would now stick into the margins > as expected. > \starttext > \ruledhbox{a \ruby{x}{y} b} > \stoptext > > > > > > In my previous mail, I wrote wrong amounts of lines. They should be 46 > > lines on one page, while the actua

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Wolfgang Schuster
\glyphyscale \glyphslant \glyphweight directly can have side efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant  500 test \glyphslant \numericscaled2.0

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Hans Hagen via ntg-context
efects when at an outer level these are also set, so you need to accumulate, like \starttext test {\glyphscale 2000 test \glyphscale \numericscaled1.2\glyphscale test} test test {\glyphslant 500 test \glyphslant \numericscaled2.0\glyphslant test} test test {\glyphweight 100 test \glyphweight

[NTG-context] Re: How to set section title based on section content?

2024-03-09 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 09.03.2024 um 16:01: How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-09 Thread Wolfgang Schuster
n when you switch back to the upright style. \enableexperiments[fonts.compact] \definefontfamily[mainface][rm][TeX Gyre Termes] [it={style:regular, features:{default,slanted}}, sl={style:regular, features:{default,slanted}}] \setupbodyfont[mainface] \starttext \tf h\showcurrentfont[]\

[NTG-context] How to set section title based on section content?

2024-03-09 Thread Joel via ntg-context
How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth } \stopsection \stoptext The event macro runs a bunch of

[NTG-context] weird character normalization in the wiki

2024-03-09 Thread Pablo Rodriguez via ntg-context
normalization on the way]): \definefontfamily[mainface][rm][EBGaramond] \setupbodyfont[mainface, 500pt] \definecolor [tred] [r=1,t=.5,a=1] \definecolor [tblue] [b=1,t=.25,a=1] \starttext \startTEXpage[offset=1ex] \startoverlay {\color[tred]{Ά}} {\color[tblue]{Ά}} \stopoverlay

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm
={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Wolfgang Schuster
={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Pablo Rodriguez via ntg-context
: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d\\ \stopTEXpage \stoptext LMTX gets b, c and d in slanted form. LuaTeX gets only

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
in principle all the setups and definitions must be before the body of your document which begns with \starttext. Another point i sthat instead of using \par you can leave a blank line, which makes the document more readable. And you don’t need to break the lines by « hand », since ConTeXt does

[NTG-context] Re: Log entries about confusing level change

2024-03-08 Thread Hans Hagen
level change at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
7;back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [title=front1]

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-07 Thread Wolfgang Schuster
a final \relax to stop the command from scanning to additional values, e.g. in the example below \testone takes value beyond the argument because \numexpr hasn't ended yet. \starttext \def\testone#1{\the\numexpr #1 + 1 } \testone{1} + 1 \def\testtwo#1{\the\numexpr #1 + 1 \relax} \test

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
\stopsetups \startsetups tugboat:article:start \starttext \setups{tugboat:columns:presets} \setups{tugboat:banner:setup:\getvariable{tugboat}{type}} \setupheadertexts [\setups{tugboat:banner:text:article}] [pagenumber] \setuppagenumber [number=\

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
in th elow level manual and also explain this: \starttext     \ifnum  10  = 11 wrong \else okay  \fi     \ifnum  10 != 11 okay  \else wrong \fi     \ifnum  10 !> 11 okay  \else wrong \fi     \ifnum  10 !< 11 wrong \else okay  \fi     \ifnum  10 ≤  11 okay  \else wrong \fi     \ifnum  10

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Hans Hagen
this: \starttext \ifnum 10 = 11 wrong \else okay \fi \ifnum 10 != 11 okay \else wrong \fi \ifnum 10 !> 11 okay \else wrong \fi \ifnum 10 !< 11 wrong \else okay \fi \ifnum 10 ≤ 11 okay \else wrong \fi \ifnum 10 ≥ 11 wrong \else okay \fi \ifnum 10 ≰ 1

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
e. Many thanks for your reply, Wolfgang. Now I have the minimal sample: \startbuffer[demo] author text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc}{xml:*} \xmlsetsetup{\xmldocument} {(div|section)[@id=&#

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
ction(n) context(n + ((n % 4 == 0) and 1 or (5 - n % 4))) end } \stopluacode \unprotect \def\beforequadruplenumber#1{\clf_beforequadruplenumber\numexpr#1\relax} \def\afterquadruplenumber #1{\clf_afterquadruplenumber \numexpr#1\relax} \protect \starttext \dorecurse{20}{\recurselevel\space = \beforequ

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par {\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aus-\par sage h(m, f) sei ”m ist

[NTG-context] Re: \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm
: 2024.02.22 18:31 LMTX fmt: 2024.2.22). Can someone try on MkIV? """ \usesymbols[nav] \starttext \showsymbolset[nav] \stoptext """ You pass the wrong name to \showsymbolset. \usesymbols[nav] \starttext \showsymbolset[navigation 1]\page \showsymbolset[navigation 2]\

[NTG-context] Re: \showsymbolset is noop

2024-03-05 Thread Wolfgang Schuster
try on MkIV? """ \usesymbols[nav] \starttext \showsymbolset[nav] \stoptext """ You pass the wrong name to \showsymbolset. \usesymbols[nav] \starttext \showsymbolset[navigation 1]\page \showsymbolset[navigation 2]\page \showsymbolset[navigatio

[NTG-context] \showsymbolset is noop

2024-03-05 Thread Henning Hraban Ramm
The \showsymbolset has no output any more, apparently already for some time. I checked on COW (ConTeXt ver: 2022.12.22 22:17 LMTX fmt: 2022.12.23) and my local installation (ConTeXt ver: 2024.02.22 18:31 LMTX fmt: 2024.2.22). Can someone try on MkIV? """ \usesymbols[

[NTG-context] enhancing documentation: initials

2024-03-05 Thread Henning Hraban Ramm
udes the mark in the initial, and it works only with a few languages, e.g. English and French, but not e.g. German or Dutch: """ \mainlanguage[de] \setuppapersize[A6] \setupinitial[n=2,color=orange,] \starttext \start \setupinitial[method=first] \placeinitial \quotation{Keine andere

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
] Re: Local alternative to \input With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment

[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread Hans Hagen via ntg-context
On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a

[NTG-context] Re: Local alternative to \input

2024-03-03 Thread Jeroen
With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment \startenvironment bbb \samplefile

[NTG-context] missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
Dear list, this issue has been bugging me for some time: \startbuffer[demo] author title text \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{code|meta|text}{xml:*} \stopxmlsetups \xmlregistersetup

[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
stick into the margins as expected. \starttext \ruledhbox{a \ruby{x}{y} b} \stoptext In my previous mail, I wrote wrong amounts of lines. They should be 46 lines on one page, while the actual example doesn't show the 46th line. It would be important to identify the reason why only 24 cha

[NTG-context] issues scaling glyphs of Twemoji Mozilla

2024-03-02 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a} \scale[width=30em]{\cg 🇬🇧} \stoptext Using current latest from

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
, 2016 — La reproduction de ce texte est soumise à autorisation.] \defineparagraphs[TwoColumns][n=2, align={hz, hanging}] \setupparagraphs[TwoColumns][1][width=210pt, style=rm, align=left] \starttext \title{\ConTeXt, ou comment imprimer des langues non-romanes} \section {\sc Préambule} L

[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Ursula Hermann
style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1}

[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Mikael Sundqvist
Hi Uschi, Your coding style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n

[NTG-context] Re: Japanese

2024-02-29 Thread Jeong Dal via ntg-context
gt;> > >> \definefontfamily[JapaneseFont][ss][Noto Serif JP] > >>[ it={style:regular,features:{*,slanted}}, > >>sl={style:regular,features:{*,slanted}}, > >>bi={style:bold,features:{*,slanted}},force=yes] > >> > >> \definefontfami

[NTG-context] Re: Structuring a magazine or booklet

2024-02-29 Thread Jean-Pierre Delange
https://wiki.contextgarden.net/Imposition I'll read and test it. Hi Jean-Pierre, in its simplest form, a booklet may be: \setuppapersize[A4][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Ju

[NTG-context] Re: \in, \at, and labletext

2024-02-29 Thread Ursula Hermann
Dear List, So I changed my sentence a little bit, now it works perfect, as I wanted it. \setupinteraction[state=start] \starttext \reference[Rule:1]{Rule (3.1)} Formulate equivalents according to rule (\goto {3.1} [Rule:1]). \stoptext Uschi Von: Ursula

[NTG-context] Re: Japanese

2024-02-28 Thread Emanuel Han via ntg-context
mily[JapaneseFont][tt][Noto Serif JP] > >> [ it={style:regular,features:{*,slanted}}, > >> sl={style:regular,features:{*,slanted}}, > >> bi={style:bold,features:{*,slanted}},force=yes] > >> > >> \definefontfamily[JapaneseFont][math][Tex Gyre Term

[NTG-context] Re: Japanese

2024-02-28 Thread Jean-Pierre Delange
] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared Thanks all contributors, I added this to https://wiki.contextgarden.net/Chinese_Japanese_and_Korean I guess you also should set \mainlanguage[ja], I added it, also \mainlanguage[kr] for

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Wolfgang Schuster
I will try to find a trick for that, but not now. Replying to myself, this is a command to compute next numbers before and after quadruples (with application to \realpageno): \starttext \def\beforequadruplenumber#1% {\ifnum\modulonumber{4}{#1} = 1 \the\numexpr #1 + 2 \or

[NTG-context] Re: Structuring a magazine or booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
persize[A4][A3, landscape] \setuparranging[2UP] \starttext \dorecurse{28}{\section{Section}\input zapf} \stoptext I think this seems to be what you may be aiming at. Just in case it might help, Pablo ___ If your question

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
t, but not now. Replying to myself, this is a command to compute next numbers before and after quadruples (with application to \realpageno): \starttext \def\beforequadruplenumber#1% {\ifnum\modulonumber{4}{#1} = 1 \the\numexpr #1 + 2 \orelse\ifnum\modulonumber{4}{#1} = 2 \the

[NTG-context] Re: Japanese

2024-02-28 Thread Henning Hraban Ramm
[JapaneseFont,12pt] \setupruby[location=top,voffset=-2ex] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared Thanks all contributors, I added this to https://wiki.contextgarden.net/Chinese_Japanese_and_Korean I guess you also should set

[NTG-context] Re: \in, \at, and labletext

2024-02-28 Thread Pablo Rodriguez via ntg-context
rem][text=Theorem, alternative=right] \starttext \starttheorem[was-noch] This theorem has one paragraph. \stoptheorem \theorem[whatever] This theorem has other paragraph. In \in{theorem}[whatever] on \at{page}[was-noch]. \stoptext

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 11:56, Bruce Horrocks wrote: > [...] > The sample works for me if you set plain A4 and doublesided, thus: > > \setuppagenumbering[alternative={doublesided}] > \starttext > \samplefile{lorem} > \page[quadruple] > page before the quadruple (must be 3, not 4)

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Bruce Horrocks
> On 27 Feb 2024, at 10:13, Pablo Rodriguez via ntg-context > wrote: > > I’m afraid I cannot make your sample work: The sample works for me if you set plain A4 and doublesided, thus: \setuppagenumbering[alternative={doublesided}] \starttext \samplefile{lorem} \page[quad

[NTG-context] Re: \mfunction does not work with the latest upload

2024-02-28 Thread fv leung
the limits to go always below, never below or below in > display, respectively. > > /Mikael > > On Wed, Feb 28, 2024 at 1:26 AM fv leung wrote: > > > > > > \starttext > > % copy from wiki > > \definemathcommand[lcd][nolop]{\mfunction{lcd}} > &g

[NTG-context] Re: Japanese

2024-02-27 Thread Otared Kavian
] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{早}{はや}く。 いきましょう。 \stoptext Best regards: Otared > On 27 Feb 2024, at 13:55, Jeong Dal via ntg-context > wrote: > > Dear Otared, > > I am using Korean as main language. > I used use typescript file, but recently I use \defi

[NTG-context] Re: \mfunction does not work with the latest upload

2024-02-27 Thread Mikael Sundqvist
Hi, \definemathfunction [lcd] You can also add [mathlimits=yes] [mathlimits=no] [mathlimits=auto] if you want the limits to go always below, never below or below in display, respectively. /Mikael On Wed, Feb 28, 2024 at 1:26 AM fv leung wrote: > > > \starttext > % co

[NTG-context] \mfunction does not work with the latest upload

2024-02-27 Thread fv leung
\starttext % copy from wiki \definemathcommand[lcd][nolop]{\mfunction{lcd}} With \contextversion, the math command \tex{lcd} gives \m{\lcd} (nothing)! \stoptext ___ If your question is of interest to others as well

[NTG-context] \getdocumentfilename or document.files

2024-02-27 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (saved as "a.tex"): \starttext \getdocumentfilename{1} \cldcontext{document.files[1]} \getdocumentfilename{2} \cldcontext{document.files[2]} \getdocumentfilename{3} \cldcontext{document.files[3]} \stoptext I compile it with:

[NTG-context] Re: Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/27/24 10:10, Ursula Hermann wrote: >[...] > I have a question to my paragraphs: > > \definetextbackground[Paragaph][ > [...] >   \startparagraph Hi Uschi, if you define Paragaph, then you should use \startParagaph (and \stopParagaph). > \starttext Even if that works,

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-27 Thread Pablo Rodriguez via ntg-context
sted a solution for this. I’m afraid I cannot make your sample work: \setuppapersize[A5][A4, landscape] \setuparranging[2UP] \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \samplefile{lorem} \page[quadruple] page before the quadruple (must be 3, not 4) \page[yes, q

[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \startparagraph \starttext Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
] \setupbodyfont[JapaneseFont,14pt] \setupruby[location=top,voffset=-1.6ex] \setupwhitespace[big] \starttext \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext %end simple-japanese.tex Best regards: Otared > On 26 Feb 2024, at 21:32, Emanuel Han via ntg-context >

[NTG-context] Re: Japanese

2024-02-26 Thread Emanuel Han via ntg-context
input \definefontfamily [JapaneseFont] [rm] [hiraginominchopro] \setupruby[location=top,voffset=-1.6ex, ] \starttext \JapaneseFont \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext On Feb. 26 2024, at 9:08 pm, Otared Kavian wrote: > Hi all, > > Does anyone have a simple setup of fo

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] Re: Issue with italics

2024-02-26 Thread Jean-Pierre Delange
he French text (with italics), as well as the Greek text... Try this : \setuplanguage \mainlanguage[fr,agr] \definefontfamily [mainface] [rm] [EBGaramond] \setupbodyfont[mainface, 12pt] \setupbodyfontenvironment[default][em=italic] \starttext Socrate est descendu au Pirée et affirme sa s

[NTG-context] Issue with italics

2024-02-26 Thread Jean-Pierre Delange
[rm] [TeX Gyre Pagella] \setupbodyfont[mainface, 11pt] \setupbodyfontenvironment[default][em=italic] \starttext Socrate est descendu au Pirée et affirme sa satisfaction du culte rendu à cette nouvelle déesse par les Thraces; néanmoins, {\em il ne nous dit rien des prières} qu'il a

[NTG-context] Re: typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
}} \setuptyping[TEX][   option=tex,% scite sets cld   escape=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext I tried to load the module only in the section where I need it, that lead to strange errors in

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-24 Thread Wolfgang Schuster
wiki page was last updated nearly four years ago. Is anyone using updated versions of these? You can use quadruple out of the box. \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \samplefile{lorem} \page[quadruple] \samplefile{lorem} \stoptext Wol

[NTG-context] typing with scite module and escape

2024-02-24 Thread Henning Hraban Ramm
=yes, ] \starttext \startTEX \starttext/BTEX\SAY{Text starts here}/ETEX \input tufte \stoptext/BTEX\SAY{Text ends here}/ETEX \stopTEX \stoptext ___ If your question is of interest to others as well, please add an

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread Bruce Horrocks
> On 23 Feb 2024, at 13:32, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > I have the following sample file: > > \starttext > whatever > > \startluacode > luatex.wrapup( > function() >local t = {} >local pdf_file_

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread mf
Il 23/02/24 14:32, Pablo Rodriguez via ntg-context ha scritto: Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(i

[NTG-context] output filename with SHA256

2024-02-23 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(io.loaddata(pdf_file_name)) local c_r = environment.currentrun

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
withdots withcolor "red";    setbounds currentpicture to OverlayBox; \stopuseMPgraphic Thank you! (I’m sure I already used that somewhere… Must document…) ok, new feature dedicated to Hraban ... who then of courese has to document it. \starttext \starttabulate \FL[1,2] % linef

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
he graphic (OverlayBox is the size of the cell). begin example \startuseMPgraphic{dottedborder}    draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
begin example \startuseMPgraphic{dottedborder}   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] Thank you! Since I needed o

[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks
s {\ctxlua{userdata.formatTestQuestions()}} \define[4]\tareaAbc{\item #1 \startitemgroup[itemize][a] \item #2 \item #3 \item #4 \stopitemgroup} \starttext Here are some questions: \startTestQuestions In den Büchereien gibt es auch … … Kuchen. … Theater. … Workshops. In den Büchereien gibt

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Bruce Horrocks
ion (in case no blank line) tracker = 0 the_question = {} end end end \stopluacode \def\startTestQuestions {\dostartbuffer[TestQuestions][startTestQuestions][stopTestQuestions]} \def\stopTestQuestions {\ctxlua{userdata.formatTestQuestions()}} \starttext Here are

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-20 Thread Ursula Hermann
ou save a new "test-doc.tex" file in your desktop directory (which would be named "%USERPROFILE%\Desktop\test-doc.tex" [including its full path])? "%USERPROFILE%\Desktop\test-doc.tex" should contain: \starttext \input zapf \stoptext Please, compile it by sim

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Hans Hagen
for \def\foo I need four arguments so that I can correctly format the lines. How can i get the result of string.splitlines (s) separated into four arguments to pass to the macro? then \foo would be \def\foo#1SEPARATOR#2SEPARATOR#3SEPARATOR#4 I now use: \starttext %now I use the dirty trick of

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