Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Hans Hagen via ntg-context
[alternative={singlesided,doublesided}] \starttext \dorecurse{200}{ \dontleavehmode\signalrightpage \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage  {ODD  }{EVEN} \par } \stoptext The rightpage check combined with putting a signal at the spot where you

Re: [NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Wolfgang Schuster via ntg-context
command \starttext \startbuffer[version] 20230529a \stopbuffer Version: \inlinebuffer[version]-en \stoptext but buffers aren't the right tool to store strings like version information. One alternative solution is to set the string with the \setupdocument command. \setupdocument   [version

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Henning Hraban Ramm via ntg-context
Am 27.05.23 um 23:54 schrieb Hans Hagen via ntg-context: You never know when tex will break a page unless you are explicit so you typeset the status too soon. \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \starttext     \dorecurse

Re: [NTG-context] hyperlinks not working with current latest

2023-05-29 Thread Hans Hagen via ntg-context
On 5/28/2023 8:57 PM, Pablo Rodriguez via ntg-context wrote: Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext

Re: [NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Hans Hagen via ntg-context
On 5/28/2023 8:57 PM, Pablo Rodriguez via ntg-context wrote: Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext

[NTG-context] dirty tricks

2023-05-28 Thread Hans Hagen via ntg-context
Hi, Here is a new dirty trick: \starttext % we make sure that we get two passes. \setupalign[verytolerant] % we enable some tracing \tracinglousiness1 % \tracinglousiness2 this gives the breakpoints that tex considers as it progresses \hsize8cm \lousiness 0

[NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext \completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-27 Thread Hans Hagen via ntg-context
what page I'm on? Example: \starttext \dorecurse{70}{\doifelseoddpage{ODD \currentpage\par}{EVEN \currentpage\par}} \stoptext My system:    context --version    mtx-context | ConTeXt Process Management 1.04    mtx-context |    mtx-context | main context file: /home/berend

Re: [NTG-context] Can ConTeXt write its pdf to a different directory?

2023-05-27 Thread peter.hopcroft--- via ntg-context
end > > local texfile = absolute(environment.filename) > local pdffile = file.addsuffix( > absolute(environment.inputfilebarename), > "pdf" > ) > > luatex.wrapup(funct

Re: [NTG-context] font size and style

2023-05-26 Thread Wolfgang Schuster via ntg-context
e and when you have \bf\tfa the first font switch is just replaced by the second switch. To get a larger text in bold style you can use \bfa. \starttext text {\tfa\bf text} text text {\bfa text} text \stoptext

[NTG-context] \doifelseoddpage not working as expected

2023-05-26 Thread Berend de Boer via ntg-context
Dear all, I need something like \doifelseoddpage, but this does not work as expected. See below example. You will notice that on page two you still get the ODD text, with page number 1. What's going on? Is there a proper way to detect what page I'm on? Example: \starttext \dorecurse{70

[NTG-context] Can ConTeXt write its pdf to a different directory?

2023-05-26 Thread Max Chernoff via ntg-context
t.filename) local pdffile = file.addsuffix( absolute(environment.inputfilebarename), "pdf" ) luatex.wrapup(function() os.rename(pdffile, file.replacesuffix(texfile, "pdf")) end)

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
I found a MWE that shows the problem: """ \setuppapersize[C5] \showframe \starttext \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.75\textheight]{TEST} \stopplacefigure \dorecurse{4}{\section{Tufte \recurselevel} \samplefile{tuf

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
it in a simple example like this: """ \starttext \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
Hi, in more than one of my books, I struggle with some lines of text below page floats. They start below the regular text area (i.e. in the bottom) and can even consist of a table float or a section title. I can’t reproduce it in a simple example like this: """ \starttex

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-24 Thread Henning Hraban Ramm via ntg-context
on the next page, that is fine, but I don't want the next group of text to appear until *after* the figure. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}  \placefigure

Re: [NTG-context] Layout with equal margins.

2023-05-22 Thread Wolfgang Schuster via ntg-context
epapersize [pawel] [width=432pt,height=648pt] \setuppapersize [pawel] \setuplayout   [backspace=60pt,    width=312pt] \stopmode \starttext \showlayout \stoptext end example Wolfgang ___ If your question is o

Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Wolfgang Schuster via ntg-context
,     cutspace=68pt,    width=middle] \stopmode \startmode[screen] \setuplayout   [backspace=60pt,    width=312pt] \stopmode \starttext \showlayout \stoptext Wolfgang ___ If your question is of interest

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Wolfgang Schuster via ntg-context
of text to appear until *after* the figure. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}  \placefigure[here,force]{caption}{  \externalfigure[1.jpg][width=\textwidth

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Joel via ntg-context
. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}     \placefigure[here,force]{caption}{         \externalfigure[1.jpg][width=\textwidth]     }     \input knuth     \input knuth

Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Wolfgang Schuster via ntg-context
for the download version. You use the backspace key to set the value for the inner/left margin and the width key for the textwidth. \definepapersize [pawel] [width=432pt,height=648pt] \setuppapersize [pawel] \setuplayout   [backspace=60pt,    width=312pt] \starttext \showlayout \stoptext Wolfgang

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonou

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
chrieb am 19.05.2023 um 14:22: > > In order to get some inline framed verbatim text, I have in the past > > always used the following: > > > > \starttext > > > > This is an > > \inframed > > [frame=on, > > corner=00, > > radius=2mm,of

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following: \define[1

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Hans van der Meer via ntg-context
it based on language (as some translated texts have widely different sizes)This fails:%===\newdimen\relationsFontSize\relationsFontSize=8pt\starttext\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext%===How can I use a variable to steer

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Wolfgang Schuster via ntg-context
\starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext %=== How can I use a variable to steer \switchtobodyfont size? You need \the\, i.e. \switchtobodyfont[\the\relationsFontSize] but I would use the measure command, e.g. \definemeasure[relationsFontSize][8pt

[NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Gerben Wierda via ntg-context
I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes) This fails: %=== \newdimen\relationsFontSize \relationsFontSize=8pt \starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext

Re: [NTG-context] Replacer based on function rathen than tables

2023-05-18 Thread Hans Hagen via ntg-context
local function nice(str)    return str .. " is nice" end Thanks in advance. Best regards, I'll add it (one of the more trivial things): \starttext \startluacode languages.replacements.add("basics", { ["one"] = "cool", ["t

Re: [NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年5月17日周三 06:42写道: > I did a simple thing, replace a \framed by \framedtext to get > \placeinitial working but that doesn't seem to work automatically: > > %== > \starttext > \setupinitial[n=2,text=Knuth]\placei

[NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread Gerben Wierda via ntg-context
I did a simple thing, replace a \framed by \framedtext to get \placeinitial working but that doesn't seem to work automatically: %== \starttext \setupinitial[n=2,text=Knuth]\placeinitial\input knuth \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Gerben Wierda via ntg-context
bodyfont[archimate] > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \mainlanguage [ja] > > \starttext > \setupindenting[none] > \setupindenting[no] > \framed[width=\textwidth,frame=off,align=flushleft]{作図:A bi

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
script [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \mainlanguage [ja] > > \starttext > \setupindenting[none] > \setupindenting[no] > \framed[width=\textwidth,frame=off,align=flushleft]{作図:A bit of text} > \framed[width=\textwidth,frame=off,align=flushright]{作図:A

[NTG-context] \placeinitial inside \framed?

2023-05-15 Thread Gerben Wierda via ntg-context
I'd like to use a drop cap inside a \framed, but it doesn't work. Minimal example: %== \starttext \setupinitial[n=2,text=Knuth]\placeinitial\input knuth \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth } \stoptext

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \mainlanguage [ja] \starttext \setupindenting[none] \setupindenting[no] \framed[width=\textwidth,frame=off

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Hans Hagen via ntg-context
On 5/15/2023 3:37 AM, Joel via ntg-context wrote: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Henning Hraban Ramm via ntg-context
Am 15.05.23 um 03:37 schrieb Joel via ntg-context: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

[NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-14 Thread Joel via ntg-context
I have a document like this:     \starttext     \index{dogs}          \index{cats}          \index{flowers}          \index{snails}          \index{trees}          \placeindex          \stoptext      As I understand, if you use \index{animals+dogs

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
, footerstate=empty, before=\setups{standard:setups}, ] \startsetups standard:setups \setupbackgrounds[page][background=color, backgroundcolor=lightgray] \stopsetups \define\TOC{ \starttocmakeup \stoptocmakeup } \starttext \startstandardmakeup \title{Your Title Here} \stopstandardmakeup

Re: [NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Alan Braslau via ntg-context
On Sun, 7 May 2023 22:26:12 + (UTC) Joel via ntg-context wrote: > I have an index like this: > > \starttext > \index{butterflies}\index{horses}\index{cows} > \placeindex > > \stoptext > The placeindex will place every index. > Is there a way to say,

[NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Joel via ntg-context
I have an index like this: \starttext \index{butterflies}\index{horses}\index{cows} \placeindex \stoptext The placeindex will place every index. Is there a way to say, display an index, but only for a specific single entry, or specific list of entries, e.g. \placeindex[horses, cows] (would

[NTG-context] How to fix indexes displaying [entry not flushed] with hidden data?

2023-05-07 Thread Joel via ntg-context
I can get a successful render. The problem is, I have text that needs to remain invisible. \starttext     \index{birds}     \index{insects}         \startnointerference             \index{spiders}             \index{bears}             \index{rabbits}             This is invisible text.         \stop

Re: [NTG-context] new units

2023-05-06 Thread Hans Hagen via ntg-context
suring 4es ^ 2 which i admit is a bit less than 4in ^2. But, if you're really into old units we can measure your feet and replace "max 19 feet" message by "max 20 braslaus". Actually you can do a sqrt: \starttext \the\floatexpr\pfsqrt 2\relax \the\pfsqrt 2\rel

Re: [NTG-context] new units

2023-05-06 Thread Alan Braslau via ntg-context
ration (using the edithorial callibration instrument made for > that purpose). An upcoming article in TB will explain the details of > the process and also a careful mathematical annalysis of how we > reached the right value with a high precission. The actual > implementation

Re: [NTG-context] How to show bibliography only for the chapter?

2023-05-06 Thread Alan Braslau via ntg-context
or the whole document. How can I limit the list to the > material falling within that chapter? > >     \starttext >     \startchapter[title={Robots}] >     \input knuth    \cite[source1] >     \placelistofpublications[criteria=bychapter] >     \plac

[NTG-context] How to show bibliography only for the chapter?

2023-05-06 Thread Joel via ntg-context
?     \starttext     \startchapter[title={Robots}]     \input knuth    \cite[source1]     \placelistofpublications[criteria=bychapter]     \placelistofpublications[way=bychapter]    \placelistofpublications[criteria=chapter]     \stopchapter

[NTG-context] new units

2023-05-04 Thread Hans Hagen via ntg-context
article in TB will explain the details of the process and also a careful mathematical annalysis of how we reached the right value with a high precission. The actual implementation is the most boring part. \starttext \startTEXpage[offset=1ts] Hello World! \the\dimexpr 1ts \the\dimexpr

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context
o Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5, bi=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \starttext lua code creates METAPOST code which creates images with embedded ConTeXt 'vboxes' which again contain langu

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
] \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP] \definetypeface   [noto-jp] [mm] [math] [pagella] [default] \setupbodyfont [noto-jp] \mainlanguage [ja] \setscript [nihongo] \starttext \startbuffer 打構セト読役いゆお及層大コモクカ軟毎ホアヲト極書た球87本野ぎレべ襲画売ぎ関負ら断紀チラネキ質紋キタ資私トゃふん。江コキトサ狂毎現ンづ応通サシ続36島性84界ぼゆゃが実書ちぽふず辞躍事シ世図二ハス盛

Re: [NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
ad [section] [color=darkred,style=\tfc,inbetween={\mono{\CheckC}}] \setuphead [subsection] [inbetween=] \starttext \startsection[title=Section A] Text of section A. \startsubsection[title=SubSection A.A] Text of subsection A.A \stopsubsection \stopsection

[NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
={insidesection: \CheckA - \CheckB}, aftersection={aftersection: \CheckA - \CheckB}, color=darkred, style=\tfc, ] \starttext \startsection[title=Section A] Text of section A. \stopsection \startsection[title=Section B] Text of section B. \stopsection \stoptext

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
> > when running the example from contextgarden: > https://wiki.contextgarden.net/Pgfplot > > \setupcolors[state=start] > \usemodule[tikz] > \usemodule[pgfplots] > \starttext > \starttikzpicture > \startaxis[ > xmin=0,xmax=300, > title=http://cryogenics.nis

Re: [NTG-context] Problem with exponent

2023-04-28 Thread Bruce Horrocks via ntg-context
> On 28 Apr 2023, at 19:21, Fabrice Couvreur via ntg-context > wrote: > > Hi, > I want to write x'² . Only, I get x²'. > Thanks > Fabrice > > \starttext > \m{{x'}²+{y'}²} > \stoptext This came up before [1]. The solution is to use \primed{...} \starttext \m

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Floris van Manen via ntg-context
] \usemodule[tikz] \usemodule[pgfplots] \starttext \starttikzpicture \startaxis[ xmin=0,xmax=300, title=http://cryogenics.nist.gov/, xlabel=$T$ (K), ylabel=$(L-L_{293})/L_{293}$, legend style={at={(0.95,0.05)},anchor=south east}, width=16cm ] \addplot[mark=none,color=red] plot file {sapphire.dat

[NTG-context] Problem with exponent

2023-04-28 Thread Fabrice Couvreur via ntg-context
Hi, I want to write x'² . Only, I get x²'. Thanks Fabrice \starttext \m{{x'}²+{y'}²} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Filter Module with Openscad

2023-04-26 Thread Aditya Mahajan via ntg-context
file}, >output={\externalfilterbasefile.png}, >cache=force, >readcommand=\ReadImage] > \define[1]\ReadImage{\externalfigure[#1]} > > \starttext > \startopenscad > square(4,2); > \stopopenscad > \stoptext > > This works fine. I now want to use the following

[NTG-context] Filter Module with Openscad

2023-04-26 Thread Jeroen via ntg-context
] \define[1]\ReadImage{\externalfigure[#1]} \starttext \startopenscad square(4,2); \stopopenscad \stoptext This works fine. I now want to use the following options added to the command line: --view axes,edges,scales --viewall When I create an Openscad file test.scad, I can run it fine

Re: [NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread jbf via ntg-context
starts where the first left off, without having to manually calculate the new start point. The following does not work, and I do not understand why. Mike \starttext \definecounter[mynumber][] \startitemize[n] \item The first item. \item The second item \item Item number

[NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread Michael Urban via ntg-context
I am trying to have two numbered itemizations, with a paragraph in between, such that the second list starts where the first left off, without having to manually calculate the new start point. The following does not work, and I do not understand why. Mike \starttext \definecounter

Re: [NTG-context] fallbacks

2023-04-24 Thread Sylvain Hubert via ntg-context
s from GFS Heraklit: > > > >\definefallbackfamily [presentation] [serif] [GFSHeraklit] > >[range={greekandcoptic, greekextended}] > >\definefontfamily [presentation] [serif] [TeXGyrePagella] > >\setupbodyfont [presentation,12pt] > > > >\sta

Re: [NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
ot; gets all Greek glyphs from GFS Heraklit: \definefallbackfamily [presentation] [serif] [GFSHeraklit] [range={greekandcoptic, greekextended}] \definefontfamily [presentation] [serif] [TeXGyrePagella] \setupbodyfont [presentation,12pt] \starttext Pπμᾷσδ \stoptext Just in cas

Re: [NTG-context] fallbacks

2023-04-22 Thread Pablo Rodriguez via ntg-context
ange:greek"), adding "force=yes" gets all Greek glyphs from GFS Heraklit: \definefallbackfamily [presentation] [serif] [GFSHeraklit] [range={greekandcoptic, greekextended}] \definefontfamily [presentation] [serif] [TeXGyrePagella] \setupbodyfont [pr

[NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
on] [serif] [AntykwaTorunska] \setupbodyfont [presentation,12pt] \starttext (〈P〉) \stoptext With this input, the two characters 〈 and 〉 are not typeset; in the log, I find fonts > checking > char 〈 (U+02329) in font 'AntykwaTorunska-Regular' with id 1: missing fonts

Re: [NTG-context] Kaktovik numerals

2023-04-20 Thread Willi Egger via ntg-context
umeral. You have 4 digit >>> Kaktovik numerals for 2023, with both a 0 and a 1. > je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde > volgorde uit: > > \useMPlibrary[kaktovik] % de officiele manier > > \definefontfeature > [default] > [def

Re: [NTG-context] About \blackrule

2023-04-20 Thread Fabrice Couvreur via ntg-context
number 3. > Thanks > Fabrice > > \setupbodyfont[12pt,pagella] > \starttext > \blackrule[width=0.71em,height=0.71em]37254H > > > \blackrule[width=\wdofstring{3},height=\htofstring{3},depth=\dpofstring{3}] > > Wolfgang > > _

Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Pawel Urbanski via ntg-context
[roboto] \setuphead[chapter] [style={\switchtobodyfont[roboto,20pt]\ss}] \starttext      \startchapter[title=Whatever is the best title]          \input tufte      \stopchapter \startchapter[title={Just a second title}] Some random text. \stopchapter \stoptext \definefontfeature[robotofeatures

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
, with both a 0 and a 1. je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde volgorde uit: \useMPlibrary[kaktovik] % de officiele manier \definefontfeature [default] [default] [metapost=kaktovik] \setupbodyfont[dejavu] \starttext 2023 \kaktoviknumerals{5}\kaktoviknumerals

Re: [NTG-context] About \blackrule

2023-04-19 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 19.04.2023 um 17:01: Hi, The idea is to have a black square whose height is that of the number 3. Thanks Fabrice \setupbodyfont[12pt,pagella] \starttext  \blackrule[width=0.71em,height=0.71em]37254H \blackrule[width=\wdofstring{3},height=\htofstring

[NTG-context] About \blackrule

2023-04-19 Thread Fabrice Couvreur via ntg-context
Hi, The idea is to have a black square whose height is that of the number 3. Thanks Fabrice \setupbodyfont[12pt,pagella] \starttext \blackrule[width=0.71em,height=0.71em]37254H \stoptext ___ If your question

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-19 Thread Carlos via ntg-context
ither one. > The point is, there is a disconnect between the documentation says will > happen and what actually happens. I don't know which is wrong, and thus my > question. I hope that sooner or later someone who can definitively comment > on the disconnect will speak up. I agree.

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Hans Hagen via ntg-context
] [ebgaramond] [default] \stoptypescript \setupbodyfont[robocop] \setuphead[chapter][style=\ssbfd] \starttext \startchapter[title=Whatever] \input tufte \stopchapter \page \usemodule[fonts-variable] \showfontvariations[font=file:robotoflex.ttf] \stoptext

Re: [NTG-context] Table of contents in the middle of a document

2023-04-17 Thread Alan Braslau via ntg-context
Is it normal that the table of contents is empty if there is a chapter > that begins before it? > > ``` > > \starttext > \chapter{Acknowledgements} > Thank you > > \completecontent > > \chapter{Intro} > > \chapter{Problem} > > \chapter{Solution} >

[NTG-context] Table of contents in the middle of a document

2023-04-17 Thread Kalouguine Andre via ntg-context
Hi, I was trying to have my "Acknowledgements" section/chapter before the table of contents but be contained within it. Is it normal that the table of contents is empty if there is a chapter that begins before it? ``` \starttext \chapter{Acknowledgements} Thank you \compl

Re: [NTG-context] new uplaod

2023-04-17 Thread Alexandre Christe via ntg-context
Dear list, In case someone else stumbles upon this issue, the following code works. MWE: \autofences \starttext $\left]-\infty; a\right[$ \stoptext Best regards, Alex Le 22 sept. 2022 à 12:59 +0200, Alexandre Christe , a écrit : > Hi Hans, > > Thanks a lot for the example. It wo

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Jim via ntg-context
time that documentation changes lagged behind code changes. The point is, there is a disconnect between the documentation says will happen and what actually happens. I don't know which is wrong, and thus my question. I hope that sooner or later someone who can definitively comment on the disconn

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Carlos via ntg-context
lse yet? I don't know. Why would it be a documentation bug if it clearly says it should be indented only after the blank line, unless \indent was omitted on purpose while trying to make it look as if the blank line would have any effect after all. Makes no sense. \setupindenting[medium

Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
}} \starttext Reaction: \startformula \U{235} + n \rightarrow \Sr{94} + \Xe{140} + 2n \stopformula \stoptext Since I will be writing many reactions with a dozen or so different atomic symbols, it makes sense to create a command for each atomic symbol that adds the correct atomic number and takes

[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
Hi list, I’m writing nuclear reactions. When add prescripts to atomic symbols with two letters, (Be, Sr, Xe, etc.) the prescripts split the atoms! (See output below.) \starttext Text: \lohi[left]{4}{10}Be. Reaction: \startformula {\rm U}^^{235}__{92} + n \rightarrow {\rm Sr}^^{94}__{38

Re: [NTG-context] Using project-local fonts

2023-04-13 Thread Hans Hagen via ntg-context
][default] \definetypeface [ebgaramond] [mm] [math] [ebgaramond] [default] \setupbodyfont[ebgaramond,12pt] \starttext The most distinct sentence $x$. \stoptext as you probably also want proper math. Hans

[NTG-context] Using project-local fonts

2023-04-13 Thread Kalouguine Andre via ntg-context
[ebgaramond] [serif] [ebgaramond] [features=myfontfeature] \definefontfamily [ebgaramond] [math] [Garamond-Math] \definefontfamily [ebgaramond] [mono] [Hack] [tf = style:mono] \setupbodyfont[ebgaramond,12pt] \starttext The most distict sentence. \stoptext ``` latexmkrc``` $latex = 'ls

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
vconnect ("photon", __v1, __v2); vfreeze; vdraw; endsubgraph; endchar; % the end. end. endinput; So, I created a context file: \startMPinclusions input feynmp; require_RCS_revision "1.30"; \stopMPinclusions \starttext \sta

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Denis Maier via ntg-context
{test}{div[@class="footnotes"]/div/div[@id="\xmlatt{#1}{id}" > > ]}} -> test is not the document name nor the name of the node to be > > processed>; div/div nesting was wrong; for some reason I can't get it > > to work with xmlfirst. But \xmlfilter works &g

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Keith McKay via ntg-context
of the node to be processed>; div/div nesting was wrong; for some reason I can't get it to work with xmlfirst. But \xmlfilter works {\xmlfilter{\xmldocument}{div[@id='\xmlrefatt{#1}{data-fnref}']/command(xml:test)}} \stopxmlsetups \startxmlsetups xml:test \xmlflush{#1} \stopxmlsetups \s

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Denis Maier via ntg-context
fnref}']/command(xml:test)}} \stopxmlsetups \startxmlsetups xml:test \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessfile{initialise}{footnoteTest.html}{} \stoptext = > -Ursprüngliche Nachricht- > Von: Keith McKay > Ge

Re: [NTG-context] How to use noto sans math font?

2023-04-05 Thread Mikael Sundqvist via ntg-context
which can be downloaded from > https://fonts.google.com/noto/specimen/Noto+Sans+Math > > But I use it like the following > > \definefontfamily[myfonts][rm][latin modern roman] > \definefontfamily[myfonts][mm][noto sans math] > \setupbodyfont[myfonts,rm,12pt] > \starttext > Test

[NTG-context] How to use noto sans math font?

2023-04-05 Thread 李延瑞
Hi, I try to use the Noto Sans Math fnt which can be downloaded from https://fonts.google.com/noto/specimen/Noto+Sans+Math But I use it like the following \definefontfamily[myfonts][rm][latin modern roman] \definefontfamily[myfonts][mm][noto sans math] \setupbodyfont[myfonts,rm,12pt] \starttext

Re: [NTG-context] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
fully can solve that. Maybe I can adapt what we have below with the project structure. Not ready to give up yet! Julian \starttext \startoutputstream[one] \startcolor[red] \input en\par \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[blue] \input vn\par \stop

[NTG-context] separators between non-instantiantiated (foot)notes

2023-04-03 Thread Rudd, Kevin via ntg-context
I'm missing something obvious, but from what I see: \starttext something that works \footnote[a]{} \footnote[b]{BB} something that doesn't \footnote[c]{CC} \note[b] something else that doesn't \footnote[d]{} \unprotect\strc_notes_inject_separator\protect \note[b] but can be made

Re: [NTG-context] bold small caps

2023-04-03 Thread Pablo Rodriguez via ntg-context
On 4/3/23 09:07, Peter Münster via ntg-context wrote: > Hi, > > I'm quite sure, that this worked some time ago with the standard font (LM): I had the same impression, Peter. But LM fonts don‘t have the OT feature smcp: \setuppapersize[A8] \starttext \doloopoverlist{lm, pagell

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
, align={flushleft,broad} ] {\startexemple \getinlineuserdata \stopexemple} \stopsetups \showframe \starttext \startchapter[title={First Chapter},ownnumber=1] \startdefinition \input ward \stopdefinition \startuserdata [margintext] \input ward \stopuserdata

Re: [NTG-context] attempt to index nil value with bidi math in hbox

2023-04-03 Thread Hans Hagen via ntg-context
On 4/3/2023 7:50 AM, Max Chernoff via ntg-context wrote: Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo

[NTG-context] attempt to index nil value with bidi math in hbox

2023-04-02 Thread Max Chernoff via ntg-context
Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to index a nil value (local 'before

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-04-02 Thread George N. White III via ntg-context
> ["lastluaerror"]="?", > ["lasttexerror"]="! Missing control sequence inserted", > ["linenumber"]=926, > ["offset"]=10, > } > > I simply run context to this file: > > \usemodule[tikz] > > \starttext &g

Re: [NTG-context] update / punctuation / math

2023-04-02 Thread Pablo Rodriguez via ntg-context
[rm] [Source Sans 3 VF] [features={default, boldened-10}] \setupbodyfont[mainface] \starttext \input zapf \stoptext Evince displays it poorly and this is what happens in the link above. Pablo ___ If y

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Alan Braslau via ntg-context
= > > We added the tex of the pdf below > > == extract from roadmap == > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n]

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Willi Egger via ntg-context
is still experimental and can have issues that we're looking at but hard > to nail down (huge complex cross-referencing documents). More about that > later. > > == > > We added the tex of the pdf below > > == extract from roadmap

[NTG-context] update / punctuation / math

2023-04-01 Thread Hans Hagen via ntg-context
dmap == \usemodule[article-basic,abbreviations-logos] \setupbodyfont[concrete] \starttext \startsubject[title=Math in \CONTEXT\ roadmap] \startitemize[n] \startitem After playing with math support for more than a year, we have come to the conclusion that it is time to move on. We have alr

Re: [NTG-context] Stack overflow when using Neo Euler for math

2023-03-31 Thread Rory Molinari via ntg-context
lla] > > \definefontfamily[mypalatinoeuler][mm][Neo Euler] > > > > \setupbodyfont[mypalatinoeuler] > > > > \starttext > > $x=1$ > > \stoptext > It works ok here. Support for these math fonts are a bit in flux (and > euler is special anyway). Mika

Re: [NTG-context] Stack overflow when using Neo Euler for math

2023-03-31 Thread Hans Hagen via ntg-context
] \definefontfamily[mypalatinoeuler][mm][Neo Euler] \setupbodyfont[mypalatinoeuler] \starttext $x=1$ \stoptext It works ok here. Support for these math fonts are a bit in flux (and euler is special anyway). Mikael and I just finished a new round of math tweaks (some interesting esthetics that took

Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-31 Thread Carlos via ntg-context
as_place_number > > \strc_formulas_flush_number \dostarttagged \t!formulacontent \empty > > \dotagregisterformula \c_strc_formulas_n \csname \e!stop \formulaparameter > > \c!alternative \v!formula \endcsname > > dunno, that's numbering, not math > > > Okay. So I tr

<    7   8   9   10   11   12   13   14   15   16   >