[NTG-context] Re: Question to a formular

2024-01-05 Thread Aditya Mahajan
On Fri, 5 Jan 2024, Ursula Hermann wrote: > Dear list, > > > I have this formular, but no idea , how to write it in Context. This is a > formular with factorial. > > > 0! := 1 > (n + 1)! := (n + 1) n! > > Can someone help me please? \starttext \star

[NTG-context] Re: Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Taco Hoekwater
I have this MWE. Now I want to draw only the subpath of S between gong6 and > gong7 with a red line which is narrower at the two ends and thicker in the > middle part. How to achieve this? > > Thanks! > Emanuel > > \setuppapersize[A4,landscape] > > \starttext >

[NTG-context] Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Emanuel Han via ntg-context
Hi all, I have this MWE. Now I want to draw only the subpath of S between gong6 and gong7 with a red line which is narrower at the two ends and thicker in the middle part. How to achieve this? Thanks! Emanuel \setuppapersize[A4,landscape] \starttext \startMPcode numeric u; u=1cm; %equiangular

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

2024-01-04 Thread Henning Hraban Ramm
Am 04.01.24 um 18:00 schrieb Jeroen: I just would like to have a lot of mark-up for combined figures and tables etc moved out of the way, similar to this. I am loosing the general documetn flow because of all this markup. Would there be a construction similar to this: \starttext

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
    -outname \externalfilteroutputfile},     output=\externalfilterbasefile.pdf,     cache=yes,     readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext    Testing if we can include an asymptote image    \startplacefigure[location={here}, title={An Asymptote figure}] \startASY

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
to obtain simple integration for asymptote using the filter module: https://github.com/adityam/filter Using that you could define an asymptote environment so that: \startbuffer[asymptote-preamble] \stopbuffer \starttext \startasymptote % Asymptote figure \stopasymptote \stoptext saves th

[NTG-context] Re: old style factorial symbol and theorems

2023-12-30 Thread Shiv Shankar Dayal
>> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >> >> Thanks a lot. It s

[NTG-context] Question about drawing flowchart using chart module

2023-12-27 Thread Jeong Dal via ntg-context
. Thank you. Dalyoung %% \usemodule[chart] \starttext \startFLOWchart[bigger] \setupFLOWcharts [option=test, nx=3, ny=6, dx=\bodyfontsize, dy=\bodyfontsize, width=6cm,%.5\bodyfontsize, height=10cm,%.3\bodyfontsize, maxwidth=.5\textwidth ] \startFLOWcell \name

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Mikael Sundqvist
f \framed. >> >> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >&g

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work n

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
=on,bottomframe=on]{#1}} \starttext \m{\oldfact{n}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
What do you expect here to pass as argument to the oldfact command? > I will pass something like n, 5, 10 etc. > > This works here: > > \defineenumeration > [proof] > [closesymbol={\mathematics{\square}}] > > \starttext > > \startproof > \samplefile{lorem}

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
it as soon as possible. This works here: \defineenumeration   [proof]   [closesymbol={\mathematics{\square}}] \starttext \startproof \samplefile{lorem} \stopproof \stoptext Wolfgang ___ If your question is of interest

[NTG-context] Re: error: Control sequence expected instead of undefined

2023-12-25 Thread Willi Egger
d of undefined > > If I comment out the “\externalfigure[][]” line, then there is no error > message. > > I don’t know what is wrong in the sample code. > Please check the code. > > Thank you for reading. > > Best regards, > > Dalyoung > > %%%

[NTG-context] error: Control sequence expected instead of undefined

2023-12-25 Thread Jeong Dal via ntg-context
%%%* \starttext \in{figure}[fig:kruskal1] is my point. \startplacefigure[location=,reference=fig:kruskal1,title={}] \externalfigure[cow][width=.5\makeupwidth] \stopplacefigure \stoptext %___ If your

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-24 Thread Wolfgang Schuster
] [textstyle=bold] \starttext \contextversion \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} Test 1 : \NTG . Test 2 : \AbbreviationsFull{NTG}. \stoptext Any clue ? Hans made changes on the capitals mode and now the following two lines have to be added to typo-cap.mkxl on line 52 and 53

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-23 Thread Bruce Horrocks
[abbreviation] [abbreviations] [\AbbreviationsFull] > \setupsynonyms [abbreviation] [textstyle=bold] > > \starttext > > \contextversion > \abbreviation{NTG}{Nederlandstalige TeX Gebruikersgroep} > > Test 1 : \NTG . > > Test 2 : \AbbreviationsFull{NTG}. >

[NTG-context] \setupsynonyms textstyle=cap failing

2023-12-23 Thread Garulfo
' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=bold] \starttext \contextversion

[NTG-context] Re: QR Code

2023-12-21 Thread Ursula Hermann
Files\MiKTeX 2.9\miktex\bin\texify.exe My question is: Should I put the PATH in WinEdt or in Windows? Or in ConTeXt? $TEXROOT/tex/texmf-$ARCH/bin/lib/luametatex/zint Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 20:34:15 An: ntg

[NTG-context] Re: QR Code

2023-12-19 Thread Ursula Hermann
Ursula Hermann: > Dear List > After compiling > \usemodule[m-zint] > \starttext > \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] > \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, > width=3cm] \stoptext > > I got , what y

[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
nTeXt cannot simply find where the > converted PDF versions of the zint images are. > > If I have the following source in testing-barcodes.tex: > > \usemodule[m-zint] > \starttext > \startTEXpage[offset=1dk] > \barcode[alternative=isbnx, text=9783865419026,

[NTG-context] Re: QR Code

2023-12-18 Thread Pablo Rodriguez via ntg-context
stalled (or its path is unknown to the system), or ConTeXt cannot simply find where the converted PDF versions of the zint images are. If I have the following source in testing-barcodes.tex: \usemodule[m-zint] \starttext \startTEXpage[offset=1dk] \barcode[alternative=isbnx, text=9783865419026, width=

[NTG-context] Re: QR Code

2023-12-18 Thread Henning Hraban Ramm
Am 18.12.23 um 17:05 schrieb Ursula Hermann: Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see

[NTG-context] Re: QR Code

2023-12-18 Thread vm via ntg-context
On 18/12/2023 17:05, Ursula Hermann wrote: After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. context

[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. Many Thanks Uschi -Ursprüngliche

[NTG-context] Re: QR Code

2023-12-18 Thread vm via ntg-context
On 18/12/2023 15:13, Ursula Hermann wrote: Dear  List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm

[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
] Re: QR Code Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear  List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \

[NTG-context] Re: QR Code

2023-12-18 Thread Ursula Hermann
Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear  List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \

[NTG-context] Re: QR Code

2023-12-18 Thread Henning Hraban Ramm
Am 18.12.23 um 13:00 schrieb Ursula Hermann: Dear  List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm

[NTG-context] QR Code

2023-12-18 Thread Ursula Hermann
Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? Many thanks Uschi

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Hans Hagen via ntg-context
} \starttext exaple code \stoptext and then process the module to get the example Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
ule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen mach

[NTG-context] Re: error with definestartstop and startmode

2023-12-18 Thread Aditya Mahajan
led or disabled. > > %\enablemode[H] > > \startmode [H] >   \definestartstop [H] [color=blue] > \stopmode > > \startnotmode [H] >   \define\startH{\ignoreupto\stopH} > \stopnotmode > > \starttext > > xxx \startH yyy \sto

[NTG-context] Re: error with definestartstop and startmode

2023-12-17 Thread Wolfgang Schuster
\starttext xxx \startH yyy \stopH zzz \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg

[NTG-context] Re: error with definestartstop and startmode

2023-12-16 Thread Hans Hagen via ntg-context
On 12/16/2023 9:17 AM, Peter Münster wrote: Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \sto

[NTG-context] error with definestartstop and startmode

2023-12-16 Thread Peter Münster
Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut her

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
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 Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage h(m, f) sei ”m ist verliebt in f“. Unter diesen Vorauss

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-14 Thread Gerion Entrup
> context('Color chosen = ' .. named_values['color']) > context('\\par') > context('Curly braces = ' .. str) > context('\\par') > end > \stopluacode > > \def\mycommand[#1][#2]#3{\ctxlua{ > userdata.mycommand('#1', '#2', [==[#3]==])}} > > \startt

[NTG-context] Re: Score sums and references

2023-12-13 Thread Jairo A. del Rio
to do the following? > > > > \integerdef\lmao=0 > > \starttext > > Sum: \in[trick] % 10 from the result below > > > > +1\advance\lmao\plusone > > > > +2\advance\lmao\plustwo > > > > +3\advance\lmao\plusthree > > > > +4\advance\lmao\plus

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-13 Thread Bruce Horrocks
][#2]#3{\ctxlua{ userdata.mycommand('#1', '#2', [==[#3]==])}} \starttext \mycommand[top, inmargin, now][color=green, roof=gabled]{Anne of Green Gables?} \stoptext — Bruce Horrocks Hampshire, UK ___ If your question

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
=, after=, text=Info, title=no, width=fit, distance=0.5em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=5cm] \startInfo \input{ward} \stopInfo \stopFramedText \stoptext

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} \starttext \bf{Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor)}. \stoptext \starttext {\it \par Sei M die Menge aller Männer und F die Menge aller

[NTG-context] Re: Score sums and references

2023-12-13 Thread Hans Hagen
On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: Hi, dear list. Is there a proper "ConTeXt way" to do the following? \integerdef\lmao=0 \starttext Sum: \in[trick] % 10 from the result below +1\advance\lmao\plusone +2\advance\lmao\plustwo +3\advance\lmao\plusthree +4\advance\lma

[NTG-context] Score sums and references

2023-12-12 Thread Jairo A. del Rio
Hi, dear list. Is there a proper "ConTeXt way" to do the following? \integerdef\lmao=0 \starttext Sum: \in[trick] % 10 from the result below +1\advance\lmao\plusone +2\advance\lmao\plustwo +3\advance\lmao\plusthree +4\advance\lmao\plusfour \normalexpanded{\reference[trick]{\the\l

[NTG-context] Re: Fractions

2023-12-10 Thread Gavin via ntg-context
{\textfraction\getnamedglyphdirect{libertinus}{oneinferior}\getnamedglyphdirect{libertinus}{threeinferior}} % /13 \define\onethirteenth{\text{\fracone\thirteenths}} % 1/13 \define\threethirteenths{\text{\fracthree\thirteenths}} % 3/13 \define\ninethirteenths{\text{\fracnine\thirteenths}} % 9/13 \sta

[NTG-context] Re: margin bigger than backspace pushes it outside the edge

2023-12-10 Thread Bruce Horrocks
sided documents. The remainder of the settings will need adjusting to suit your specific circumstances. \setuppapersize[A4][A3] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=30.8mm] \starttext \showlayout[4,pt,cm] \stoptext — Bruce Horrock

[NTG-context] Re: margin bigger than backspace pushes it outside the edge

2023-12-10 Thread Jigé via ntg-context
Thanks Wolfgang. Is this expected behavior? I'm very much confused with my second example: \setuppapersize[A5][A4] %\setuplayout[location=middle] \setuplayout[location=middle,width=middle] %\setuplayout[location=middle,width=middle,backspace=2.5cm] \usemodule[ipsum] \starttext \showframe Hello

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context
On 12/9/2023 4:33 PM, Aditya Mahajan wrote: On Sat, 9 Dec 2023, Wolfgang Schuster wrote: \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}: \m

[NTG-context] Re: margin bigger than backspace pushes it outside the edge

2023-12-10 Thread Wolfgang Schuster
, leftmargin=10mm, leftmargindistance=5mm,     width=110mm,     topspace=20mm,     header=0mm,     footer=0mm,     height=250mm] \starttext \showlayout \stoptext Wolfgang ___ If your question is of interest to others

[NTG-context] margin bigger than backspace pushes it outside the edge

2023-12-10 Thread Jigé via ntg-context
=0mm,     height=250mm] \starttext \showlayout \stoptext Another example: \setuppapersize[A5][A4] \setuplayout[location=middle] \usemodule[ipsum] \starttext \showframe \ipsum \stoptext Thanks, Jean-Guillaume mise_en_page-layout.pdf Description: Adobe PDF document

[NTG-context] Re: Problem with \startlinenumbering left and right arguments

2023-12-09 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 07.12.2023 um 19:21: Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > \starttext > > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
{} and \tfrac{} ? \frac switches the math style while \tfrac (textstyle), \dfrac (displaystyle) and \sfrac (scriptstyle) enforce a certain style. begin example \startbuffer[frac] \frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2} \stopbuffer \starttext \startformula \getbuffer[frac

[NTG-context] Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
with \setupinterlinespace or you use a different fraction command which uses smaller numbers or creates inline fractions. \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3

[NTG-context] Problem with \startlinenumbering left and right arguments

2023-12-07 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth} \stopchapter } \stoplinenumbering \stoptext Kind regards

[NTG-context] Re: Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Hans Hagen
t: Ths not a anymore! Th{i{s {is} not a {question} anymore! \stopbuffer \starttext \processtokens\foo\foo\relax\space{Th{i}s {is} not a {question} anymore!} % Neither \inlinebuffer nor \rawbuffer work in the example above \stoptext I didn't try to decipher this (you probably need expansion som

[NTG-context] Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Jairo A. del Rio
nymore! \stopbuffer \starttext \processtokens\foo\foo\relax\space{Th{i}s {is} not a {question} anymore!} % Neither \inlinebuffer nor \rawbuffer work in the example above \stoptext I've also tried a variant of the mechanism described in OPmac trick described here <https://petr.olsak.net/opm

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
the code that works on its own, but causes the results as shown in the attachments within my book. There’s nowhere a \setupframed, and nothing that should influence MetaPost. Do you have any clue for what I should look? Hraban \starttext \framed[ rulethickness=1pt, offset=0.5em

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Wolfgang Schuster
[physics.units] %% inch should render as “in” %% \setupunittext [inch=in] \starttext \unit{mercury}\crlf %% renders: mm · m \unit{12 millimetermercury}\crlf %% renders: mm · m \unit{12 inchmercury}\crlf%% renders: in · m %% why is this necessary to get mercury rendered as Hg

[NTG-context] \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
[inch=in] \starttext \unit{mercury}\crlf %% renders: mm · m \unit{12 millimetermercury}\crlf %% renders: mm · m \unit{12 inchmercury}\crlf%% renders: in · m %% why is this necessary to get mercury rendered as Hg? \registerunitshortcut [mercury=mercury] \unit{12

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
, alternative=serried, ] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm] \starttext \margintext {1.1.1} \startparagraph It was essential for Hasselt to have a bridge across the Zwarte Water river. The bishop of Utrecht gave

[NTG-context] Re: (again) wrong destination types?

2023-12-04 Thread Bruce Horrocks
> On 3 Dec 2023, at 15:26, Pablo Rodriguez via ntg-context > wrote: > > On 11/22/23 00:06, Bruce Horrocks wrote: >> [...] >> I changed your example to the following: >> \setupinteraction[state=start, page=name, focus=standard] >> \starttext >&g

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
,70); > > p1:=image( > label(textext("Word 1"), z1); > ); > > p2:=image( > label(textext("Mot 2"), z2); > ); > > p3:=image( > label(textext("Parola 3"), z3); > ); > > \stopMPinclusions > > \starttext > >

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Hans Hagen via ntg-context
\enablemathautospacing % more global % \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. no math ... anyway \showglyphs \dorecurse{100}{test \im{\frac

[NTG-context] externalfigure regression?

2023-12-03 Thread Thangalin
file extension." current version: 2023.09.26 18:19 Code: % SOT \starttext \startplacefigure \externalfigure[https://placekitten.com/408/287][method=auto] \stopplacefigure \stoptext % EOT Expected: Cute kitten photo. Actual: Error. Is this a regression? Or has the syntax changed (stale

[NTG-context] Re: Inline math spacing

2023-12-03 Thread Alexandre Christe
% \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. A. Christe Le 3 déc. 2023 à 22:44 +0100, Hans Hagen , a écrit : > On 12/3/2023 10:31 PM, Alexandre Christe wr

[NTG-context] Re: marginwidths

2023-12-03 Thread Wolfgang Schuster
add width=fit, such as in: \setuplayout[width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame

[NTG-context] Re: marginwidths

2023-12-03 Thread Pablo Rodriguez via ntg-context
width=fit, leftmargin=6cm,rightmargin=10cm] \showframe \starttext \ConTeXt\space\contextversion\blank before the \type{\starttext}:\crlf \type{\setuplayout[leftmargin=6cm,rightmargin=10cm]}\crlf make no difference in displayed frame \showlayout \stoptext I wonder whether I might be missing

[NTG-context] Re: (again) wrong destination types?

2023-12-03 Thread Pablo Rodriguez via ntg-context
On 11/22/23 00:06, Bruce Horrocks wrote: > [...] > I changed your example to the following: > \setupinteraction[state=start, page=name, focus=standard] > \starttext > \input knuth \par > a\footnote{b} \par > \dorecurse{7}{\input knuth \par} > \stoptext Many thanks for yo

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
hic{base} > picture p[]; > path TheFrame ; > TheFrame := fullsquare scaled 5in ; > z1 = (60,40); > z2 = (40,90); > z3 = (10,70); > > p1:=image( > label("Word 1", z1); > ); > > p2:=image( > label("Mot 2", z2); > ); > > p3:=image(

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
( label("Word 1", z1); ); p2:=image( label("Mot 2", z2); ); p3:=image( label("Parola 3", z3); ); \stopuseMPgraphic \starttext \dorecurse{3}{ % Frame \startMPpage[pagestate=start] \includeMPgraphic{base} currentime := #1 ; % Just for learning : draw TheFrame

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
ns picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image( label(textext("Word 1"), z1); ); p2:=image( label(textext("Mot 2"), z2); ); p3:=image( label(textext("Parola 3"), z3); ); \stopMPinclusi

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
artPoint = point 0 of A; >> pair AEndPoint; AEndPoint = point 4 of A; >> path B; B = z5..z6; >> pair BStartPoint; BStartPoint = point 0 of B; >> pair BEndPoint; BEndPoint = point 1 of B; >> path C; C = AStartPoint..AEndPoint; >> >> p1:=image( >> draw A w

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
=image(draw A; label(lmt_outline [ > text = "\JapaneseFont 日本語" > ], AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\Korea

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
, AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\KoreanFont 한국어" > ], AStartPoint);); > > p5:=image( > label(textext("bāng"), BEndPoint);

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-12-01 Thread Marco Patzer
agella] \setupbodyfont [mainface, 8.5pt] \starttext \math{V_y} \bold{\math{V_y}} \stoptext Thank you for your replies. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! ma

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-12-01 Thread Wolfgang Schuster
[mainface, 8.5pt] \starttext \bold{\math{x_y}} \stoptext You get the same error with Latin Modern as soon as you use a non predefined font size in combination with bold math. begin example % \starttypescript [math] [default] [size] %   \definebodyfont [8.5pt] [mm] [default

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
m] [math] [pagella] \definetypeface generates the same error message if the font size is changed: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [ss] [TeX Gyre Heros] \definetypeface [mainface] [mm] [math] [pagella] %% 8pt works \setupbodyfont [mainface, 8.5pt]

[NTG-context] Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
] \setupbodyfont [mainface] \definedescription [foo] \starttext %% works, no issues here \math{x_y} %% fails if TeX Gyre Pagella Math is used \bold{\math{x_y}} \stoptext The error is: tex error > tex error on line 14 in file /tmp/tex-xDj/xDj.mkvi: Math error: parame

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
); p4:=image(draw A; label(lmt_outline [ text = "\KoreanFont 한국어" ], AStartPoint);); p5:=image( label(textext("bāng"), BEndPoint); draw C withcolor green; ); p6:=image( draw B withcolor blue; ); \stopMPinclusions \starttext \dorecurse{6}{ % Frame \setupMPpage[background=colo

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
nce \starttext % We can put in the inclusions the material we will use at each page, to declare things only one time. \startMPinclusions % the frame of the video ; path TheFrame ; TheFrame := fullsquare scaled 5in ; randomseed := 53 ; path TheBrownianMotion ; pair Coordinate[]; Coordinat

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
[notonaskharabic] [rm] [serif] [notonaskharabic] [default] \stoptypescript \usetypescript[notonaskharabic] \setupbodyfont [RomanFont] \starttext \startMPcode picture p[]; path bb; %bounding box z0 = (0,0); z1 = (60,40); z2 = (40,90); z3 = (10,70); z4 = (30,50); z5 = (90,70); z6 = (-10,70); path

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
xtablebody[body] \startxrow \startxcell \xmlflush{#1} \stopxcell \stopxrow \stopxtablebody \stopembeddedxtable \stopplacetable \blank \stopxmlsetups \xmlregistersetup{xml:demo} \starttext \xmlprocessbuffer{demo}{demo}{} \stop

[NTG-context] Re: mathalignment; alignment of columns

2023-11-24 Thread Mikael Sundqvist
gt; According to my recent tests, a mathalignment environment does not seem to > react (any more) to the values of the "align" option. > The source code hab been rendered correctly a few years ago, > > Minimal example 1: > > \starttext > \startformula > \startmathal

[NTG-context] mathalignment; alignment of columns

2023-11-24 Thread wolfgangbackes--- via ntg-context
, Minimal example 1: \starttext \startformula \startmathalignment[n=2,align={left, right}] \NC always aligned to the right \NC = u + at, \NR \NC d \NC = ut + \frac12 at^2. \NR \stopmathalignment \stopformula \stoptext Despite "align={left, right}", the first column is aligned to the rig

[NTG-context] Re: Compatibility Issue with TikZ/Spy Library in ConTeXt: Seeking Solutions

2023-11-24 Thread Hans Hagen
://context-on-web.eu/. The example employs the spy library within a TikZ environment. Surprisingly, the same example runs without error on my local LaTeX engine, indicating a potential compatibility issue between ConTeXt and the spy library. Here is the minimal example for your reference:

[NTG-context] Compatibility Issue with TikZ/Spy Library in ConTeXt: Seeking Solutions

2023-11-24 Thread wolfgangbackes--- via ntg-context
hin a TikZ environment. Surprisingly, the same example runs without error on my local LaTeX engine, indicating a potential compatibility issue between ConTeXt and the spy library. Here is the minimal example for your reference: \starttext \usemodule[tikz] \usetikzlibrary {spy} \starttikzpicture

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
, width=fit, distance=0.5em, alternative=serried, ] \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=15cm] \starttext \margintext {1.1.1} \starttheorem The square on the hypotenuse is equal to the sum of the squares

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
; >> >> 2. What do you get in your log-file with the following example! >> >> \starttext >> \show\expandeddetokenize >> \stoptext >> >> On my system I can find the following line: >> &g

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
For me, it is the same: This is LuaMetaTeX, Version 2.10.11 > > 2. What do you get in your log-file with the following example! > >     \starttext >     \show\expandeddetokenize >     \stoptext > > On my system I can find the following line: > >  

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Wolfgang Schuster
Hans van der Meer schrieb am 22.11.2023 um 21:22: The problem persists. Here the new logfile. 1. What is the version of your Luametatex binary?     luametatex --version     This is LuaMetaTeX, Version 2.10.11 2. What do you get in your log-file with the following example!     \starttext

[NTG-context] externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
is as simple as can be.The filename is test.jpeg, then this runs ok:\starttext\externalfigure[test.jpeg][]\stoptextBut this crashes, see the log:\starttext\externalfigure[test.jpg][]\stoptext yours sincerelydr. Hans van der Meer showlayout.log Description: Binary data

[NTG-context] Re: marginwidths

2023-11-22 Thread Wolfgang Schuster
\starttext setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf abc\dotfill xyz\crlf \stoptext Alternative 1: \setuplayout   [backspace=40mm,    width=110mm] \showframe \starttext \page[empty] \stoptext Alternative 2: \setuplayout   [backspace=40mm,    cutspace=60mm,    width

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
ection{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} > \stopxmlsetups > > \startxmlsetups xml:ss > \subsection{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} > \stopxmlsetups > > \setuphead[chapter,section,subsection][before=,after=,] > \starttext > \xmlprocessbuffe

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
, > distance=0.5em, > headstyle=bold, > titlestyle=normal, > way=bytext, > conversion=numbers] > \defineenumeration > [theorem] > [text=Theorem, > title=yes, > style=italic, > list=all, > listtext={Theorem }] > \starttext > \margintext{

[NTG-context] Re: (again) wrong destination types?

2023-11-21 Thread Bruce Horrocks
> On 20 Nov 2023, at 18:01, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > sorry for insisting, but this is important for my documents. > > I have the following sample: > > \setupinteraction[state=start, page=name, focus=standard] > \startt

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