[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
of your new delimited command is then passed to the normal commands for the table cell. begin example \starttext \protected\def\StartTableCell#1\StopTableCell {\bTD#1\eTD} % New method to create delimited arguments with #L and #R in Luametatex % % \protected\def\StartTableCell#L

[NTG-context] Re: Suppress pagenumber

2024-05-23 Thread Wolfgang Schuster
Thomas Meyer schrieb am 23.05.2024 um 16:34: Need Help! I'm standing in front of the barn door ... How can I suppress the pagenumber only on the first page? \starttext \noheaderandfooterlines \dorecurse{10}{\samplefile{lorem}} \stoptext Wolfgang

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 23.05.2024 um 14:13: Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD

[NTG-context] simplify side by side Poems

2024-05-23 Thread seyal . zavira
Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD \bTD two gfjgfd oski kwo \eTD \eTR \bTR \bTD One wer s dft

[NTG-context] Re: Playing with math font setup

2024-05-21 Thread Hans Hagen
omFontSelection] [default] [rscale=0.97] \stoptypescript \stoptypescriptcollection \setupbodyfont[CustomFontSelection] \starttext We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever. \mathematics{% \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR

[NTG-context] Playing with math font setup

2024-05-21 Thread Ali Ali
criptcollection \setupbodyfont[CustomFontSelection] \starttext We use $X$, $Y$, $Z$ and $n$, $m$, etc. $\sin(x) \to \limsup x_n$ whatever. \mathematics{% \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases } We use

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
? >> I did, but as far as I know they place the text on the margin next to >> the \inmargin invocation in the text, so they may overlap, which is what >> I want to avoid. > > \setupmarginblocks[inbetween=] > > \starttext > > \dorecurse{100} >{\bold{#1:}

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
vm via ntg-context schrieb am 21.05.2024 um 16:07: On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}    {\bold{#1:} \samplefile{ward}%     \startmarginblock Note #1\stopmarginblock     \par} \stoptext when I compile this, i get per

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
just noticed that if the notes need more margin space then are pages available by the text, they get lost. e.g. this mwe generates 10 pages with 100 par but only 80 notes will show up. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}   {\bold{#1:} \samplefile{ward}%    \startmarginblock Note #1\stopmarginblock    \par} \stoptext when I compile this, i get per page with \par 1..10 -> the notes 1..11 \par 11.

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
to the \inmargin invocation in the text, so they may overlap, which is what I want to avoid. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginblock Note #1\stopmarginblock \par} \stoptext Wolfgang

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen
\Hashtag#1{ \hbox{\tfa\ctxlua{ str = "#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable.

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen via ntg-context
\Hashtag#1{ \hbox{\tfa\ctxlua{ str = "#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable.

[NTG-context] Re: How to disable hyphenation at the end of a line?

2024-05-20 Thread Wolfgang Schuster
tion marks slightly into the margin area to have a better alignment of the text alone. begin example \setupwhitespace[big] \showframe[text][text] \definefontfeature[default][default][expansion=quality,protrusion=quality] \starttext \type{alignment: default} \samplefile{lorem} \p

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread seyal . zavira
ot;#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable. How can you put all the code in the one Lua function and

[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
petext}} } %== %\showboxes \starttext \MyPageBuilder{A}{} \setuphead [subsection] [ before=, after=, style=, command=\MySubSectionCommand, alternative=text, ] \MyPageBuilder{B}{} \MyPageBuilder{C}{\strut Hi from here. \endgraf} \st

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-18 Thread Pablo Rodriguez via ntg-context
ontfamily[cormora][rm][Cormorant] \setupbodyfont[cormora] \starttext \input zapf\par \switchtobodyfont[libertin] \doloopoverlist{\rm,\ss,\tt} {\recursestring\input zapf\par} \stoptext You may define font families (which are actually typeface families). I think they may be easier to use than t

[NTG-context] Re: Special charakter

2024-05-18 Thread Wolfgang Schuster
vm via ntg-context schrieb am 18.05.2024 um 11:45: On 18/05/2024 11:17, Thomas Meyer wrote: How can I write Łódź (on a Mac)? Just as you wrote it in your mail message? ConTeXt knows how to deal with utf-8 And in case you can't use the \with... commands. \starttext Łódź %\Lslash\aacute

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Hans Hagen via ntg-context
ist. Sorry if it not ok. thanks if you do something \switchtobodyfont without ever having loaded it (before starttext) spaces can creep in depending on what files are loaded for that font also, in order to avoid grouping issues / side effects you can do this before \starttext: \usebodyfont[foo] wh

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Pablo Rodriguez via ntg-context
ection] [command=\firstHeadings, indentnext=no] \starttext \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \stoptext BTW, you inadvertely introduce the space here: \define[2]\firstHeadings{% \dontleav

[NTG-context] Why is only the first frame protruding into the margin?

2024-05-16 Thread madiazm . eoicc
{% \dontleavehmode \switchtobodyfont[miCorm] \FrameTitle#1% \dontleavehmode \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText } \setuphead [section] [color=blue, command=\firstHeadings, indentnext=no] \starttext \noindentation \dontleavehmode \startsection[title=Aspectos generales

[NTG-context] Re: Is there any command that equates to "keep with previous paragraph"?

2024-05-16 Thread Wolfgang Schuster
\starttext This is some text. This is some other text, it will appear in a new paragraph. \blank This is some text. \ignorepars % add space before \ignorepars This is some other text, it will appear in a new paragraph. \blank This is some text. \GotoPar This is some other text, it will appear

[NTG-context] Re: How to use fonts without typescripts?

2024-05-15 Thread Bruce Horrocks
efont [useWarningFont] [name:arialbold*default at 22pt] \starttext This is the regular body text font but {\useWarningFont BE AWARE} that others can be used. \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is

[NTG-context] expansion question

2024-05-15 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start] \setupattachments[method=hidden] \protected\def\PDFfile[#1]% {\cldcontext{file.addsuffix("#1", "pdf")}} \starttext \doifelsefile{\PDFfile[xml-mkiv]} {yes}{no}

[NTG-context] Re: How to use fonts without typescripts?

2024-05-15 Thread Wolfgang Schuster
New] [features=none] \definetypeface   [windows] [mm] [math] [termes] % use \definetypeface to load a math font \setupbodyfont[windows] \starttext \showbodyfont \stoptext Wolfgang ___ If your question is of interest

[NTG-context] what am I missing in the typescript?

2024-05-15 Thread madiazm . eoicc
\starttypescript[miCorm] \definetypeface [miCorm] [rm] [serif] [cormorant] [default] \stoptypescript \setupbodyfont[miFuente, 12pt] \starttext \startsection[title=Aspectos generales] Esta guía contiene toda la documentación necesaria para administrar la {\it prueba unificada de certificación

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
}] %== \starttext %== {\sc\bfd Version A, without sectionning, pages 1\ampersand 2} \startshapetext[mp1, mp1, mp1, mp1, mp1, mp1] \setupalign[hz,hanging,verytolerant

[NTG-context] index sort order (de)

2024-05-14 Thread Henning Hraban Ramm
ere’s none for {zm,pm,zc,zm,uc} (upper like lower, ignore diacritics – basic default for German). """ \mainlanguage[de] \setupregister[index][language=de] \starttext \index{Apfel} \index{Äpfel} \index{apfel} \index{äpfel} \index{aepfel} \index{Aepfel} \index{Ápfel} \index{ápfel} \page

[NTG-context] Re: applying style to frame content

2024-05-14 Thread Wolfgang Schuster
ion up withshadecolors (red,blue); \stopMPcode \stoptexdefinition \starttext \Mystyle{hello} \stoptext but what is the proper way if i want to use this style as simple as \tfb in definition of this structures? such as: \defineframed[Myframe][frame=off,style=\tfb\Mystyle,] You can

[NTG-context] applying style to frame content

2024-05-14 Thread seyal . zavira
picture tt ; tt:= lmt_outline [ kind = "path", text = "\Myframe{#1}", ]; fill for i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirection up withshadecolors (red,blue); \stopMPcode \stopte

[NTG-context] Errors with 2024-05-11 LMTX

2024-05-12 Thread Rik Kabel
I have come across an error that halts processing with the latest release. The following demonstrates this: \setuppagenumbering [location=] \starttext  \dorecurse{36}{\dorecurse{19}{abc }}  \startplacetable[location=split,title={Table}]     \starttabulate[|p|p|]     \HL

[NTG-context] Re: no effect of \definefontfeature for adobevariablefontprototype

2024-05-12 Thread Hans Hagen
On 5/9/2024 10:38 PM, garu...@azules.eu wrote: Hi, trying to work with variable fonts, I am stuck at the very beginning. I can't see any effect of weight parameter. Using adobevariablefontprototypebold and adobevariablefontprototypelight is working. \starttext \definefontfeature[whatever

[NTG-context] Maybe an alignement issue of \vdots in mixed \NC and \VL (\definemathmatrix)

2024-05-12 Thread garulfo
Hi, the first \vdots in the third row is not centered. \starttext \definemathmatrix[mymatrix][matrix:parentheses] \startformula \startmymatrix \NC A_1\VL B_1\NR \HL \NC \vdots \VL \vdots \NR \NC \vdots \NC \vdots \NR% there is probably something from here \HL \NC A_n\VL B_n

[NTG-context] Re: outlinetext broken?

2024-05-11 Thread Hans Hagen
- outlines-003.pdf Description: Adobe PDF document \continuewhenlmtxmode \starttext \startMPpage[offset=10pt] draw lmt_outline [ text = "\mathematics{\sqrt{2}-1}" ] ; draw lmt_outline [ text = "\mathema

[NTG-context] no effect of \definefontfeature for adobevariablefontprototype

2024-05-09 Thread garulfo
Hi, trying to work with variable fonts, I am stuck at the very beginning. I can't see any effect of weight parameter. Using adobevariablefontprototypebold and adobevariablefontprototypelight is working. \starttext \definefontfeature[whatever][axis={weight:150}]% \definedfont

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread seyal zavira
> > > this is my MWE: > \definefontfeature [arabis] > [mode=node,language=dflt,script=arab, > init=yes,medi=yes,fina=yes,isol=yes, > liga=yes,dlig=yes,rlig=yes,clig=yes, > mark=yes,mkmk=yes,kern=yes,curs=yes] > \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] > \setupal

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
flt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] \setupalign[r2l] \starttext {\Ahang تَشْكِيل كَسْرَة} \stoptext \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 1

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
rs=yes] \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] \setupalign[r2l] \starttext {\Ahang تَشْكِيل كَسْرَة} \stoptext \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] but there is an issue with widths, ill send you a patch to test The provided "*arabic" featurese

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
e.com/file/d/1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr/view?usp=sharing> this is my MWE: \definefontfeature [arabis] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \definefont [Ahang] [file:Ahang-Regular.otf*ar

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
-Regular.otf*arabis at 18pt] \setupalign[r2l] \starttext {\Ahang تَشْكِيل كَسْرَة} \stoptext \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] but there is an issue with widths, ill send you a patch to test Hans

[NTG-context] rendering arabic diacritics

2024-05-09 Thread seyal . zavira
this is my MWE: \definefontfeature [arabis] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] \setupalign[r2l] \starttext {\Ahang

[NTG-context] Re: more register questions!

2024-05-07 Thread Rik Kabel
te counter with the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-07 Thread Wolfgang Schuster
ligatures? I’m interested in not disabling hz and hanging. \typebuffer disables automatic \endash and \emdash with the \nohyphencollapsing command but the command isn't used for \typeinlinebuffer. \starttext \type{--} = -- \nohyphencollapsing \type{--} = -- \dohyphencollapsing \type

[NTG-context] weird \inlinetypebuffer interaction

2024-05-06 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startbuffer context --purgeall \stopbuffer inline \typeinlinebuffer block: \typebuffer \stoptext As long as there is no defined font family for mono

[NTG-context] Re: transparent color

2024-05-06 Thread Wolfgang Schuster
fairly obvious format. \definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1] \starttext %\showcolorcomponents [yellow] \framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow} \framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley} \st

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Wolfgang Schuster
Mikael Sundqvist schrieb am 05.05.2024 um 16:45: Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote: \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm] \starttext \latexdesc{1540} some event happened

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Mikael Sundqvist
Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote: > > > \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, > alternative=hanging, width=broad, margin=1cm] > > \starttext > > \latexdesc{1540} some event happened > \latex

[NTG-context] Why is this description environment not showing the correct title?

2024-05-05 Thread Joel via ntg-context
\definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm] \starttext     \latexdesc{1540} some event happened     \latexdesc{1541} some other event happened     \latexdesc{1542} some event happened quite different \stoptext I

[NTG-context] Re: Switch number and enumeration text

2024-05-04 Thread Henning Hraban Ramm
=Theorem,   style=italic,   headstyle=bold,   headcommand=\groupedcommand{}{.}, ] \starttext Did you try: text=, stopper={ Theorem}, ? There are so many parameters in https://wiki.contextgarden.net/Command/setupenumeration and https://wiki.contextgarden.net/Command/setupcounter … Hraban

[NTG-context] Switch number and enumeration text

2024-05-03 Thread Jethro Djan
, headcommand=\groupedcommand{}{.}, ] \starttext \chapter{} \section{} \starttheorem This is a theorem \stoptheorem \stoptext Many thanks, Jethro ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
] \stopxmlsetups \def\IndexPageCommand#1% {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \xmlprocessbuffer{main}{test}{} \stoptext On 5/3/24 12:18, Wolfgang

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem}\expanded{\setreg

[NTG-context] How to obtain the hbox's node when there is only one hbox for an entire paragraph?

2024-05-01 Thread 黄复雄
unction Moduledata.jiazhu.main(head) show_detail(head,"head") return head, true end nodes.tasks.appendaction("processors", "after", "Moduledata.jiazhu.main") \stopluacode \starttext \hbox{a b c} % The result is as follows (without the I expect

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Wolfgang Schuster
[preference,line] \stopxmlsetups \startxmlsetups xml:line \xmlflush{#1}\blank[samepage,none] \stopxmlsetups \startbuffer[test] The lines are there! The lines are there! The lines are there! \stopbuffer \starttext \samplefile{lorem} \xmlprocessbuffer{test}{test}{} \samplefile{lorem

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
=\paperwidth,height=\paperheight] \setupbackgrounds[page][background={mybkgr}] \starttext \setlayerframed [mybkgr] [] [background=color, framecolor=forestgreen, backgroundcolor=forestgreen, foregroundcolor=white, width=\paperwidth, height=\dimexpr\topspace+\headerheight\relax

[NTG-context] Re: \par and \startlines

2024-04-30 Thread Denis Maier via ntg-context
gt; \startbuffer[test] > > > > > The > lines > are > there! > > > The > lines > are > there! > > > The > lines > are > there! > > > > \stopbuffer > > \starttext > > \samplefile{lorem} > > \xmlproces

[NTG-context] Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread denis.maier
? Best, Denis % % Original MWE \define[2]\mytitle{% \switchtobodyfont[chorus]% #2 } \define[2]\mysubject{% \switchtobodyfont[chorus]% #2 } \setuphead[title][command=\mytitle] \setuphead[subject][command=\mysubject] \starttext \title{In Zapf Chancery

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-29 Thread Wolfgang Schuster
\defineframedtext [sidebartext] [width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft] \starttext This is a bit of text \placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{ 1. You're again passing assi

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22: Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false,

[NTG-context] unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false, macro = document.test, } \stopluacode \meaningfull\testing

[NTG-context] Re: QR Code

2024-04-29 Thread Henning Hraban Ramm
"/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib" 3) Running the wiki example: \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \bar

[NTG-context] Re: QR Code

2024-04-28 Thread Benjamin Buchmuller
So, I hardcoded libfile in libs-impzint.lmt to local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib" 3) Running the wiki example: \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrc

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
] defineframedtext [sidebartext] [width=.4textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft] starttext This is a bit of text placefloat[newsidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{ startsidebartext This is a short

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread Henning Hraban Ramm
framedtext [sidebartext] [width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft] \starttext This is a bit of text \placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{ \startsidebartext This is a sho

[NTG-context] Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft] starttext This is a bit of text placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{ startsidebartext This is a short sidebar stopsidebartext } And something to follow. A bit

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
Thank you! --Joel On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 27.04.2024 um 19:16: > \starttext >  test\high{1}test\footnote{some text} > \stoptext > > How can I create a superscript number that has e

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 27.04.2024 um 19:16: \starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way

[NTG-context] How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
\starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way to superscript text, but if you compile this, you can see

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

2024-04-27 Thread Wolfgang Schuster
zed with the setups of the new namespace. begin example \unprotect \installnamespace {sidenote} \installframedcommandhandler \sidenote {sidenote} \sidenote \protect \starttext \inheritedsidenoteframed{Text in a frame!} \setupsidenote[framecolor=red,

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
\xmlflush{#1}\blank[preference,line] \stopxmlsetups \startxmlsetups xml:line \xmlflush{#1}\blank[samepage,none] \stopxmlsetups \startbuffer[test] The lines are there! The lines are there! The lines are there! \stopbuffer \starttext \samplefile{lorem} \xmlprocessbuffer{test

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
en you add a \par you just end the current line/paragraph and it >> doesn't matter how many \par's you use because TeX just ignores them. >   > I see. But there's no command that could be used to simulate an empty line? Crappy code: \starttext a\dorecurse{25}{\par}b a\dorecurse

[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
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}% {#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
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 lines

[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

[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
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\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
nt = "short", righttext = righttext}) context("]") end \stopluacode \startsetups btx:aps:cite:special \btxcitereference \ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==], [==[\currentbtxrighttext]==])} \stopsetups \setupbtx[aps:cite][al

[NTG-context] Re: start/stopregister

2024-04-25 Thread Henning Hraban Ramm
but not 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]{Bibliografie

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
] \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 interest

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

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

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

2024-04-24 Thread Wolfgang Schuster
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 warmly

[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
2, 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 > \startpostponing >      

[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

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

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

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

2024-04-22 Thread Jean-Pierre Delange
iography 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{Footnote} >

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

2024-04-22 Thread Pablo Rodriguez via ntg-context
nds 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 \input kn

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

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

[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     \placefigure{Caption

[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
%%% \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}{\externalfigure[cow

[NTG-context] Re: kpfonts

2024-04-21 Thread Xavier B.
t? > > 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! mail

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

2024-04-20 Thread garulfo
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 welcome

[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

  1   2   3   4   5   6   7   8   9   10   >