[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
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
, " ") .. " …" > else res = t.dt[1] > end > context(res) > end > \stopluacode > \startxmlsetups xml:chapter:title:marking > \xmlfunction{#1}{getMarking} > \stopxmlsetups >

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

2023-09-12 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] \starttext \xmlp

[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
ctions 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] > \definehead [conte

[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
ject]    [incrementnumber=list] \setuphead [subsubject] [incrementnumber=list] \definehead [contentstitle] [title] \setupcombinedlist [content] [list={chapter,title,section,subject,subsection,subsubject}] \starttext \completecontent \title{Title} \subject{Subject} \subsubject{Subsubject}

[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
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 serializes >

[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 serializes t

[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 alma, pr

[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
;/> 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 one space.pdf Descrip

[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{l

[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: >

[NTG-context] (no subject)

2023-09-05 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
:\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\ConTeXt\ \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{Specifické

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

2023-09-04 Thread Wolfgang Schuster
is 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
bruary 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 \stoptext

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
,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: context.exe

[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
= \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}{} \stoptext

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

2023-09-04 Thread Wolfgang Schuster
* (which include some dummy content) examples. The example below results in section entries which are listed as a paragraph, what output do you expect here. \setuplist[chapter][alternative=c] \setuplist[section][alternative=d] \starttext \completecontent \dorecurse{2}   {\chapter{Chapter #1

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

2023-09-04 Thread Jairo A. del Rio
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:03. Thanks in advance. Best regar

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

2023-09-03 Thread Pablo Rodriguez
I’m afraid that \in{attachment}[foobar] doesn‘t generate a link in your sample. Or do you get a link border from the following source? \setupinteraction[state=start] \enabledirectives[references.border=green] \starttext \startTEXpage[offset=1em] \attachment[ file={hacker.jpg}, m

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

2023-09-03 Thread Henning Hraban Ramm
the hood, I think there’s just a “reference” key missing in \attachment or \setupattachment: \setupinteraction[state=start] \starttext \samplefile{lorem} \attachment[ file={hacker.jpg}, title={Hacker}, symbol=Paperclip, author=Hans, location=inmargin, reference=foobar, ] As you can see

[NTG-context] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
-else-fi reversed:\space\ifxmlselfempty{#1} content = \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

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

2023-09-02 Thread Pablo Rodriguez
his): \definefontfamily[mainface][rm][DejaVu Sans] [sl≃style:bf] \setupbodyfont [mainface, 100pt] \starttext \startTEXpage[offset=1ex] a {\em b} \stopTEXpage \stoptext Many thanks for your help again, Pablo

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

2023-09-02 Thread Wolfgang Schuster
][DejaVu Sans] [sl={style:tf, features:{default,slanted}}]    \setupbodyfont[maf, 8pt]    \setupfittingpage[offset=1ex]    \starttext    \startTEXpage    a {\em b}    \stopTEXpage    \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}]    a {\em b}    \stopTEXpage    \stoptext Using LMTX

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

2023-09-02 Thread Hans Hagen
:{default,slanted}}]    \setupbodyfont[maf, 8pt]    \setupfittingpage[offset=1ex]    \starttext    \startTEXpage    a {\em b}    \stopTEXpage    \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}]    a {\em b}    \stopTEXpage    \stoptext Using LMTX higher font size gives less slanted text

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

2023-09-02 Thread Wolfgang Schuster
] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext Using LMTX higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine

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

2023-09-02 Thread Pablo Rodriguez
Dear list, I have the following sample (using current latest from 2023.08.27 13:48): \setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext

[NTG-context] Fwd: Kerning feature not working

2023-08-30 Thread Hans Hagen
t;, type = "kern", nocheck = true, data = { [0x27E8] = { ["f"]= 300, ["f_l"] = 300, ["f_i"] = 300, [0xFB01] = 300, [0xFB02] = 300, }

[NTG-context] Kerning feature not working

2023-08-30 Thread Marcus Vinicius Mesquita
nocheck = true, data = { [0x27E8] = { ["f"] = 300, ["fi"] = 300, ["fl"] = 300 } } } \stopluacode \definefontfeature[kernit][mode=node,kernit=yes] \starttext \definedfont[name:ebgaramondregular*default,kernit] ⟨f ile ⟨f lame ⟨file

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
g node <\xmltag{#1}> > \xmlflush{#1} > \crlf > \stopxmlsetups > \startbuffer[attribute] > > no attribute > attribute type = cleanup > > \stopbuffer > \startbuffer[attribute2] > > no attribute > attribute type

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
ush{#1} \crlf \stopxmlsetups \startbuffer[attribute] no attribute attribute type = cleanup \stopbuffer \startbuffer[attribute2] no attribute attribute type=cleanup \stopbuffer \starttext \ConTeXt\ version\contextversion\blank \xmlprocessbuffer{demo}{attribute}{} \stoptext xml-tex-attribu

[NTG-context] Re: Bug between \definealternativestyle and makeup?

2023-08-27 Thread Alex Leray
Ouch, thanks for opening my eyes! Le 27/08/23 à 21:42, Mikael Sundqvist a écrit : Remove the period: \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}] \definemakeup [title] [doublesided=empty, pagestate=start] \starttext

[NTG-context] Re: Bug between \definealternativestyle and makeup?

2023-08-27 Thread Mikael Sundqvist
Remove the period: \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}] \definemakeup [title] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext /Mikael On Sun, Aug 27, 2023 at 9:32

[NTG-context] Bug between \definealternativestyle and makeup?

2023-08-27 Thread Alex Leray
] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

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

2023-08-25 Thread denis.maier
o match \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext ___ If your question is of interest to others a

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

2023-08-25 Thread denis.maier
tps://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20I%20104%20fol%20a1r;>IIIF-Link https://wiki.contextgarden.net/;>Other Link \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext __

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

2023-08-25 Thread denis.maier
c")]}{Yes}{No} \par % run, but no match % 5 \xmldoifelse{#1}{.[contains(@class,'abc')]}{Yes}{No} \par % causes an error % 6 \xmldoifelse{#1}{.[find(@class,"abc")]}{Yes}{No} \par % causes an error \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \s

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

2023-08-24 Thread Hans Hagen
\xmlfilter{#1}{./find(attribute('class'), 'abc')/command(xml:whatever)} \xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No} \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext

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

2023-08-24 Thread Thomas A. Schmitz
opluacode \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext Hope that gets you started. Thomas > On 24. Aug 2023, at 16:11, denis.ma...@unibe.ch wrote: > > Hi, > I’m trying to check whether an attribute contains (or, actually st

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

2023-08-24 Thread denis.maier
')/command(xml:whatever)} \xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No} \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext

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

2023-08-24 Thread Fabrice Couvreur
s > case you need to use the Lua function math.mod as in the following, which > is a completed version of what Wolfgang sent: > > > I guess I completely missed the units digit part :) > > %% begin filling-with-lua.tex > \starttext > > \startluacode > context.startxt

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

2023-08-23 Thread Wolfgang Schuster
is a completed version of what Wolfgang sent: I guess I completely missed the units digit part :) %% begin filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" }     context.startxrow{ backgro

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

2023-08-23 Thread Otared Kavian
filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" } context.startxrow{ background = "color", backgroundcolor = "lightgray" } context.sta

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

2023-08-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.08.2023 um 19:28: Hi, I'm trying to fill an array using lua. So far it works but then I don't know if it's possible. Where do you have problems (look into cld-mkiv.pdf for hins)? \starttext \startluacode context.startxtable{ align = "middle,lohi"

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
\stopsubsection \startsubsection[title={Chicago}] #6 \stopsubsection \startsubsection[title={MLA}] #7 \stopsubsection \stopsection } \starttext % Then I call the macro like this: \metadatos{spanish abstract \input knuth}{some, comma, separated, keywords, in, spanish}{english abstract

[NTG-context] Better option for a macro with lots of arguments

2023-08-22 Thread Andres Conrado Montoya
\stopsubsection \startsubsection[title={MLA}] #7 \stopsubsection \stopsection } \starttext % Then I call the macro like this: \metadatos{spanish abstract \input knuth}{some, comma, separated, keywords, in, spanish}{english abstract \input knuth}{same, comma, separated, keywords, in, english}{Apa

[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster
=no] \starttext \startsection[title=Section] \startsubject [title=Subject] \stopsubject \stopsection \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
ic expression, it is sometimes interesting to cross out > terms. With LaTeX, there is the \cancel command from the package cancel. Is > there an equivalent with conTeXt ? > > Thanks > > Fabrice > > I don't know what the cancel package gives, but since December 22 or > so, on

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
] [a,two] [ margin=2cm, before={\blank[overlay,-depth]}, after={\blank[nowhite]}, stopper=) ] %\showboxes \autofences \starttext \samplefile{ward} \startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}] \startitem \startalextable \startitem \m{6(x

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Mikael Sundqvist
ce I don't know what the cancel package gives, but since December 22 or so, one can do \starttext \setupframed [mathstrikeout] [color=darkgreen, backgroundcolor=darkred, frame=off] \startTEXpage[offset=4dk,align=flushleft] \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} \blank

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
Hi Mikael, That looks very attractive. However, with the following code, I end up with a large gap above the first row. \defineitemgroup[alex] \setupitemgroup  [alex]  [each]  [a,two]  [  margin=2cm,  before=\blank[overlay,-depth],  stopper=)  ] \showboxes \autofences \starttext \samplefile

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
m $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung , a écrit : > > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context
ntents, using what is recommended at https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break However, it does not work. Here's a MWE: \definelistextra[page][before=\page] \starttext \starttitle[title={Table of contents}] \placecontent[extras={2=page}] \stoptitle \startchapter[title=

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Andres Conrado Montoya
d at > https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break > > However, it does not work. Here's a MWE: > > \definelistextra[page][before=\page] > \starttext > \starttitle[title={Table of contents}] > \placecontent[extras={2=page}] > \stoptitle > \startcha

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
, a écrit : > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% >   \startitemize[a,horizontal,four][stopper=\)] >     \startitem >       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >     \stopitem >     \startitem >       $-3(x - \dfrac{1}{3})^

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is recommended at https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break However, it does not work. Here's a MWE: \definelistextra[page][before=\page] \starttext \starttitle[title={Table of contents}] \placecontent

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
I'd do it this way: \starttext \startitemize[n][style=\bf] \item\vtop{% \startitemize[a,horizontal,four][stopper=\)] \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem \startitem $7(x

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
Dear ConTeXt users, Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. Here's a MWE \starttext \startitemize[n][style=\bf] \item \godown[-\lineheight] \startitemize

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
}\par \stopxmlsetups \starttext \xmlprocessbuffer {mysetup}{xmlcontent}{} \stoptext Am 21.08.2023 um 17:45 schrieb Thomas A. Schmitz: Have you looked at chapter 3.10 "Testing" of the manual xml-mkiv.pdf? There are a lot of commands there that should help you, such as \xmldoiftext {#

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Carlos
> So I suggest you to save those keystrokes for other tasks. Not those, > > > > petty petty betty. I know it's hard to teach an ol' dog new tricks, > > > > but… it's worth to try! right? > > > > > > Please explain why this example (which is a valid ConTeXt document) work

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-21 Thread Keith McKay
.0/lib/libzint.dylib libzint.so 3) Then $ cd ~ $ mtxrun --generate 4) and the sample file \usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stoptext produced a barcode. — Bruce Horrocks Hampshi

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread Hans Hagen
\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p|] \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
t; \startsetups[mypenalties] > > \setdefaultpenalties > > \setpenalties\clubpenalties{1}{150} > > \setpenalties\widowpenalties{1}{1} > > \setpenalties\displaywidowpenalties{1}{1} > > \stopsetups > > > > \setuplayout[setups=mypenaltie

[NTG-context] Re: zint 2.12.0 barcode generator

2023-08-20 Thread Bruce Horrocks
y $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint $ ln -s /usr/local/Cellar/zint/2.12.0/lib/libzint.dylib libzint.so 3) Then $ cd ~ $ mtxrun --generate 4) and the sample file \usemodule[zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm]

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen via ntg-context
Carlos, > On 8/20/2023 6:41 PM, Wolfgang Schuster wrote: And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why \starttext is necessar And watch how \startTEXpage is defined. It clearly explains why that works without. Also watch how \

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen
betty. I know it's hard to teach an ol' dog new tricks, but… it's worth to try! right? Please explain why this example (which is a valid ConTeXt document) works Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
betty. I know it's hard to teach an ol' dog new tricks, but… it's worth to try! right? Please explain why this example (which is a valid ConTeXt document) works Opening a group with \starttext makes no sense because there is nothing after \stoptext. The possibility to nest \starttext

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Carlos
t; > > > So I suggest you to save those keystrokes for other tasks. Not those, > > petty petty betty. I know it's hard to teach an ol' dog new tricks, > > but… it's worth to try! right? > > Please explain why this example (which is a valid ConTeXt document) works >

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
this example (which is a valid ConTeXt document) works begin example \starttext \starttext \stoptext \stoptext end example but this doesn't. begin example \starttext \starttext end example Wolfgang

[NTG-context] backend not forcing 1000 width units on fonts; em size must be applied or else fails

2023-08-20 Thread Carlos
end with any font other than latin modern > > Here > > \setupbodyfont[stixtwo] > > > \setuplayout[width=16cm] > \showmakeup > > \starttext > > Thus, I came to the conclusion that the designer of a new > system must not only be the implementer and

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
styles that have the smcp feature, but I don't like having to redefine a system command. So the questions are: 1) Is there a recommended\better way to get \sc to work across all styles? \setupbodyfont[pagella] \starttext \tf Upright, \it Italic, \bf Bold and \bi Bolditalic \style[style

[NTG-context] Re: hyphenation inside quotation

2023-08-19 Thread Wolfgang Schuster
hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used. \mainlanguage [de] \setuppapersize [A6] \setupquotation[method=text] \starttext „Originalgenie“ „Originalgenie“ „Originalgenie“ \quotation

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Wolfgang Schuster
\sc{\addff{smallcaps}} This works for all styles that have the smcp feature, but I don't like having to redefine a system command. So the questions are: 1) Is there a recommended\better way to get \sc to work across all styles? \setupbodyfont[pagella] \starttext \tf Upright, \it Italic

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-19 Thread Mikael Sundqvist
th any font other than latin modern Here \setupbodyfont[stixtwo] \setuplayout[width=16cm] \showmakeup \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. \

[NTG-context] hyphenation inside quotation

2023-08-19 Thread Thomas A. Schmitz
Hi, is this a limitation or a bug? Text inside \quotation{} is not hyphenated. It appears to be like this for a couple of versions, but I'm not sure if it has always been the case. Silly example to test: \mainlanguage [de] \setuppapersize [A6] \setupbodyfont [14pt] \starttext

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
=normal, number=no, ] \starttext \startdefinition{\cite[righttext={{ p.\nbsp 1}}, alternative=theorem][burago2022course]} This is something \stopdefinition \startsubject[title={References}] \placelistofpublications \startsubject \stoptext The problem with this is that the citation

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-19 Thread Carlos
I sent prior to your message? > 2. The example below results in a correct output for \TEX. > Not in my end with any font other than latin modern > \setuplayout[width=16cm] > \showmakeup > > \starttext > > Thus, I came to the conclusion that the designer of a new >

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
the table together piece by piece with the collecting mechanism which collect parts of the table until you flush the whole collection at the end with the \stopcollecting command. \starttext \bTABLE \startcollecting \startcollect \bTABLEbody \stopcollect \startcollect \bTR \bTD Cell 1\eTD \bTD

[NTG-context] unsubscribe

2023-08-18 Thread Thomas Floeren via ntg-context
;> consistency. And this ought not to be an ‹either› ‹or› scenario. But >>> rather, an and conjunctional construct. It fails both ways. >> >> Consistency of what? Spacing? Where? Can you make a complete example? >> (You can show space amount with \showmakup[spa

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