[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:50, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 19:04: >> I tried this approach (I hope it isn’t wrong): >> >>\starttext >>\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{% > > The \expanded mod

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
...groupempty commands. To have more control about this behavior use the \tolerant modifier for \def to change it. Many thanks for your reply, Wolfgang. I tried this approach (I hope it isn’t wrong): \starttext \expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{% \doiftextelse{#4

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
control about this > behavior use the \tolerant modifier for \def to change it. Many thanks for your reply, Wolfgang. I tried this approach (I hope it isn’t wrong): \starttext \expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{% \doiftextelse{#4}% {#4} {\doiftextelse{#3}

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else

[NTG-context] wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else #2% \fi} \MyCommand{}{second}{third}{fourth},\\ \MyCommand

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
txmlsetups xml:stanza \xmlflushlinewise{#1}\par %this has no effect \stopxmlsetups \startxmlsetups xml:line \xmlflush{#1} \stopxmlsetups \startbuffer[test] The lines are there! The lines are there! \stopbuffer \starttext This works: \startlines The lines are there! The

[NTG-context] Re: start/stopregister

2024-04-26 Thread Hans Hagen
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote: On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext A

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext     A\index{A} B \page     A\startregister [index] {A} B

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext A\index{A} B \page A\startregister [index] {A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\stopregister [index] {A} B\stopregister [index] [B] \page

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
ag, variant = "short", righttext = righttext}) context("]") end \stopluacode \startsetups btx:aps:cite:special \btxcitereference \ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==], [==[\currentbtxrighttext]==])} \stopsetups \setupbtx[ap

[NTG-context] Re: start/stopregister

2024-04-25 Thread Henning Hraban Ramm
ot in mkxl. All best Thomas \setuppapersize [A6] \starttext A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext I’m using it like \startregister[index][bibliografie]{Bibliog

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
e [A6] \starttext A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext ___ If your question is of int

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
ertsidenotemark{\SMsidenoteconversion}% mark in text \SidenoteContent[#1]{\setscript[hanzi]\setup[\SMsidenotealign]% \convertsidenotemark{\SMsidenoteconversion}% mark with note #2 }} \protect \starttext 天地玄黄,宇宙洪荒。日月盈昃,辰宿列张。寒来暑往,秋收冬\sidenote[align=flushleft] {天地玄黄,宇

[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
fill fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is w

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-24 Thread Pablo Rodriguez via ntg-context
On 4/24/24 02:15, Joel via ntg-context wrote: > [...] Any idea how I can get current footnote value? Hi Joel, current footnote value can be accessed with \rawcountervalue[footnote], such as in: \starttext \dorecurse{25} {\ \footnote{Footnote \recurselevel}: \rawcounterva

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-23 Thread Joel via ntg-context
alue? --Joel On Monday, April 22, 2024 at 07:22:24 AM MDT, vm via ntg-context wrote: On 22/04/2024 14:38, Joel via ntg-context wrote: > Is this the correct way to be using the \startpostponing code (see > example below)? > > \starttext >      \input knuth &g

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Wolfgang Schuster
l you want. \setuplabeltext [en] [chapter=Chapter , appendix=Appendix , hraban=Hraban ] %\setuplist[chapter][label=hraban,width=3cm] \setuplist[chapter][label=yes,width=3cm] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{First chapter} \chapter{Seco

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
[bibrendering][aps][dataset=main, numbering=short] \setupbtxlist[aps][ alternative=b, distance=.5em, ] \setupbtx[aps:cite][alternative=short] \starttext Knuth developed \TeX \cite[knuth1] Several persons said something \cite[someother]. \placelistofpublications[bibrendering] \stoptext ``` The

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
tupbtx[sbl] \setupnote[footnote][location=none] \starttext    \input knuth     \cite[clark1989]     \placenotes[footnote]          \startchapter[title=Bibliography]     \placelistofpublications     \stopchapter \stopte

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Jean-Pierre Delange
he bibliography part doesn’t work for me at all. > > But notes may be placed as their location is text (and you add a real > footnote). > > This works fine: > > \setupnote[footnote][location=text] > > \starttext > \input knuth > \footnote{Footn

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Pablo Rodriguez via ntg-context
message ends up being empty.  > > Why is it appearing empty? Is there a fix? Hi Joel, the bibliography part doesn’t work for me at all. But notes may be placed as their location is text (and you add a real footnote). This works fine: \setupnote[footnote][location=text] \starttext

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
\setupbtx[dataset=default] \usebtxdefinitions[sbl] \setupbtx[sbl] \setupnote[footnote][location=none] \starttext    \input knuth     \cite[clark1989]     \placenotes[footnote]          \startchapter[title=Bibliography]     \placelistofpublications     \stopchapter \stopte

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread vm via ntg-context
On 22/04/2024 14:38, Joel via ntg-context wrote: Is this the correct way to be using the \startpostponing code (see example below)? \starttext     \input knuth \startpostponing     \placefigure{Caption\footnote{message A}}{\externalfigure[cow][width=\textwidth]} \stoppostponing

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Joel via ntg-context
I've managed to get a minimum working example. If you check, you'll see the 5th footnote inside a placefigure doesn't render anywhere: \starttext     \input knuth     \placefigure{Caption\footnote{message A}}{\externalfigure[cow][width=\textwidth]}     \input knuth     \plac

[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
Denis %%% \setupexternalfigures [location={local,global,default}] \setupfloats[compress=no] \setupfloat[figure][default=top] \starttext \input knuth \placefigure{Cow 1}{\externalfigure[cow][ width=.5\textwidth, ]} \placefigure{Cow 2}{\externalfigur

[NTG-context] Re: kpfonts

2024-04-21 Thread Xavier B.
ontext? > > I love kpfonts. > > \setupbodyfont[kpfonts] > > \starttext > \samplefile{lorem} > \stoptext > > Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
color darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is warmly we

[NTG-context] Re: kpfonts

2024-04-20 Thread Wolfgang Schuster
Xavier B. schrieb am 20.04.2024 um 13:51: Hi, Just a courious: is there kpfonts available for context? I love kpfonts. \setupbodyfont[kpfonts] \starttext \samplefile{lorem} \stoptext Wolfgang ___ If your

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Denis Maier via ntg-context
not work   == \setupexternalfigures   [   maxwidth=\textwidth,   minwidth=\textwidth,   location={local,global,default},   ]   \starttext   \externalfigure[cow.pdf

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Wolfgang Schuster
,   location={local,global,default},   ] \starttext \externalfigure[cow.pdf] \externalfigure[cow.pdf][width=\textwidth] \stoptext == Am I missing something here? There are no minwidth/minheight values for \externalfigure. Wolfgang

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
cal,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight, ]} \placefigure{A Cow}{\externalfigure[cow][ height=.3\textheight, %height=.4\textheight, ]} \placefigure{A Co

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Pablo Rodriguez via ntg-context
\showframe \starttext \doloopoverlist{none, width, height, maxwidth, maxheight} {\externalfigure[cow.pdf][\recursestring=.125\textwidth]} \page \doloopoverlist{none, width, height, minwidth, minheight} {\externalfigure[cow.pdf][\recursestring=.33\textwidth]} \stoptext Just to

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Denis Maier via ntg-context
width set a default minimal width for external figures? But this here does not work == \setupexternalfigures [ maxwidth=\textwidth, minwidth=\textwidth, location={local,global,default}, ] \starttext \externalfigure[co

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Denis Maier via ntg-context
externalfigures [location={local,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight, ]} \placefigure{A Cow}{\externalfigure[cow][ height=.3\textheight, %heigh

[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
.crossref, > > publications.details, publications.cite, publications.strings] > > > > \usebtxdataset[main][testdata.buffer] > > \usebtxdefinitions[aps] > > \setupbtx[dataset=main] > > \definebtxrendering[bibrendering][aps][dataset=main] > > > > % this

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
te, publications.strings] > > \usebtxdataset[main][testdata.buffer] > \usebtxdefinitions[aps] > \setupbtx[dataset=main] > \definebtxrendering[bibrendering][aps][dataset=main] > > % this seems to have no effect? > \setupbtx[alternative=short] > > \starttext > > Knut

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
] % this seems to have no effect? \setupbtx[alternative=short] \starttext Knuth developed \TeX \cite[knuth1]. Several persons said something \cite[someother]. \placelistofpublications[bibrendering] \stoptext ``` It should be rendered as: ``` Knuth developed TeX [>Knu79]. Several persons said

[NTG-context] Re: [ using horizontal table lines ]

2024-04-15 Thread Wolfgang Schuster
econd line appears above the fourth column. \starttext \starttable[||] %\DL \DC \DL \DC \DC \DR \DL[red] \DC \DL[red] \DC \DR \VL 01 \VL 02 \VL 03 \VL 04 \VL 05 \VL\SR \stoptable \stoptext Wol

[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
text]   [\setups{Test}][]   [\setups{Test}][] \setuppagenumbering[location=footer] \starttext \startDatum[title={secA}]%   \dorecurse{50}{aaa }   \pagebreak     \dorecurse{50}{aaa } \stopDatum \startDatum[title={secB}]%   \dorecurse{630}{bbb } \stopDatum \startDatum[title={secC}]%   \dorecurse{

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-14 Thread Peter Hopcroft via ntg-context
ense of some setting. > > For wiki contributors, it might make sense to combine the markup pages – in > many pages e.g. is used where would make more > sense; often \starttext … \stoptext is not necessary and just blows up > examples; markup is generally somewhat chaotic (e.g. ,

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-14 Thread Henning Hraban Ramm
too often I don’t understand enough of the sources to make sense of some setting. For wiki contributors, it might make sense to combine the markup pages – in many pages e.g. is used where would make more sense; often \starttext … \stoptext is not necessary and just blows up examples; markup is

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-10 Thread Hans Hagen via ntg-context
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{% \ctxlua{document.print_the_thing

[NTG-context] \luaescapestring in proper Lua

2024-04-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{% \ctxlua{document.print_the_thing([[\luaescapestring{#1}]])}} \PrintTheThing{a \em b {c}} \stoptext I

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Henning Hraban Ramm
Am 10.04.24 um 14:21 schrieb Hans Hagen: It fails for me as well, when "mode=columns" is used. compare with and without mode columns: \starttext     \enablemode[columns]     As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below} we can have     more than one cel

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Willi Egger
: 2024.04.01 08:59. >>> >>> Could some one confirm this? >> It fails for me as well, when "mode=columns" is used. > compare with and without mode columns: > > \starttext > >\enablemode[columns] > >As we see \doifelsemode {columns} {i

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Hans Hagen
, when "mode=columns" is used. compare with and without mode columns: \starttext \enablemode[columns] As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below} we can have more than one cell in a row. \startplacetable[mode=columns,refere

[NTG-context] Weird (?) float placement for specific widths of image

2024-04-10 Thread Denis Maier via ntg-context
Hi, another graphics/floats question: consider the following example % \setupexternalfigures [location={local,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight

[NTG-context] minwidth not working ?

2024-04-10 Thread denis.maier
Hi, Shouldn't minwidth set a default minimal width for external figures? But this here does not work == \setupexternalfigures [ maxwidth=\textwidth, minwidth=\textwidth, location={local,global,default}, ] \star

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread Hans Hagen
   \stopMPpage > >     so a single path option (no picture) > >     Hans > > > Thank you so much for the sample examples > it would be great to also make text select able in output pdf > the third example currently does not wor

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
rs (red, blue) > > ; > > \stopMPpage > > > > so a single path option (no picture) > > > > Hans > > > > > > Thank you so much for the sample examples > > it would be great to also make text select able in

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
or i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode \egroup \boxyoffset\scratchboxtwo-\dp\scratchboxone \box\scratchboxtwo \stoptexdefinition \starttext \setuphead [section] [ de

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode } \definehead[Myhead][section] \setuphead[Myhead][ style=\Mystyle, ] \startMyhead[title=sample] a sample text \stopMyhead \stoptext and the code below works but does not colo

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
s paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText] \definedfont[name:texgyrepagellabold*default]foo f o o% \stopbuffer \startbuffer[MyText] \framed[align=normal,frame=off]{\input{tufte}}% \stopbuf

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread vm via ntg-context
\starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR \stoptabulate \stopbuffer \nohyphencollapsing \getbuffer \setupbodyfont[pagella] \getbuffer \dohyphencollapsing \getbuffer

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
ase it could be the wrong symbol in the document, there are many dashes in unicode which look similar in the input and output files. \starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒

[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Thomas Meyer
] \starttext \input{knuth} \startlinecorrection \placefigure[left, none] []{}\externalfigure[cow.pdf][width=40mm] \input{knuth} \stoplinecorrection \stoptext Thomas Am 06.04.24 um 13:43 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 06.04.2024 um 12:56: Am 06.04.24 um 12:48 schrieb Thomas

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Wolfgang Schuster
document, there are many dashes in unicode which look similar in the input and output files. \starttext \startbuffer \starttabulate[|T] \NC U+0002D \NC - \NC -- \NC --- \NC\NR \NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR \NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR \stoptabulate \stopbuffer \getbuffer

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
r or before the dash, since I don't > like it to stick to some letters like "o"). Just consider that you should add an horizontal box (or pair both space and hyphen), otherwise you may get a line break between character and hyphen (instead of the hair space): \starttext \

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
[alanindex]\relax}% \thinspace --\thinspace \pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}} \setuplist[chapter][pagecommand=\ChapterListPage] \setuplist[chapter][pagecommand=\ChapterListPage] \showgrid \starttext \completecontent \startchapter [title=Knuth

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
eating a custom list and use \writetolist immediately > before each \stopchapter command? > > \definelist[LastPages][criterium=all] > \starttext > \completecontent > \page > \completelist[LastPages] > \page > \dorecurse{10}{ > \startchapter[title={This is my ch

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
mmand? \definelist[LastPages][criterium=all] \starttext \completecontent \page \completelist[LastPages] \page \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \writetolist[LastPages]{3.}{\namedstructurevariable{ch

[NTG-context] Re: error with \sc

2024-04-02 Thread Mikael Sundqvist
> pages > flushing realpage 1, userpage 1, subpage 1 > close source> level 1, order 3, name './test.tex' > backend > xmp > using file > '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' > mtx-context |

[NTG-context] error with \sc

2024-04-02 Thread Peter Münster
level 1, order 3, name './test.tex' backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' mtx-context | fatal error: return code: 1 Test file: \starttext \sc test \stoptext Is this a bug, or some misconf

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
similar effect as \starttextdisplay. \usemodule[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm
[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Wolfgang Schuster
] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords{10}{20} \blank[2*line] \fakewords{10}{20

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
end -- local commoncommands = { } local commonenvironments = { } for k, v in next, collected do local c = v.commands local e = v.environments if k == "en" then for k, v in next, c do commoncommands[k] = true

[NTG-context] Re: upload

2024-04-01 Thread Hans Hagen
this command can be used by people who want to transform the output PDF into an audio file, because for instance the following \usemodule[math-goodriddance] \goodriddancemath \starttext \startformula \int_{0}^{\pi} \sin(x)\dd x = 2. \stopformula \stoptext gives integral from 0 to 𝜋 , of sin of

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
transform the output PDF into an audio file, because for instance the following \usemodule[math-goodriddance]\goodriddancemath\starttext\startformula\int_{0}^{\pi} \sin(x)\dd x = 2.\stopformula\stoptextgives  integral from 0 to 𝜋 , of sin of 𝑥 d 𝑥 equals 2  as one can see in

[NTG-context] upload

2024-04-01 Thread Hans Hagen
f Description: Adobe PDF document % language=us % todo: no comma \usemodule[scite] \usemodule[article-basic] \usemodule[abbreviations-logos] \usemodule[math-goodriddance] \setuplayout[tight] \starttext \subject{Good riddance} We're done with math. After years of active development, Mi

[NTG-context] Underbar

2024-03-28 Thread Willi Egger
Hello everybody, I have a text, where a couple of lines are typeset with \underbar. — To me this underbar is a fraction to near the text. So I wanted to use \setupbar[…] to change the offset. Unfortunately nothing happens whatever I try. MWE: \setupbar[offset=-.5,dy=-.5] \starttext Hello

[NTG-context] Re: Visually balanced columns

2024-03-27 Thread Wolfgang Schuster
in lmtx. I tried to disable gridfitting for startcolumns, but it produces a completely distorted output. The pagecolumns environment supports bottom aligned content. \setupwhitespace[medium] \setupalign[depth] \starttext \startpagecolumns \dorecurse{20}{\samplefile{jojomayer}\par} \stoppagecolumns

[NTG-context] New example with both sides margin

2024-03-27 Thread Ursula Hermann
\starttext Me\par \blackrule[color=black, height=0.10ex, width=13.50cm]\dontleavehmode \inoutermargin{\blackrule[color=black, height=0.10ex, width=1cm]\\{3.2.2}} \par Me Many thanks for your help. Uschi Hermann ___ If

[NTG-context] Re: Headertext

2024-03-27 Thread Thomas Meyer
der=empty" in the following example. %%%% begin example \showframe \starttext \setuphead[chapter][header=high] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \setuphead[chapter][header=empty] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext end example

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
] [renderingsetup=list:startendpages] \startsetups[list:startendpages] {\ToCEntry} \vglue1pc \stopsetups \starttext {\tfa\bf Contents} \blank[line, fixed] \WORD{Sources} \blank[halfline, fixed] \placelist[SourceTitle][criterium=all] \blank[line, fixed] \WORD{Studies} \blank[halfline, fixed] \placelist

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread Andres Conrado Montoya
ur problem. You need the bin folder of context in your path variable. Can > you send the output of `echo $PATH`? Does it work if you invoke it with a > full path? > > El lun, 25 mar 2024 a las 18:14, escribió: > > Hello, > > I have installed ConTeXt on my Raspberr

[NTG-context] Re: Headertext

2024-03-26 Thread Wolfgang Schuster
, how? When you use "header=high" you can't have a header because the block for it no longer exists, compare the results for "header=high" and "header=empty" in the following example. begin example \showframe \starttext \setuphead[chapter][header=high]

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread hf
your path variable. Can you send the output of `echo $PATH`? Does it work if you invoke it with a full path? El lun, 25 mar 2024 a las 18:14, mailto:h...@hongfeng.ch)> escribió: Hello, I have installed ConTeXt on my Raspberry Pi 400 (aarch64), tried to typeset this simple file: ``` \starttext F

[NTG-context] Re: ConTeXt on RPI400

2024-03-25 Thread Andres Conrado Montoya
with a full path? El lun, 25 mar 2024 a las 18:14, escribió: > Hello, > > I have installed ConTeXt on my Raspberry Pi 400 (aarch64), tried to > typeset this simple file: > > ``` > \starttext > > First tex file to make, hello, world! > > \stoptext > ``` >

[NTG-context] ConTeXt on RPI400

2024-03-25 Thread hf
Hello, I have installed ConTeXt on my Raspberry Pi 400 (aarch64), tried to typeset this simple file: ``` \starttext First tex file to make, hello, world! \stoptext ``` but the test failed: ``` $context hello-world.tex mtxrun | forcing cache reload resolvers | resolving | configuration files

[NTG-context] (again) \xmlinlineprettyprinttext double hyphens

2024-03-24 Thread Pablo Rodriguez via ntg-context
} \xmlinlineprettyprinttext{#1}{none} \stopxmlsetups \definefontfamily[mainface][tt][TeX Gyre Cursor] [features={default}] \setupbodyfont[mainface] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Current LMTX (2024.03.11 09:34) is giving different results for double hyphens with

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

2024-03-22 Thread Ursula Hermann
,width=4cm] \inrightmargin{\blackrule\\{3.2.2}}\par \dontleavehmode \blackrule \showframe \starttext Me \stoptext Von: Pablo Rodriguez via ntg-context Gesendet: Freitag, 15. März 2024 20:00:35 An: ntg-context@ntg.nl Cc: Pablo Rodriguez Betreff: [NTG-context] Re

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section}] This

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
ing: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my cha

[NTG-context] Re: offset with \copypages

2024-03-21 Thread Wolfgang Schuster
Peter Münster schrieb am 21.03.2024 um 15:04: Hi, When inserting pages with \copypages, the included pages are slightly shifted to the left and to the bottom. Minimal example: % test-file.tex: \setuplayout[page] \starttext \input tufte \vfill \input tufte \stoptext % test.tex: \starttext

[NTG-context] offset with \copypages

2024-03-21 Thread Peter Münster
Hi, When inserting pages with \copypages, the included pages are slightly shifted to the left and to the bottom. Minimal example: % test-file.tex: \setuplayout[page] \starttext \input tufte \vfill \input tufte \stoptext % test.tex: \starttext \copypages[test-file.pdf] \stoptext How could I

[NTG-context] issue with \xmlinlineprettyprinttext

2024-03-20 Thread Pablo Rodriguez via ntg-context
] \starttext \xmlprocessbuffer{main}{demo}{} \type{a --b c} \stoptext Using current latest (from 2024.03.11 09:34), LMTX transforms "--" in "–" (en-dash) only with \xmlinlineprettyprinttext (LuaTeX writes the en-dash in the three cases). This issue has been driving me

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
[alternative=doublesided,location=,] \setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headnumber[chapter].~\getmarking[chapter]}] \setupfootertexts[][pagenumber][pagenumber][] \setuphead[chapter][header=high] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
r[Fakepage] \strut \blank \bold{[\Schema]} \vfill This is page \recurselevel \vfill \stopbuffer \starttext \dorecurse{\Pages}{\getbuffer[Fakepage]\page} \stoptext ___ If your question is of interest to

[NTG-context] Re: Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Wolfgang Schuster
. The Third Section ... 2. The Fourth Section ... \setuphead [chapter] [sectionstopper=.] \setuphead [section] [sectionsegments=section, sectionstopper=.] \starttext \chapter{The First Chapter} \section{The First Section} \section{The Second Section} \chapter{The Second Chapter

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Wolfgang Schuster
: \setupmargindata[inmargin][style={\tf}] It does for me but but unless you want a certain style it is better to use a empty argument for the style key. \starttext \inmargin{Bold?}\samplefile{lorem} \setupmargindata[inmargin][style=] \inmargin{Bold?}\samplefile{lorem} \stoptext Wolfgang

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
; > > \starttexdefinition MyNumberChapterCommand #1 > \inframed[frame=off,rightframe=on,framecolor=black, > rulethickness=1px,height=30pt]{#1\enspace} > \stoptexdefinition > > \setuphead[chapter][style={\bfc},numbercommand=\MyNumberChapterCommand, > page=no] &

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Hraban Ramm
olor=black,      rulethickness=1px,height=30pt]{#1\enspace} \stoptexdefinition \setuphead[chapter][style={\bfc},numbercommand=\MyNumberChapterCommand,     page=no] \starttext \startchapter   [title={Algemene Beginselen},    ownnumber={Boek I}] \samplefile{tufte} \stopchapter \startchapter   [title={Organi

[NTG-context] Adjusted Chapter Headings

2024-03-19 Thread Jeroen
tyle={\bfc},numbercommand=\MyNumberChapterCommand, page=no] \starttext \startchapter [title={Algemene Beginselen}, ownnumber={Boek I}] \samplefile{tufte} \stopchapter \startchapter [title={Organisatorische Structuren}, ownnumber={Boek II}] \samplefile{tufte} \stopchapter

[NTG-context] Re: ck hyphenation in old German orthography

2024-03-18 Thread Hraban Ramm
\mainlanguage[deo] \setuplanguage[deo][    hyphenmin=4,    lefthyphenmin=2,    righthyphenmin=2, ] \starttext \hyphenatedfile{aesop-de} \startcolumns Funktioniert die Trennung? Heckeneckenzecken \samplefile{aesop-de} \stopcolumns \stoptext Just as a start, the languages manual provides more

[NTG-context] Re: ck hyphenation in old German orthography

2024-03-17 Thread Wolfgang Schuster
][   hyphenmin=4,   lefthyphenmin=2,   righthyphenmin=2, ] \starttext \hyphenatedfile{aesop-de} \startcolumns Funktioniert die Trennung? Heckeneckenzecken \samplefile{aesop-de} \stopcolumns \stoptext Just as a start, the languages manual provides more details about hyphenation. \startexceptions[de

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 17.03.2024 um 17:38: Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote

[NTG-context] issue with typing in footnotes

2024-03-17 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote \stoptext Current latest (from 2024.03.11 09:34) breaks compilation with both

[NTG-context] ck hyphenation in old German orthography

2024-03-17 Thread Hraban Ramm
, ] \starttext \hyphenatedfile{aesop-de} \startcolumns Funktioniert die Trennung? Heckeneckenzecken \samplefile{aesop-de} \stopcolumns \stoptext ___ If your question is of interest to others as well, please add an

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