Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
Dear Aditya, Jairo, Wolfgang, and Otared, Thank you for the replies and explanations. I also read the blog. In this case, using '##1’ is an easy way. For more complex table, I may use luacode. Thanks again. Best regards, Dalyoung

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Wolfgang Schuster
\starttabulate[|c|] \dorecurse{9}{\expanded{\NC \recurselevel \NC\NR}} \stoptabulate \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created with the \recurselevel 0 and 2 only in the second example. Does the tabulate cause the error? What

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
> On 21 Sep 2020, at 16:42, Aditya Mahajan wrote: > > On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > >> Aditya Mahajan schrieb am 21.09.2020 um 16:35: >>> […] > > You gave the same reply 11 years ago :-) which is also listed in the blog > post. … Which shows that some things don't change

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 21.09.2020 um 16:35: > > On Mon, 21 Sep 2020, Jeong Dal wrote: > > > > > Hi, > > > > > > I tried to make a table using \dorecurse or \doloop as in the example. > > > T

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
\dorecurse{8} {\startxrow\startxcell \recurselevel \stopxcell\stopxrow} \stopxtable \stoptext Best regards: Otared K. > On 21 Sep 2020, at 16:07, Jeong Dal wrote: > > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 21.09.2020 um 16:35: On Mon, 21 Sep 2020, Jeong Dal wrote: Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
2020 a la(s) 09:16, Jeong Dal (hak...@me.com) escribió: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the > first example and only two rows are created with the \recurselevel

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Jeong Dal wrote: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the first > example and only two rows are created with the \recurselevel 0 and 2 only i

[NTG-context] Parallel text support

2020-09-21 Thread Denis Maier
Hi, I'm trying to typeset a parallel text that should appear in columns. The sources are XML, and there I have to use tables for this. So, I thought the easiest way is to use extreme tables for this: = \starttext \dorecurse{3}{\input knuth} \startxtable[split=yes

Re: [NTG-context] columns yet again

2020-09-20 Thread Thomas A. Schmitz
On 9/17/20 3:23 PM, Hans Hagen wrote: \setuplayout[width=16cm] \starttext \enabledirectives[tabulate.linenumbers] \showframe \starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|]     \NC     \startlinenumbering     \dorecurse{10}{\input ward \par

Re: [NTG-context] columns yet again

2020-09-17 Thread Hans Hagen
\startlinenumbering \dorecurse{10}{\input ward \par} \stoplinenumbering \NC \dorecurse{3}{\input tufte \par} \NC \NR \stoptabulate \disabledirectives[tabulate.linenumbers] \starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|] \NC \startlinenumbering

[NTG-context] columns yet again

2020-09-13 Thread Thomas A. Schmitz
] \setupcolumnset[example:6][width=6cm] \starttext \startcolumnset[example] \dorecurse{5}{ \dorecurse{3}{\fakewords{10}{15}\par} \column[yes] } \stopcolumnset \stoptext ends in "tex error > tex error on line 23 in file /tmp/test.tex: ! Undefined control sequence So I'm a bit confus

[NTG-context] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar
,grid=yes] \showframe \usemodule[newcolumnsets] \definecolumnset[colset][n=2] \starttext \startcolumnset[colset] \section{One section} \dorecurse{16}{\input ward \par} \placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]} \section{Two section

Re: [NTG-context] Appendix question

2020-09-08 Thread Wolfgang Schuster
] \setuplabeltext [en] [chapter=Chapter , appendix=Appendix ] \starttext \startbodymatter \stopbodymatter \dorecurse{5}{\chapter{Chapter #1}} \startappendices \dorecurse{5}{\chapter{Chapter #1}} \stopappendices \stoptext Wolfgang

Re: [NTG-context] Fullwidth topfigure with caption in the margin

2020-09-08 Thread Mikael Sundqvist
caption[topfigure][ > number=no, > location=bottom, > style={\switchtobodyfont[8bp]}, > ] > \starttext > \dorecurse{4}{\samplefile{knuth}} > > \startplacetopfigure[title={\samplefile{ward}}] > \blackrule[width=6.5in,height=2in,color=transparentred] > \stopplacetopfigure

[NTG-context] Fullwidth topfigure with caption in the margin

2020-09-07 Thread Mikael Sundqvist
[topfigure][topfigures][figure] \setupfloat[topfigure][ default={margin}, location=flushleft, maxwidth=6.5in, ] \setupcaption[topfigure][ number=no, location=bottom, style={\switchtobodyfont[8bp]}, ] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacetopfigure[title={\samplefile{ward

[NTG-context] Force bottom float to be at the bottom

2020-09-07 Thread Mikael Sundqvist
at the bottom of the page? I hope what I ask makes sense. /Mikael \useMPlibrary[dum] \definefloat[bottomfigure][bottomfigures][figure] \setupfloat[bottomfigure][default=bottom] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacebottomfigure \externalfigure[dummy][width=\textwidth

Re: [NTG-context] new upload

2020-08-31 Thread Jairo A. del Rio
(): > > \starttext > > \showframe > > \enabletrackers[math.toysymbol] > > \definemathtoysymbol[Plus] [bin][+] > \definemathtoysymbol[Minus][bin][-] > \definemathtoysymbol[Equal][rel][=] > > $\dorecurse{199} { > x_{#1} \ifodd#1\relax\Plus\else\Minus\fi > }

[NTG-context] new upload

2020-08-31 Thread Hans Hagen
\showframe \enabletrackers[math.toysymbol] \definemathtoysymbol[Plus] [bin][+] \definemathtoysymbol[Minus][bin][-] \definemathtoysymbol[Equal][rel][=] $\dorecurse{199} { x_{#1} \ifodd#1\relax\Plus\else\Minus\fi } x_{200} \Equal n$ \blank \dorecurse{10} { test \discretionary

[NTG-context] wrong 2TOPSIDE?

2020-08-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \startmode[*first] \startbuffer[abcde] \setuppapersize[A5, landscape] \setupbodyfont[100pt] \starttext \dorecurse{158}{% \startmakeup[page][style=\bf\ss, align=center, pagestatus=start

[NTG-context] vertical align in tabulate paragraphs

2020-08-23 Thread Henning Hraban Ramm
influence this behaviour. Doesn’t seem to be grid or font related. Any hint where I could look? Hraban \usemodule[visual] \starttext \starttabulate[|p(0.33\textwidth)|p|] \dorecurse{100}{\NC:\fakewords{1}{15}–\NC–\fakewords{1}{20}.\NC\NR} \stoptabulate \stoptext

[NTG-context] Index confusion with first entry

2020-08-18 Thread Henning Hraban Ramm
][criterium=all] \startregister[index][test]{Knuth} \input tufte \index{Donald} \page \input knuth \index{Donald} \page \stopregister[index][test] \input darwin \page \dorecurse{5}{ \input knuth \index{Knuth}\index{Donald} \page } \stoptext Hraban

[NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Jairo A. del Rio
is not my girlfriend, it's just for the example (withcolor (normaldeviate,normaldeviate,normaldeviate) withpen pencircle scaled 1/5) scaled 1 ; \stopuseMPgraphic \dorecurse{20}{% \startplacefigure[location=force,number=no] \useMPgraphic{cornystuff} \stopplacefigure \page[yes] } \stoptext change

[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] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Wolfgang Schuster
][align=middle,pagestate=start,doublesided=no] \starttext \startfrontmatter \startmakeup[ToC] \placecontent \stopmakeup \chapter{Preface} \stopfrontmatter \startbodymatter \dorecurse{10}{\chapter{Foo}} \stopbodymatter \stoptext I have

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
tmakeup[ToC] \placecontent \stopmakeup \chapter{Preface} \stopfrontmatter \startbodymatter \dorecurse{10}{\chapter{Foo}} \stopbodymatter \stoptext I have no idea how to allow chapters to start at arbitrary pages when alternative=doublesided. Nicola ___

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
agenumbering[alternative=doublesided] \definemakeup[ToC][align=middle,pagestate=start] \starttext \startfrontmatter \startmakeup[ToC] \placecontent \stopmakeup \input{knuth} \stopfrontmatter \startbodymatter \dorecurse{10}{\chapter{Foo}} \st

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper
g >[alternative={singlesided,doublesided}] > > %\setuppagenumbering > % [alternative=singlesided] > > %\setuppagenumbering > % [alternative=doublesided] > > \setuphead >[chapter] >[page=right] > > \showframe > > \starttext > > \do

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
he second and third pagenumbering setup- \setuppagenumbering [alternative={singlesided,doublesided}] %\setuppagenumbering % [alternative=singlesided] %\setuppagenumbering % [alternative=doublesided] \setuphead [chapter] [page=right] \showframe \starttext \dorecurse{3} {

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
=chapterheader, footer=chapterfooter] \starttext \dorecurse{10} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{\numexpr2*\recurselevel\relax}{\samplefile{knuth}}} \stoptext end example Wolfgang Thank you Wolfgang! I tried to change your code from chapters to sections

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
\stopfrontmatter \startbodymatter \setuppagenumber[number=1] \dorecurse{10}{\startchapter[title={XYZ}]\input{tufte}\stopchapter} \stopbodymatter \stoptext

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-10 Thread Mike Cooper
% vertical position >[This is a chapter page] % content > > \definetext >[chapterfooter] > [footer] >[pagenumber] > > \setuphead > [chapter] >[header=chapterheader, > footer=chapterfooter] > > \starttext > > \dorecurse{

Re: [NTG-context] orphans and widows not working in LMTX?

2020-08-09 Thread Joseph Canedo
ng sample: > > \showframe\showgrid > \setuppapersize[A7] > \setuplayout[setups=*lessstrict] > \startsetups[*lessstrict] > \widowpenalty=1000 > \clubpenalty=1000 > \brokenpenalty=1000 > \stopsetups > \setupbodyfont[15

[NTG-context] orphans and widows not working in LMTX?

2020-08-09 Thread Pablo Rodriguez
\dorecurse{5}{a\\ b\\ c\\ d\par} \stoptext Compiling it with current latest in LMTX (2020.08.07 23:37) leaves an orphan line on page 2 (page #2 starts with "d"). MkIV beta from 2020.01.30 14:13 moves the the last line to avoid the orphan (page #2 starts with "c&q

[NTG-context] Wrong counting of lines and paragraphs

2020-08-07 Thread Marcus Vinicius Mesquita
] \setuphead[subject][alternative=text,style=bolditalic] \setuphead[subsubject][alternative=text,style=\ss] \setuphead[subsubsubject][alternative=text,style=\ss\it] \startbuffer[waltham] \input waltham \stopbuffer \starttext \startlinenumbering \starttitle[title={Waltham}] \dorecurse{4}{\getbuffer

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
subsection}] \dorecurse{2}{\getbuffer[mybuffer]} \stopsubsection \stopsection \stopchapter \startchapter [title={Second chapter}] \startsection [title={Second section}] \dorecurse{2}{\getbuffer[mybuffer]} \stopsection \stoptheorem \stopchapter \stoptext end example

Re: [NTG-context] teaser

2020-08-07 Thread Jairo A. del Rio
0 License. > Ok, here is the more robust variant: > > \blank > \ifnum\boxlines\EnglishBox=\boxlines\SpanishBox > \ifnum\boxlines\EnglishBox=\boxlines\FrenchBox > \ifnum\boxlines\EnglishBox>0 > \dorecurse{\boxlines\SpanishBox}{% >

Re: [NTG-context] teaser

2020-08-07 Thread Hans Hagen
=\boxlines\SpanishBox \ifnum\boxlines\EnglishBox=\boxlines\FrenchBox \ifnum\boxlines\EnglishBox>0 \dorecurse{\boxlines\SpanishBox}{% \dontleavehmode\llap{\hbox to 1.5em{\txx#1\hss}}% \boxline \EnglishBox#1\

Re: [NTG-context] teaser

2020-08-06 Thread Jairo A. del Rio
ssale épave, infinis et nus, Les sables monotones et solitaires s’étendent au loin. » \egroup \dorecurse{\boxlines \spanishbox}{% \strut\llap{\hbox to 1.5em{\txx#1\hss}}\boxline \englishbox#1\par \strut\boxline \spanishbox#1\par \strut\boxline \frenchbox#1\par \blank } \stoptext Thank you f

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-06 Thread Wolfgang Schuster
=chapterfooter] \starttext \dorecurse{10} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{\numexpr2*\recurselevel\relax}{\samplefile{knuth}}} \stoptext end example Wolfgang ___ If your question

Re: [NTG-context] limit of index entries?

2020-08-02 Thread Henning Hraban Ramm
it? >>> it might relate to protrusion (which needs to enter nested boxes to >>> determine an edge) but how that then can relate to the number of entries >>> puzzles me, unless we pop too less ... in which case i need to trace (with >>> a mwe) >> I can’t repro

Re: [NTG-context] limit of index entries?

2020-08-02 Thread Hans Hagen
need to trace (with a mwe) I can’t reproduce it with a simple example like \setupalign[hanging] \starttext \placeregister[index][criterium=all] \dorecurse{1}{\par\strut\index{Test\recurselevel}} \stoptext \recurselevel is empty in that context, \expanded didn’t help, but I guess we

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
][] [% {\framed[ align={flushright,bottom}, frame=off, height=\textheight, % width=\ColWidth, ]{% \strut\vfill\placenotes[footnote]}}% ] \starttext \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote \recurselevel}} } test \dorecurse{10

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
h \doloop { \page \ifvoid\MyNoteOverflow \exitloop \else \null \page \fi } \stopsetups \starttext \dorecurse{10}{ test \endnote{\input ward }\input tufte.tex \par test \endnote{This is a note a

Re: [NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Wolfgang Schuster
me options (and passes the values to \setupcounter). \setupfootertexts[\userpagenumber] \starttext \setupuserpagenumber[state=stop] \dorecurse{10}{\input knuth } \page \setupuserpagenumber[state=start,number=7] \dorecurse{10}{\input zapf } \stoptext

[NTG-context] question on page transitions

2020-07-25 Thread Pablo Rodriguez
onscreen[option=max, delay=5] \setuppagetransitions[random] \setupbodyfont[50pt] \starttext \dorecurse{2}{% \startmakeup[page][style=\bf\ss, align=center] \recurselevel \stopmakeup% } \stoptext The output PDF document may contain a /Page object such as: 6 0 ob

Re: [NTG-context] Presentation effects

2020-07-25 Thread Pablo Rodriguez
\setuppagetransitions[random] \setupbodyfont[50pt] \starttext \dorecurse{25}{% \startmakeup[page][style=\bf\ss, align=center] \recurselevel \stopmakeup% } \stoptext Just in case it helps,

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
, frame=off, location=always, ] \showframe \starttext \starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
tbackground[fondpaille] > [background=color, > backgroundcolor=fondpaille, > frame=off, > location=always] > > \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=no,location=right] > \externalfigure[dummy] &

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
gt; \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=no,location=right] > \externalfigure[dummy] > \stopplacefigure > \startitemize[n] > \dorecurse{3}{\startitem \input ward \stopitem} > \s

Re: [NTG-context] how to with \margindata

2020-07-15 Thread Hans van der Meer
panded twice. This interferes badly with the things I want to happen. > > No, the content is stored in a box and placed later. > > \definecounter[test] > > \starttext > > \dorecurse{10} > {\inleft{\incrementedcounter[test]}Line \recurselevel\par} > > \st

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
\starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stoptextbackground \stoptext Best regards

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackground

Re: [NTG-context] how to with \margindata

2020-07-15 Thread Wolfgang Schuster
is that macro expansions inside the {}'s are expanded twice. This interferes badly with the things I want to happen. No, the content is stored in a box and placed later. \definecounter[test] \starttext \dorecurse{10} {\inleft{\incrementedcounter[test]}Line \recurselevel\par} \stoptext Tracing

[NTG-context] Text around a figure

2020-07-15 Thread Fabrice Couvreur
] \placefloat[][right,none]{} {\externalfigure[dummy]} \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stopframedtext \stoptext ___ If your question is of interest

[NTG-context] About the table of contents

2020-07-11 Thread Fabrice Couvreur
[chapter,section,subsection] [criterium=all, interaction=all, alternative=c] \startchapter [title=My first chapter] \dorecurse{2}{\input knuth} \startsection [title=My first section] \dorecurse{2}{\input knuth} \startsubsection [title=My first subsection

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
t=0pt,width=max,frame=off] > \getinlineuserdata > \stopframedtext} > \stopsetups > > \showframe > \starttext > \startuserdata[margintext] > {\bf Remarque — }\input ward > \stopuserdata > \startuserdata[margintext] > \externalfigure[dummy][width=\rightma

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
\stopframedtext} \stopsetups \showframe \starttext \startuserdata[margintext] {\bf Remarque — }\input ward \stopuserdata \startuserdata[margintext] \externalfigure[dummy][width=\rightmarginwidth] \stopuserdata \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext > On 6

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
ration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] > > \starttext > > \startproposition[1] > > \dorecurse{10}{\input ward} > > \stopproposition > > \in[prop:1] > > \

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Otared Kavian
ration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] > \starttext > \startproposition[1] > \dorecurse{10}{\input ward} > \stopproposition > \in[prop:1] > \stoptext > > works almost perfectly.

[NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-05 Thread Jairo A. del Rio
The following: \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] \starttext \startproposition[1] \dorecurse{10

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
=high]} \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]} \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext Le jeu. 2 juil. 2020 à 19:04, Marco Patzer a écrit : > On Thu, 2

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
] \dorecurse{2}{\input knuth} \stopchapter \stoptext ___ 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/mailman/listinfo/ntg-context

Re: [NTG-context] pagecolumns: get the current column

2020-06-26 Thread Hans Hagen
\the\curCol}\input ward \InfoInMargin{\bf \the\curCol} \input ward} \starttext   \startpagecolumns[n=2,distance=25mm]   \dorecurse{5}{\TestText\par}   \stoppagecolumns \stoptext \c_page_col_current works most of the time, but unfortunately it tells you the current column before the lines

[NTG-context] pagecolumns: get the current column

2020-06-26 Thread mf
{\bf \the\curCol} \input ward} \starttext \startpagecolumns[n=2,distance=25mm] \dorecurse{5}{\TestText\par} \stoppagecolumns \stoptext \c_page_col_current works most of the time, but unfortunately it tells you the current column before the lines of a paragraph get distributed over columns

Re: [NTG-context] spacing before items

2020-06-17 Thread Hans Hagen
. \defineenumeration [question] [text=, alternative=serried, distance=1em, width=fit, before={\testpage[4]\blank[3*big]}, after={\blank}] \starttext \dorecurse{10}{ \startquestion \input ward \stopquestion \startitemize[packed,a] \startitem \input ward \stopitem

Re: [NTG-context] (no subject)

2020-06-17 Thread Taco Hoekwater
fi} > > \setuppapersize [A10][A8] > \setuparranging [1*4*reversed] > \setuplayout[margin=0pt, width=fit] > > \showframe > > \starttext > \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} > \stoptext > ``` > > imposition scheme i

[NTG-context] (no subject)

2020-06-17 Thread Malte Frank Gerdes
{#1}000\arrangedpageA % 4 \poparrangedpages \fi} \setuppapersize [A10][A8] \setuparranging [1*4*reversed] \setuplayout[margin=0pt, width=fit] \showframe \starttext \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \stoptext ``` imposition scheme

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
another approach. This sample reflects my problem: \setupinteraction[state=start] %~ \showframe\showgrid \starttext \dorecurse{41}{one line\par} \ \comment[location={rightmargin}]{comment} \stoptext Since layers are problematic for the task, I insert the comments right after the text

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
. I need another approach. This sample reflects my problem: \setupinteraction[state=start] %~ \showframe\showgrid \starttext \dorecurse{41}{one line\par} \ \comment[location={rightmargin}]{comment} \stoptext Since layers are problematic for the task, I insert the comments right af

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
it should be placed on the second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \setuphead [section] [before={\testpage[2]\blank[2*big]}] \starttext \dorecurse{18}{\section{Section

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
the second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \starttext \dorecurse{18}{\section{Section}} just a line \setlayerframed[whatever][foregroundstyle=\bf\ss] {layer on the last page?}

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
> \setupbackgrounds[page][background=pgnumber] > \starttext > \placelist[section][alternative=d] > \dorecurse{16}{\section{Section}} > \pagenumber/\lastpagenumber > \setlayer[pgnumber] > {\comment{\pagenumber}} > \stoptext > > Could anyone confirm the iss

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
was caused by the deployment of "\placelist[section][alternative=d]". But my new sample shows clearly that this isn’t the cause. My question is now is how to get the right page for the layer in this sample: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=what

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Wolfgang Schuster
] \starttext \placelist[section][alternative=d] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? \pagenumber is only reliable headers/footer texts or page backgrounds

[NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] \recursestring undefined when inside \dorecurse

2020-06-14 Thread Hans Hagen
On 6/14/2020 11:41 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \dorecurse{25}{\recurselevel\par} \doloopoverstring{a,b,c}{\recursestring} } \stoptext Both LMTX and MkIV complain about \recursestring for being undefined. I wonder

[NTG-context] using annotations for extended print handling

2020-06-14 Thread Pablo Rodriguez
ld be passed automatically to a \filterpages command. A sample that generates something similar: \setuppapersize[A8] \setupinteraction[state=start] \starttext \dorecurse{5}{\part{\romannumerals{\recurselevel}} \dorecurse{15}{\chapter{\recurselevel} \comment [title=whatever,

[NTG-context] \recursestring undefined when inside \dorecurse

2020-06-14 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \dorecurse{25}{\recurselevel\par} \doloopoverstring{a,b,c}{\recursestring} } \stoptext Both LMTX and MkIV complain about \recursestring for being undefined. I wonder whether this is inteded or it is a bug. Many thanks

Re: [NTG-context] new version

2020-06-10 Thread Alan Bowen
; want it to behave like tex: obeying \bgroup/\egroup, { } etc. The > examples given below show that you can create them at the tex end and > access them in tex as well as lua. > > \starttext > > \dorecurse {100} { > \setdatavalue{#1}{#1} > } > > \start \tttf \dar

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
that resets the counter to one at the start > of the next page (it is useful for footnotes that are numbered > per-page, but not for actual page counters). > > > \definecounter[volpage][type=page] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[off

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
\setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium] \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]} \stopTEXpage} \stoptext > On 10 Jun 2020, at 15:05, Alan Bowen wrote: > >

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
of a book are > not proving successful. The following code shows the nature of the problem. > > > > \definecounter[volpage][type=page, way=bypage] > > \starttext > > \setcounter[volpage][5] > > \dorecurse{3}{\startTEXpage[offset=2pc] > > \input ward &

[NTG-context] new version

2020-06-10 Thread Hans Hagen
. Normally what you do at the lua end is kind of global, but there can be cases where you really want it to behave like tex: obeying \bgroup/\egroup, { } etc. The examples given below show that you can create them at the tex end and access them in tex as well as lua. \starttext \dorecurse

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
the problem. > > \definecounter[volpage][type=page, way=bypage] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[offset=2pc] > \input ward > \blank[medium] > > \centerline{\red\tfa\rawcounter[volpage]\incrementcounter

[NTG-context] problem with counters (page)

2020-06-09 Thread Alan Bowen
My efforts to set up a new page counter in the footertexts of a book are not proving successful. The following code shows the nature of the problem. \definecounter[volpage][type=page, way=bypage] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium

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 Wolfgang Schuster
=\structureuservariable{image}]}] \setupexternalfigure[location=default] \starttext \startchapter [title={Tufte}] [image=cow] \dorecurse{4}{\samplefile{tufte}} \stopchapter \startchapter [title={Knuth}] [image=mill] \dorecurse{8}{\samplefile{knuth}} \stopchapter \startchapter [title={Zapf}] [image=hacker

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

2020-05-29 Thread Wolfgang Schuster
}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter [title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter

[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] Anyone managed a tabulated table of contents

2020-05-25 Thread Hans Hagen
} } \framed [width=2cm,align=flushright,frame=off,offset=0pt] { page: \currentlistentrypagenumber } } \stopsetups \starttext \starttitle[title={Tabulated Table of Contents}] \placelist[chapter] \stoptitle \dorecurse {3} { \startchapter[title=Covid

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Rik Kabel
panded\def\widthuptohere{\dimexpr\ctxlua{document.whatever()}sp\relax} \starttext \dorecurse {10} { snippet #1\scratchdimen\widthuptohere\ has \the\scratchdimen\ width\par } \stoptext but still you have to wikify it ... maybe i'll make it a low level helper (but than you also ne

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Hans Hagen
ocument.whatever()}sp\relax} \starttext     \dorecurse {10} {     snippet #1\scratchdimen\widthuptohere\ has \the\scratchdimen\ width\par     } \stoptext but still you have to wikify it ... maybe i'll make it a low level helper (but than you also need to wikify that because i have no clue w

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Hans Hagen
(nodes?) to get the desired information. - Is it possible somehow? Too easy ... \startluacode function document.whatever() context(nodes.hpack(tex.getnest().head.next).width) end \stopluacode \unexpanded\def\widthuptohere{\dimexpr\ctxlua{document.whatever()}sp\relax} \starttext \dorecurs

[NTG-context] does font expansion break -char.width?

2020-05-17 Thread Pablo Rodriguez
align[hanging, hz] \definefontfamily[mainface][tt][Cousine][scale=0.85] \setupbodyfont[mainface] \starttext \hsize\zeropoint \sha{\dorecurse{25}{asdfasdfasdfaeasfae}} \stoptext I’m using latest from 2020.05.12 16:21. Have I hit a bug or am I m

Re: [NTG-context] Blank page added after pagecolumns

2020-05-15 Thread Joey McCollum
added after the break seems unnecessary. I checked for a wiki >> page on the \definepagecolumns command to get more information on its >> accepted inputs, but there doesn't appear to be a page for this command. >> >> >> >> Joey >> >> >> >

Re: [NTG-context] Blank page added after pagecolumns

2020-05-14 Thread Joey McCollum
t using pagecolumns to ensure that my > footnotes are set ragged-bottom in columns. I have observed some unexpected > behavior whenever the last column on a page is left incomplete: a blank > page is added at the end of the document. A minimal working example follows: > >>> >

Re: [NTG-context] Blank page added after pagecolumns

2020-05-10 Thread Thangalin
this command. >> >> Joey >> >> On Tue, Apr 28, 2020 at 1:40 PM Joey McCollum >> wrote: >>> >>> I am typesetting a document using pagecolumns to ensure that my footnotes >>> are set ragged-bottom in columns. I have observed some unexpected beha

Re: [NTG-context] Blank page added after pagecolumns

2020-05-04 Thread Joey McCollum
added at the end of the document. A minimal working example follows: >> >> ``` >> >> \starttext >> >> \startpagecolumns[n=2] >> >> \dorecurse{3}{\par\input zapf} >> >> \stoppagecolumns >> >> \stoptext >> ``` >> >

  1   2   3   4   5   6   7   8   9   10   >