[NTG-context] Keep postponed footnotes on page where called

2020-10-07 Thread Denis Maier
.) ``` \setuppapersize[A6][A6] \starttext \startpostponingnotes \bTABLE[split=yes] \dorecurse{20}{ \bTR \bTD a\footnote{A footnote} \eTD \eTR } \eTABLE \stoppostponingnotes \stoptext ``` Is there anything else I can try? Or is that simply not possible? The problem is that I have a table where it is really

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-10-01 Thread Denis Maier
[split=yes] \setupTABLE [start] [spaceinbetween=25pt] Thanks. What exactly does [start] do? \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE Try to avoid blank lines in tables, it shouldn't matter in this case but in certain cases this can lead

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Wolfgang Schuster
] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE Try to avoid blank lines in tables, it shouldn't matter in this case but in certain cases this can lead to unwanted whitespace. Wolfgang

[NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Denis Maier
Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE \stoptext == What am I missing? Best, Denis

Re: [NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
> will see that it happens in the first page(s). > > The problem is that you are not giving ConTeXt a fair chance to update the > page number, > because a series of \vbox to \paperheight {}’s cannot cleanly be broken > into separate > pages. The solution is to use > > \

Re: [NTG-context] page counter problem

2020-09-30 Thread Taco Hoekwater
separate pages. The solution is to use \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext[]

[NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
, method=overlay]{} \setcounter[userpage][101] \noheaderandfooterlines \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages} {\vbox to \paperheight {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax \hbox to \hsize {\hskip-\backspace \layeredtext

Re: [NTG-context] numbering pages included by \copypages

2020-09-28 Thread Alan Bowen
After further testing guided by Hans’ suggestion, I now have \setupexternalfigures[location=default] \setuplayer[preset=rightbottom, method=overlay]{} \setuppagenumbering[color=darkmagenta] \starttext \getfiguredimensions[HannahBW.pdf] \dorecurse{\noffigurepages}{ \startTEXpage[pagestate=start

Re: [NTG-context] numbering pages included by \copypages

2020-09-25 Thread Hans Hagen
/context-blog/post/include-multi-page-pdf/ When both document have the same size you can replace TeXpage with a "page" layout. \startlayout[page] \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} \stoplayout Thanks for the comment (also I didn't know about \s

Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Aditya Mahajan
ttps://adityam.github.io/context-blog/post/include-multi-page-pdf/ > > When both document have the same size you can replace TeXpage with a "page" > layout. > > \startlayout[page] > \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} > \stoplayout Tha

Re: [NTG-context] numbering pages included by \copypages

2020-09-24 Thread Wolfgang Schuster
[location=default] \starttext ... \page \getfiguredimensions[texit.pdf] \noheaderandfooterlines \dorecurse{\noffigurepages} {\vbox to \vsize {\vskip-\dimexpr\headerheight+\topspace\relax \hbox to \hsize {\hskip-\backspace \externalfigure[texit.pdf][page=\recurselevel

[NTG-context] Index range with page number suffix

2020-09-24 Thread Duncan Hothersall
I need is: sausage 1-2i Is this possible? MWE \defineprocessor[important][right={\it{i}}] \starttext \samplefile{knuth} \startregister[index][sausage][important->sausage]{sausage} \dorecurse{6}{\samplefile{knuth}} \stopregister[index][sausage]{sausage} \samplefile{knuth} \page \placein

Re: [NTG-context] Full page image and caption in another page?

2020-09-23 Thread Taco Hoekwater
>width=1\textwidth, height=1\textheight, >before={\setuppapersize[rotate]}] % there's no before > in setupfloat > \setupcaption[bigfigure][location={opposite}] % there's no opposite location > in setupcaption > > \starttext

[NTG-context] Full page image and caption in another page?

2020-09-22 Thread José de Mattos Neto
\starttext \showframe \dorecurse{2}{\input{knuth}} \setuppapersize[rotate] % this doesn't work because is in same page \startplacebigfigure[title={A cow}]{\externalfigure[cow]}\stopplacebigfigure \setuppapersize[default] \dorecurse{2}{\input{knuth}} \stoptext

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

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