Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context
eadertexts   [\doif{\pagenumber}{1}{\directsetup{header}}] \setupfootertexts   [\doifnot{\totalnumberofpages}{1}{\directsetup{footer}}] \starttext \dorecurse{12}{\samplefile{lorem}\par} \stoptext stop example 1 start example 2 \startsetups [header]     \setupheader[state=high]     \startframed

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Devoir maison}, number={2}, day={22}, month={08}, year={2021}, location={Terminale}, time={2 heures}] \starttext \samplefile{lorem} \stoptext

Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context
[lecturenumber] \doiftext{\getmarking[lecture]}{: \getmarking[lecture]} \stopsetups \setupfootertexts [\directsetup{footer:left}] [] \starttext \completecontent \startlecture [title={Foo}] Foo bar baz \stoplecture \page \startlecture Foo bar baz \stoplecture \stoptext Wolfgang

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \stopsetups \startsectionblockenvironment [bodypart] \directsetup{section:chapter} \stopsectionblockenvironment \doifmode{*component}{\directsetup{section:chapter}} ... \endenvironment end environment

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context
component \startcomponent [*] \environment [...] ... \stopcomponent end component begin environment \startenvironment [*] \startsetups [section:chapter]     \setuphead     [chapter]     [...] \stopsetups \startsectionblockenvironment [bodypart]     \directsetup{section:chapter

Re: [NTG-context] Footer

2021-07-06 Thread Fabrice Couvreur
[ > width=\linewidth, > height=\strutht, > depth=\dimexpr\footerheight+\bottomspace\relax, > ]} > \space > \prefixedpagenumber > \stopsetups > > \setuplabeltext > [en] > [chapter=Chapter] >

Re: [NTG-context] Footer

2021-07-05 Thread Wolfgang Schuster
oterheight+\bottomspace\relax, ]} \space \prefixedpagenumber \stopsetups \setuplabeltext [en] [chapter=Chapter] \setuphead [chapter] [bodypartlabel=] \setupfootertexts [] [\directsetup{footer:rightpage}] [\directsetup{footer:leftpage}] [] \setuppag

Re: [NTG-context] Loop?

2021-02-13 Thread Wolfgang Schuster
ake adding and removing (can be done by commenting entries with %) you can use the \starttexdefinition environment with each name on a separate line. begin example \starttext \startsetups [NameEntry] Person Number \recursestring\par \stopsetups \doloopoverlist{One,Two,Three,Four}{\directsetup

[NTG-context] issue with \cite in ConTeXt ver: 2020.12.22 22:14 LMTX fmt: 2020.12.22

2020-12-22 Thread Alan Bowen
}]}% } \def\startbibitem{\dodoubleempty\dostartbibitem} \def\stopbibitem{\stopBibItem} \definedescription[BibItem][ width=broad, margin=1.5pc, indenting={no}, indentnext=no, alternative=hanging, hang=1, headcommand=\gobbleoneargument, align=right, before={\directsetup{tightspace}\bgroup\language

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
er}     \NC \pagenumber      \NC \lastpagenumber    \NC\NR      \NC \tex{userpagenumber} \NC \userpagenumber  \NC \lastuserpagenumber \NC\NR      \stoptabulate \stopsetups \setupfootertexts[\directsetup{footer}] \starttext \dorecurse{10}{\dontleavehmode\page} \

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
annumerals] > > \startsetups [footer] > \starttabulate[|l|c|c|] > \NC \bf Command \NC \bf Current page \NC \bf Last page >\NC\NR > \NC \tex{pagenumber} \NC \pagenumber \NC \lastpagenumber >\NC\NR > \NC \tex{userpagenumber} \NC \user

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
pagenumber \NC \lastuserpagenumber \NC\NR \stoptabulate \stopsetups \setupfootertexts[\directsetup{footer}] \starttext \dorecurse{10}{\dontleavehmode\page} \stoptext Wolfgang ___ If your question is of interest to

Re: [NTG-context] \section with userdata

2020-11-07 Thread Wolfgang Schuster
,foregroundstyle=\tttf]{end of section} \stopsetups \setuphead [section] [beforesection=\directsetup{beforesection}, insidesection=\directsetup{insidesection}, aftersection=\directsetup{aftersection}] \starttext \startsection[title=\tex{startsection}] \samplefile{ward}\par \stopsection \page

Re: [NTG-context] Best way to store text for later use

2020-09-19 Thread Denis Maier
{abstract} \stopabstract \stopsetups \setuphead [chapter][ alternative=middle, page=yes, indentnext=no, style=\tfa\setupinterlinespace, after={\directsetup{placeauthors}\directsetup{abstract}}, footer=chapterfooter, ] How could I fetch the xml node from here so I

Re: [NTG-context] Best way to store text for later use

2020-09-19 Thread Hans Hagen
\setuphead [chapter][     alternative=middle,     page=yes,     indentnext=no,     style=\tfa\setupinterlinespace,     after={\directsetup{placeauthors}\directsetup{abstract}},     footer=chapterfooter,     ] How could I fetch the xml node from here so I don't need a variable, buffer or the like

Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Denis Maier
{abstract}     \stopabstract \stopsetups \setuphead [chapter][     alternative=middle,     page=yes,     indentnext=no,     style=\tfa\setupinterlinespace,     after={\directsetup{placeauthors}\directsetup{abstract}},     footer=chapterfooter,     ] How could I fetch the xml node from here so I

[NTG-context] tabulation and \textwidth

2020-08-13 Thread Pablo Rodriguez
Dear list, I have this sample: \showframe \startsetups[footers] \starttabulate [|cw(.5\textwidth)| cw(.5\textwidth)|] [unit=0pt] \NC one\NC two\NC\NR \stoptabulate \stopsetups \setupfootertexts[\directsetup{footers}] \starttext \dorecurse{20}{\input{zapf.tex}\par

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-05 Thread Willi Egger
What to change in order to get the desired result? > > begin example > \startsetups [section:odd] > \vfill > \bold {End of odd numbered section} > \stopsetups > > \startsetups [section:even] > \vfill > \bold {End of even numbered section} > \stopsetups &g

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Wolfgang Schuster
\bold {End of odd numbered section} \stopsetups \startsetups [section:even] \vfill \bold {End of even numbered section} \stopsetups \startsetups [section:end] \ifodd\namedheadnumber{section} \directsetup{section:odd} \else \directsetup{section:even} \fi \stopsetups \setuphead

[NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
dstrut } \strc_rendering_inject_number_and_text ...def \p_command {\headparameter \c!command }\ifx \p_command \empty \directsetup \currentheadrenderingsetup \else \p_command \headnumbercontent \headtextcontent \fi \strc_rendering_place_head_number_and_text ...}\useheadstyleparameter \c!style \setinlineheadreferenceattr

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
ions in order to adapt what you sent to my case. I played a bit with your second solution, as in: %%% begin sidenote-Hans.tex \showframe \setupinteraction[state=start] \setuplayout [cutspace=7cm, width=middle, margin=5cm, margindistance=7mm] \setuptexttexts [marg

Re: [NTG-context] lmtx update

2020-08-01 Thread Hans Hagen
[cutspace=5cm, width=middle, margin=4cm] \setuptexttexts [margin] [] [{\directsetup{notabene}}] \startsetups notabene \vbox to \textheight \bgroup \setupalign[tolerant] \topskipcorrection \placenotes[endnote][before=,after=] \vfilll \egroup

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
]   [after=\directsetup{chapter:after}] % \setuphead %   [title] %   [after={\blank[...]}] \starttext \dorecurse{10}   {\chapter{Chapter #1}    \input knuth} \stoptext Wolfgang ___ If your question is of interest to others

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
}}{}{% if image empty }{% \directsetup{noheader} \vbox{% {\ChapterFont\structurevariable{title}\par}% \blank[big] \externalfigure[img/\structureuservariable{image}][width=0.8\textwidth]\par } \doifnot{\structureuservariable{vita}}{}{% if vita \vfill \vbox

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
ething >    {\datasetvariable{chapter}{\ChapterCounter}{image}} >    {\startlayout[page] >     \centerbox{\externalfigure > [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]} >     \stoplayout}} > > \stopsetups > > \setuphead >   [chap

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
}}    {\startlayout[page]     \centerbox{\externalfigure [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]}     \stoplayout}} \stopsetups \setuphead   [chapter]   [page=,    beforesection=\directsetup{chapter:before}, insidesection={\setdataset[chapter][\ChapterCounter][image

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [ page=yes, before=\directsetup{chapter:before}, ] \setupexternalfigure[location=default] \starttext \startchapter [title={foo

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [ page=yes, before=\directsetup{chapter:before}, ] \setupexternalfigure[location=default] \starttext \startchapter [title={foo}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter

Re: [NTG-context] bug in \doifinset

2020-05-27 Thread Wolfgang Schuster
{yes} {no} \stopsetups \directsetup{check} \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailma

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Wolfgang Schuster
\NC\NR \NC Chapter\EQ \rawcountervalue[section:chapter] \NC\NR \NC Section\EQ \rawcountervalue[section:section] \NC\NR \stoptabulate \stopsetups \setupheadertexts[\directsetup{header:pagenumber}] \starttext %\dorecurse{10}{\samplefile{lorem}} \dorecurse{5} {\chapter{Chapter

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
,height=max,] % frame=off,topframe=on,bottomframe=on some text in the middle block \stopframed \startframed[width=0.25\hsize,height=max] some text in the right block \stopframed \stopframed \stopframed \stopsetups

Re: [NTG-context] fancy chapter setup

2020-01-13 Thread Wolfgang Schuster
  [chapter]     [\ChapterData]     [   title=\structurevariable{title}, subtitle=\structureuservariable{subtitle}] \stopsetups \setuphead   [chapter]   [page=,    beforesection=\directsetup{chapter:leftpage},    insidesection=\directsetup{chapter:savedata}] \setuppagenumbering[alternative=d

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
ad[chapter][ page=yes, before={\directsetup{FancyChapter}}, ] \setuppagenumbering[alternative=doublesided] \starttext \completecontent \startchapter[title={My Normal Text}] \input knuth \stopchapter \def\PreImg{Real} \startbuffer[Quote] I thought that was real. \stopbuffer \startchapter[title

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
apter][ page=yes, before={\directsetup{FancyChapter}}, ] \setuppagenumbering[alternative=doublesided] \starttext \completecontent \startchapter[title={My Normal Text}] \input knuth \stopchapter \startchapter[title={My Fancy Story}] [subtitle={\quotation{I thought that was real.}}] \input

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
eparate overlay to better control the positioning. Perhaps a bit > overthought, but it works for me … Thank you, looks interesting. I’ll try to adapt that before=\directsetup approach to my project. Best, Hraban __

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
head  [chapter][   style=\tfc\HeadFont,   page=yes,   separator=,   numbercolor=darkgray,   alternative=inmargin, before=\directsetup{chapter:epigraph}, after={\resetshownsyno

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
}] [D,month,{ },year] \stopframed}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Corrigé du devoir maison}, number={1}, day={22}, month={10}, year={2019}, location={Secondes GTE-GTF}, time

Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Aditya Mahajan
an be cumbersome to read. So, we can use setups: \def\totalpoints{0} \startsetups updatepoints \edef\totalpoints{\the\numexpr(\totalpoints + \getvariable{exam}{points})\relax} \stopsetups \setvariables [exam] [ points=0, set=\directsetup{updatepoints}, ] \starttext \se

Re: [NTG-context] passing variables/data between context and lua

2019-10-06 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 06.10.2019 um 07:11: Hello Wolfgang, what exactly does the command "\setvariable{martin}{set}{\directsetup{martin}}"? Let's start with a simple example where I set a values with the \setvariables command. \setvariables   [metadata]   [author=Rudolf Bah

Re: [NTG-context] passing variables/data between context and lua

2019-10-05 Thread Rudolf Bahr
ariable("martin","points",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=4

Re: [NTG-context] passing variables/data between context and lua

2019-09-29 Thread Martin Althoff
",points) ; > context.setvariable("martin","answer",answer) ; > \stoplua > \stopsetups > > \setvariable{martin}{set}{\directsetup{martin}} > > \starttext > > \setvariables [martin] [question=44] > > Points: \getva

Re: [NTG-context] passing variables/data between context and lua

2019-09-27 Thread Wolfgang Schuster
;points",points) ;     context.setvariable("martin","answer",answer) ;     \stoplua \stopsetups \setvariable{martin}{set}{\directsetup{martin}} \starttext \setvariables [martin] [question=44] Points: \getvariable{martin}{points} The answer is \getvariab

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
>       \stopframed}] > >      [{\startframed [headerframed] >          [align=flushright,foregroundstyle=] > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] >     

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
d] > > [align=flushright,foregroundstyle=] > > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > > \stopframed}] > > > > \stopsetups > > > > \setvariable{headertext}{set

Re: [NTG-context] no pagenumber depending of number of lines?

2019-09-08 Thread Henning Hraban Ramm
> \page[header,yes] > \fi > \stopsetups > > % remove header when there are less than 20 lines of text > > % \startsetups[chapter:after] > % \par > % \getnoflines{\pagetotal} > % \ifnum\noflines<20 > % \page[header,yes] > % \f

Re: [NTG-context] no pagenumber depending of number of lines?

2019-09-08 Thread Wolfgang Schuster
nes{\pagetotal} % \ifnum\noflines<20 % \page[header,yes] % \fi % \stopsetups \setuphead[chapter][aftersection=\directsetup{chapter:after}] \starttext \startchapter \dorecurse{14}{\samplefile{ward}} \stopchapter \startchapter \dorecurse{18}{\samplefile{ward}} \stopchapter \st

Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi Wolfgang! Sadly, it still didn’t work: \startsetups[headertext] \startframed[frame=off,align=flushright,width=fit] \setuplocalinterlinespace[12pt] \the\baselineskip\\ abc \stopframed \stopsetups \setupheadertexts[\directsetup{headertext}] \starttext \setupinterlinespace

Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi, Yikes! Erm… MWE: \startsetups[headertext] \startframed[frame=off,align=flushright,width=fit] { \setupinterlinespace[12pt] \the\baselineskip\\ abc } \stopframed \stopsetups \setupheadertexts[\directsetup{headertext}] \starttext { \setupinterlinespace[24pt] \input

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \startuseMPgraphic{framewithshadow} path p; p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle; fill p shifted (2,-2); fill p withcolor 0.8white; draw p; setbounds currentpicture to p; \stopuseMPgraphic

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
{headertext}{set}{\directsetup{headertext}} \startuseMPgraphic{framewithshadow} path p; p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle; fill p shifted (2,-2); fill p withcolor 0.8white; draw p; setbounds currentpicture to p; \stopuseMPgraphic \defineoverlay

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
}] \stopsetups \setvariable{headertext}{set}{\directsetup{headertext}} \startuseMPgraphic{framewithshadow} path p; p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle; fill p shifted (2,-2); fill p withcolor 0.8white; draw p; setbounds currentpicture to p

Re: [NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
kground=color,backgroundcolor=rojo] > \page[yes,header,footer,right] > \popbackground} > \stopsetups > > \setuphead[chapter] > [width=20em, > before=\directsetup{chapter:before}, > > Apply the above setup with > > beforesection=\directsetup

Re: [NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Wolfgang Schuster
,footer,right] \popbackground} \stopsetups \setuphead[chapter]           [width=20em, before=\directsetup{chapter:before}, Apply the above setup with beforesection=\directsetup{chapter:before}, Wolfgang

[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
pagebreak][yes,header] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=rojo] \page[yes,right] \popbackground} \stopsetups \setuphead[chapter] [width=20em, before=\directse

[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
\setupbackgrounds[page][background=color,backgroundcolor=rojo] \page[yes,right] \popbackground} \stopsetups \setuphead[chapter] [width=20em, before=\directsetup{chapter:before}, align={flushleft,nothyphenated,verytolerant}, style={\t

Re: [NTG-context] filling page to bottom

2019-05-15 Thread Wolfgang Schuster
]   \directsetup{*reset}   \nopenalties \stopsetups \showgrid \starttext \dorecurse{10}{\samplefile{knuth}} \page \setuplayout[setups=hvdm] \dorecurse{10}{\samplefile{knuth}} \stoptext Wolfgang ___ If your

Re: [NTG-context] issue with page numbering

2019-05-08 Thread Pablo Rodriguez
hapter:after] >   \page >   \resetsubpagenumber > \stopsetups > > \setuphead >   [chapter] >   [aftersection=\directsetup{chapter:after}] Many thanks for your fast reply, Wolfgang. It works perfectly fine. It doesn’t work in my real document, but it took me a while to realize that

Re: [NTG-context] issue with page numbering

2019-05-08 Thread Wolfgang Schuster
at the end of each chapter. \startsetups [chapter:after]   \page   \resetsubpagenumber \stopsetups \setuphead   [chapter]   [aftersection=\directsetup{chapter:after}] Wolfgang ___ If your question is of interest to others

Re: [NTG-context] endnotes customizing how?

2019-04-09 Thread Rik Kabel
[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one

Re: [NTG-context] endnotes customizing how?

2019-04-09 Thread Wolfgang Schuster
) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] \setupnote [endnote] [setups=setups:endnotes] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made

[NTG-context] endnotes customizing how?

2019-04-09 Thread Hans van der Meer
] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4) \setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics

Re: [NTG-context] Troubles with the \cldcontext command

2019-04-02 Thread Willi Egger
pulate the page number. However I > get an error: > > > MWE: > > \setuppapersize [A6] [A6] > > \setuppagenumbering[location=none] > > \startsetups [Pagenumber] > \doifrightpageelse >{\cldcontext{"\letterpercent d",(\pagenumber+1)/2}} >

[NTG-context] Troubles with the \cldcontext command

2019-04-02 Thread Willi Egger
stopsetups \setupfootertexts [\directsetup{Pagenumber}] \setupbodyfont [pagella,9pt] \starttext \startstandardmakeup Hello world! \stopstandardmakeup \dorecurse{3}{TEST\page} \stoptext Error: \cldcontext #1->\directlua {context(#1)} \ignorecrlf

Re: [NTG-context] A strange request...

2019-02-20 Thread Wolfgang Schuster
[pagenumber] \doifoddpageelse {\cldcontext{"\letterpercent d",(\pagenumber+1)/2}} {} \stopsetups \setupheadertexts [\directsetup{pagenumber}] \starttext \dorecurse{10}{\samplefile{knuth}} \stoptext Variant 2: \defineexpandable[1]\DwarsliggerNumber {\cldcontext{"\

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
\stopframed > > }] > > [{ > > \startframed [headerframed] > > [align=flushright,foregroundstyle=\ssx] > >Lycée LA SALLE\\ > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
t; }] > > [{ > > \startframed [headerframed] > [align=flushright,foregroundstyle=\ssx] > >Lycée LA SALLE\\ > > > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > > \stopframed >

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > > \setvariable{headertext}{set}{\directsetup{headertext}} > \setvariables > [headertext] > [title={Devoir

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
}] [{ \startframed [headerframed] [align=flushright,foregroundstyle=\ssx] Lycée LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \stopframed }] \stopsetups \setvariable{headertext}{set}{\directsetup

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
headertext}{set}{\directsetup{headertext}} \setvariables [headertext] [title={Interrogation écrite}, number={6}, day={4}, month={02}, year={2019}, location={Seconde GTE}, time={55 minutes}] \starttext \input Knuth \stoptext Le dim. 27 janv. 2019 à 17:54, Ota

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
LA SALLE\\ \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]     \stopframed     }]   \stopsetups   \setvariable{headertext}{set}{\directsetup{headertext}}   \setvariables   [headertext]   [title

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
ée LA SALLE\\ > > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] > \stopframed > }] > > \stopsetups > > \setvariable{headertext}{set}{\directsetup{headertext}} > > \setvar

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
}{\directsetup{headertext}} \setvariables [headertext] [title={Interrogation écrite}, number={6}, day={29}, month={01}, year={2019}, location={Seconde GTE}, time={55 minutes}] \starttext \input Knuth \stoptext

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
> \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=gray] > \page[right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=yes, >before=\

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Otared Kavian
> > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=gray] > \page[right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=

[NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{2

Re: [NTG-context] How to adjust inter item vertical space

2019-01-16 Thread Otared Kavian
Hi, You can define your own white space and then attribute it to each item, as in the following: \setupwhitespace[big] \startsetups[mywhitespace] \setupwhitespace[small] \setupblank[small] \stopsetups \setupitemize[each][inner=\directsetup{mywhitespace}] \starttext \input knuth

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-16 Thread Hans Hagen
ackground=color,backgroundcolor=black]  \page[empty,right]  \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{10}{\samplefile{knuth}} \stopchapter \startchapter[title={Zapf}] \dorecurse{1

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Jeong Dal
color to a named color, placing an image >>>>>> or some graphics on the page. >>>>>> >>>>>> Is there a way to define such a page, name it and call it in >>>>>> \startchapter so that it is placed on the left side. >>>&

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Hans Hagen
ng [alternative=doublesided] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, befo

[NTG-context] MetaFun: how to check the number of arguments

2019-01-14 Thread Jeong Dal
an change the background color > of a empty page before the chapter title. > > \setuppagenumbering > [alternative=doublesided] > > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-14 Thread Wolfgang Schuster
]   \doifoddpageelse     {}     {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Jan U. Hasecke
>   \doifoddpageelse >     {} >     {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=black] > \page[empty,right] > \popbackground} > \stopsetups > > \setuphead >   [chapter] >   [page=yes, >    before=\directsetup{chapter:before}] >

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{10}{\samplefile{knuth}} \stopchapter

Re: [NTG-context] whitespace inside a description

2018-12-01 Thread Wolfgang Schuster
}, inbetween={\directsetup[small:whitespace]}] \starttext \input knuth \startdescription{Knuth} \input knuth \stopdescription \stoptext How can I get a different whitespace inside the description? \setupdescription [description] [style={\setupwhitespace[small

[NTG-context] whitespace inside a description

2018-11-30 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupwhitespace[big] \startsetups[small:whitespace] \setupwhitespace[small] \stopsetups \definedescription [description] [setups={small:whitespace}, inbetween={\directsetup[small:whitespace

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
> on chapter pages? > > one of the many ways ... > > \definelayer > [chapter] > [width=\paperwidth, >height=\paperheight] > > \defineoverlay > [pagebackground] > [\directsetup{pagebackground}] > > \setupbackgrounds > [page] > [background=pageb

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Hans Hagen
=\paperheight] \defineoverlay [pagebackground] [\directsetup{pagebackground}] \setupbackgrounds [page] [background=pagebackground] \startsetups pagebackground \doifelsemode {chapterpage} { \setlayer [chapter] [preset=middle] {\scale[width=\textwidth

Re: [NTG-context] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
\startsetups[setups:endnotes] >\setupwhitespace[5em] >\stopsetups > >\setupnote >[endnote] >[before=\directsetup{setups:endnotes}] > >\starttext >\dorecurse{5}{\input zapf\endnote{\input knuth}} >\place

Re: [NTG-context] whitespace between endnotes

2017-07-14 Thread Pablo Rodriguez
n \setupnote, \setupnotation > or one of its friends perhaps? Hans, I guess this is what you need: \startsetups[setups:endnotes] \setupwhitespace[5em] \stopsetups \setupnote [endnote] [before=\directsetup{setups:endnotes}] \starttext \dorecurse{5}{\inp

[NTG-context] hunting a lua stack error

2017-03-13 Thread Alan Bowen
ext=no, alternative=hanging, hang=1, headcommand=\gobbleoneargument, align=right, before={\directsetup{tightspace}\bgroup\language[packed]}, after={\egroup}, ] \definereferenceformat [cite] [type=title,left={},right={}] \definereferenceformat [bibpage] [type=page] %\setupinteract

[NTG-context] list items not broken in lines

2017-03-06 Thread Pablo Rodriguez
] [alternative=d, pagenumber=no, headnumber=no, style=\itx, criterium=local] \par \stopalign \stopsetups \setuplist[chapter][after=\directsetup{placelist:section}] \starttext \placelist[chapter] \dorecurse{4}{\chapter{Chapter} \dorecurse{20}{\section{Section

Re: [NTG-context] new lua/stack error

2017-02-24 Thread Alan Bowen
f\startbibitem{\dosingleempty\dostartbibitem} >> \def\stopbibitem{\stopBibItem} >> >> \definedescription[BibItem][ >> width=broad, >> margin=1.5pc, >> indenting={no}, >> indentnext=no

Re: [NTG-context] new lua/stack error

2017-02-24 Thread Hans Hagen
c, indenting={no}, indentnext=no, alternative=hanging, hang=1, headcommand=\gobbleoneargument, align=right, before={\directsetup{tightspace}\bgroup\language[packed]}, after={\egroup}, ] \definereferencefo

Re: [NTG-context] new lua/stack error

2017-02-23 Thread Alan Bowen
t;>> >>> \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]} >>> \def\startbibitem{\dosingleempty\dostartbibitem} >>> \def\stopbibitem{\stopBibItem} >>> >>> \definedescription[BibItem][ >>> width=broad, >>> margin=1.5pc, &

Re: [NTG-context] new lua/stack error

2017-02-23 Thread Alan Bowen
artbibitem} >> \def\stopbibitem{\stopBibItem} >> >> \definedescription[BibItem][ >> width=broad, >> margin=1.5pc, >> indenting={no}, >> indentnext=no, >> alternative=hanging, >> hang=1, >> headcommand=\gobbleoneargument, >> align=rig

Re: [NTG-context] new lua/stack error

2017-02-23 Thread Hans Hagen
={\directsetup{tightspace}\bgroup\language[packed]}, after={\egroup}, ] \definereferenceformat [cite] [type=title,left={},right={}] \definereferenceformat [bibpage] [type=page] \starttext \startbibitem[A, B, and C]\stopbibitem % TEST by commenting these %\startbibitem[A{,} B{,} and C]\stopbibitem

Re: [NTG-context] new lua/stack error

2017-02-22 Thread Alan Bowen
}]} \def\startbibitem{\dosingleempty\dostartbibitem} \def\stopbibitem{\stopBibItem} \definedescription[BibItem][ width=broad, margin=1.5pc, indenting={no}, indentnext=no, alternative=hanging, hang=1, headcommand=\gobbleoneargument, align=right, before={\directsetup{tightspace}\bgroup\language[packed

Re: [NTG-context] question about \startitemize...\stopitemize (again)

2016-11-29 Thread Pablo Rodriguez
gt;> >> \setupwhitespace[5em] >> \startsetups[smallwspa] >> \setupwhitespace[small] >> \setupblank[small] >> \stopsetups >> \setupitemize[each][indenting=no, setups=smallwspa] > > \setupitemize[each][indenting=no,inner=\directsetup{smallwspa}] Wolfgang

Re: [NTG-context] question about \startitemize...\stopitemize (again)

2016-11-29 Thread Wolfgang Schuster
[small] \stopsetups \setupitemize[each][indenting=no, setups=smallwspa] \setupitemize[each][indenting=no,inner=\directsetup{smallwspa}] Wolfgang ___ If your question is of interest to others as well, please add an

Re: [NTG-context] bug in \directsetup?

2016-11-17 Thread Pablo Rodriguez
On 11/17/2016 09:29 PM, Hans Hagen wrote: > On 11/17/2016 8:53 PM, Pablo Rodriguez wrote: >> [...] >> I need the \directsetup to be able to set up a different interline space >> in the section list from TOC. I’m using latest beta from 2016.11.17 14:19. >> >> Ther

  1   2   3   >