[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

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

[NTG-context] Re: minwidth not working ?

2024-04-19 Thread Denis Maier via ntg-context
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[cow.pdf

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

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

[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
ations.details, publications.cite, publications.strings] > > > > \usebtxdataset[main][testdata.buffer] > > \usebtxdefinitions[aps] > > \setupbtx[dataset=main] > > \definebtxrendering[bibrendering][aps][dataset=main] > > > > % this seems to have no effect? >

[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
ings] > > \usebtxdataset[main][testdata.buffer] > \usebtxdefinitions[aps] > \setupbtx[dataset=main] > \definebtxrendering[bibrendering][aps][dataset=main] > > % this seems to have no effect? > \setupbtx[alternative=short] > > \starttext > > Knuth deve

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

2024-04-15 Thread Gerion Entrup
ave 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 something [PO00].

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

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

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

2024-04-15 Thread Biblio--- via ntg-context
s{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{50}{ccc } \sto

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

2024-04-14 Thread Peter Hopcroft via ntg-context
e 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 generally somewhat chaotic (e.g. ,

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

2024-04-14 Thread Henning Hraban Ramm
, but 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

[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
rent version: 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}, ] \starttext

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

2024-04-10 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 work. di

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

2024-04-09 Thread seyal zavira
ed, 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 outpu

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

2024-04-09 Thread Wolfgang Schuster
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] [ deeptex

[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
hs 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}}% \stopbuffer \setb

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

2024-04-07 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
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 ‒‒‒ \NC\NR \stop

[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
ere 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 \setupbodyfont[

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

2024-04-06 Thread Pablo Rodriguez via ntg-context
after 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 \start

[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
g 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 chapter

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

2024-04-03 Thread Bruce Horrocks
? \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{chapter

[NTG-context] Re: error with \sc

2024-04-02 Thread Mikael Sundqvist
> 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 | fatal error: return code: 1 &g

  1   2   3   4   5   6   7   8   9   10   >