Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Hans Hagen
) withstacking i ; endfor ; \stopuseMPgraphic \unprotect \tolerant\protected\def\useMPanimation[#1]#2% {\begingroup \scratchtoks\emptytoks \dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2% \expanded{\startanimation[#1]\the\scratchtoks

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-25 Thread Jeong Dal
{\udCount} {\useMPgraphic{foldUD}{num=\recurselevel}} {\useMPgraphic{dotLines}{num=\recurselevel}} %} %\stopanimation \stoptext However, it draws all the figures under the \startanimation case. There may be something I missed or there is something uncertain between \dorecurse and \startanimation.

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-24 Thread Hans Hagen
{n}}{% \letmpcategoryparameter{i}\recurselevel \begincsname\??mpgraphic#1\endcsname\empty }% \meta_end_graphic_group} % so, the main thing here is that we added the loop and % for convenience i store the current step \protect \starttext \setupMPvariables [animation] [n=4

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-24 Thread Jeong Dal
Dear Hans, Your code works fine. > \starttext > > \startMPcode >numeric maxCount; >maxCount := 10; >setglobalmacro("MyMacro",decial maxCount); >setglobalcount("MyCount",maxCount); > \stopMPcode > > > \dorecurse{\MyMa

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-24 Thread Hans Hagen
initializations are run: \starttext \setbox\scratchbox\hbox{\startMPcode draw unitcircle; \stopMPcode} \dorecurse{\udCount} {\useMPgraphic{foldUD}{num=\recurselevel}} {\useMPgraphic{dotLines}{num=\recurselevel}} \stoptext A run with no sideeffects in the content stream

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Aditya Mahajan
> >setglobalcount("MyCount",maxCount); > > \stopMPcode > > > > > > \dorecurse{\MyMacro}{It is \recurselevel. }\par > > \dorecurse{\MyCount}{It is \recurselevel. }\par > > > > \stoptext > > I applied your method to my code as following. >

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Jeong Dal
n := \MPvar{num}-1; G := z[n-1]; grayUD(n); \stopuseMPgraphic \startuseMPgraphic{dotLines}{num} numeric n; n := \MPvar{num}-1; linesUD(n); \stopuseMPgraphic \setupinteraction[state=start] \usemodule[animation] \starttext \startanimation[menu=yes] \dorecurse{7} { {\useMPgraphic{f

[NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Jeong Dal
Hi, Is there a way to deliver the value of a variable in MetaFun to ConTeXt. For example, I want to do the following: \starttext \startMPcode numeric maxCount; % … some code maxCount := 10; \stopMPcode dorecurse{maxCount} {It is \recurselevel.\par} \stoptext Thank you for reading. Best

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Hans Hagen
On 6/23/2021 10:00 PM, Jeong Dal wrote: Hi, Is there a way to deliver the value of a variable in MetaFun to ConTeXt. For example, I want to do the following: \starttext \startMPcode numeric maxCount; % … some code maxCount := 10; \stopMPcode dorecurse{maxCount} {It is \recurselevel.\par

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
;>> > >>>> > >>>> Hi, > >>>> > >>>> I defined a macro definition in metafun, and draw figures using > >>>> \startbuffer[] … \stopbuffer and \processMPbuffer[]. > >>>> As you see in the attached cod

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
> \startbuffer[] … \stopbuffer and \processMPbuffer[]. >>>> As you see in the attached code, the same macro definition is used >>>> repeatedly by changing the numeric argument. >>>> Is there a better way to simplify the code, for example, using \dorecurse >>>> a

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
n is used > >> repeatedly by changing the numeric argument. > >> Is there a better way to simplify the code, for example, using \dorecurse > >> and recurselevel? > > > > See attached. The main idea is to store the repetitive bits in > > \startuseMPgraphic{..

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
ing >> \startbuffer[] … \stopbuffer and \processMPbuffer[]. >> As you see in the attached code, the same macro definition is used >> repeatedly by changing the numeric argument. >> Is there a better way to simplify the code, for example, using \dorecurse >> and recurse

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-20 Thread Aditya Mahajan
the numeric argument. > Is there a better way to simplify the code, for example, using \dorecurse and > recurselevel? See attached. The main idea is to store the repetitive bits in \startuseMPgraphic{...} and then reuse them using \includeMPgraphic. Aditya mp-test.te

[NTG-context] simplifying repeated macro calls in metafun

2021-06-20 Thread Jeong Dal
, using \dorecurse and recurselevel? Thank you for reading. Best regards, Dalyoung \startbuffer[UDBasic] pair A,B,C,D; pair E, F, G, H; path p,q; numeric ang,maxNum; u:=1in; A=(.95*TextWidth,u); B=(0,u); C=(0,0); D=(.95*TextWidth,0); p := A--B--C--D; q := (TextWidth,1.5u)--(0,1.5u

Re: [NTG-context] xtable as list item (again)

2021-06-17 Thread Pablo Rodriguez
ch, width}] >> \dorecurse{25}{\startxrow >>\startxcell \Characters{\recurselevel}\stopxcell >>\startxcell \characters{\recurselevel}\stopxcell >> \stopxrow} >>\stopembeddedxtable > > \item >\startfixed > % put your tab

Re: [NTG-context] xtable as list item (again)

2021-06-16 Thread Wolfgang Schuster
] \item a \item \startembeddedxtable[option={stretch, width}] \dorecurse{25}{\startxrow \startxcell \Characters{\recurselevel}\stopxcell \startxcell \characters{\recurselevel}\stopxcell \stopxrow} \stopembeddedxtable \item \startfixed % put your table

[NTG-context] xtable as list item (again)

2021-06-15 Thread Pablo Rodriguez
={stretch, width}] \dorecurse{25}{\startxrow \startxcell \Characters{\recurselevel}\stopxcell \startxcell \characters{\recurselevel}\stopxcell \stopxrow} \stopembeddedxtable \item b \stopitemize \stoptext And I get two issues: 1. Item number in 2 is placed on the bottom

[NTG-context] styling references

2021-05-28 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize \dorecurse{15} {\item[\recurselevel]whatever} \stopitemize As exposed in \in{item}[9]... \stoptext How can I add style to the item reference (9)? I mean, how can I get “As exposed in item {\em 9}”? Many thanks

[NTG-context] new page before xtable with repeated headers

2021-04-23 Thread Werner Hennrich
artxcell More Header \stopxcell \stopxrow \stopxtablehead \startxtablebody \dorecurse{10} { \startxrow \startxcell {\bf (\recurselevel) some tale:} \startitemize \item a quick \item brown fox \item jumps over \item the lazy dog \stopitemize \stopxcell \startxcell {\bf and a fact:} \startitemize \item the

Re: [NTG-context] Write to tuc file

2021-03-07 Thread Pablo Rodriguez
xt \completecontent \dorecurse{3} {\startpart \edef\pn{\recurselevel} \dorecurse{30} {\startchapter\markpage[start-\pn.\recurselevel] \dorecurse{\randomnumber{0}{30}} {\input knuth\par} \markpage[stop-\pn.\recurselevel]\stopchapter} \stoppart} \stoptext Th

Re: [NTG-context] Write to tuc file

2021-03-06 Thread Hans Hagen
{10} {\startchapter\markpage[start-\recurselevel] \dorecurse{\randomnumber{0}{1000}} {\input knuth\par} \markpage[stop-\recurselevel]\stopchapter} \stoptext "start-" and "stop-" could define page ranges when the same identifier is used. The select style

Re: [NTG-context] Write to tuc file

2021-03-06 Thread Pablo Rodriguez
{\startchapter\markpage[start-\recurselevel] \dorecurse{\randomnumber{0}{1000}} {\input knuth\par} \markpage[stop-\recurselevel]\stopchapter} \stoptext "start-" and "stop-" could define page ranges when the same identifier is used. The select style could

[NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Jacob Kauffmann
only use here because I need a centered table. I can set the height of the page manually, but the whole purpose of using TEXpage was to avoid that. (2) \recurselevel is always zero in the output. Normally, it counts the iterations. This issue is not relevant for my actual use-case, but I found

Re: [NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Hans Hagen
. It's probably related to \placetable which I only use here because I need a centered table. I can set the height of the page manually, but the whole purpose of using TEXpage was to avoid that. (2) \recurselevel is always zero in the output. Normally, it counts the iterations. This issue

Re: [NTG-context] looping an overlay

2021-02-24 Thread Pablo Rodriguez
On 2/24/21 7:44 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 24.02.2021 um 19:23: >> [...] >>\starttext >> \startTEXpage[offset=1em] >>\startoverlay >> \dostepwiserecurse{25}{95}{5} >>{{\recurselevel\ }} >

Re: [NTG-context] looping an overlay

2021-02-24 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 24.02.2021 um 19:23: Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startoverlay \dostepwiserecurse{25}{95}{5} {{\recurselevel\ }} \stopoverlay \stopTEXpage \stoptext Which is the right

[NTG-context] looping an overlay

2021-02-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startTEXpage[offset=1em] \startoverlay \dostepwiserecurse{25}{95}{5} {{\recurselevel\ }} \stopoverlay \stopTEXpage \stoptext Which is the right way to loop an overlay? Many thanks for your help

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Hans Hagen
\dorecurse{8}{Test: \recurselevel \page} \stoptext Works in mkiv. With lmtx, I get tex error   > tex error on line 7 in file ./test.tex: You can't use 'integer 340' in internal vertical mode I have no clue because it just works here. I uploaded a new version (no real changed in that a

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Thomas A. Schmitz
On 20.02.21 17:12, Hans Hagen wrote: hm, but it still makes sense to know if something fails .. keep en eye on it I just stumbled upon the same error. Arranging is broken in lmtx. MWE: \setuppapersize[A6][A4] \setuparranging[2*4] \starttext \dorecurse{8}{Test: \recurselevel \page

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
> > \definefontsynonym >[AnotherFontMain] >[file:texgyrepagellaregular] >[fallbacks=AnotherFontFallback] > > \definefont [AnotherFont] [AnotherFontMain*default] > > \starttext > > \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par > \dorecurse{

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Wolfgang Schuster
] \definefont [AnotherFont] [AnotherFontMain*default] \starttext \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par \dorecurse{26}{\convertnumber{a}{\recurselevel}\space} \AnotherFont \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par \dorecurse{26}{\convertnumber{a}{\recurselevel

[NTG-context] rscale not working

2021-01-24 Thread Pablo Rodriguez
Hans, rscale doesn’t work with latest from 2021.01.24 16:07: \definefontfamily[mainface][rm][Latin Modern Serif] \definefontfamily[mainface][tt][Latin Modern Sans][rscale=2] \setupbodyfont[mainface, 60pt] \starttext \dorecurse{26} {\character{\recurselevel}{\tt\character

[NTG-context] xtable as list item

2021-01-12 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize[n][margin=yes] \item a \item \startembeddedxtable[option={stretch, width}] \dorecurse{25}{\startxrow \startxcell \Characters{\recurselevel}\stopxcell \startxcell \characters{\recurselevel}\stopxcell

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-11 Thread Ivan Pešić
: Re: [NTG-context] Randomize order of blocks > Following up my previous message, here is an example: > > %% begin shuffled list of exercises > \setuprandomize[2021] > > \startluacode > function shuffle(tableau) > local maxsize, t, tt >

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Jairo A. del Rio
> "-2x\\sin(x^2)", > "x\\cos(x) + \\sin(x)", > "1 + \\tan(x)^2", > "3x^2 - 6x", > "\\frac{-2x}{(1 + x^2)^2}", > "\\frac{

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
"\\frac{\\cos(\\log(x))}{x}", } \stopluacode \starttext % We define a buffer and a shuffled list of integers \startbuffer[test-derivatives] \startluacode ShuffledList = shuffle({1,2,3,4,5,6}) \stopluacode Let $\cldcontext{ListOfNames[Shuffl

Re: [NTG-context] new upload

2020-11-18 Thread Hans Hagen
introduced ... thanks for testing. Many thanks for the new upload, Hans. Even headings and lists are indented now:    \showframe\showgrid    \setupindenting[yes, always, big]    \starttext    \placelist[section]    \dorecurse{5} {\section{Section \recurselevel} \input{zapf}}    \stoptext I

Re: [NTG-context] new upload

2020-11-18 Thread Wolfgang Schuster
for the new upload, Hans. Even headings and lists are indented now: \showframe\showgrid \setupindenting[yes, always, big] \starttext \placelist[section] \dorecurse{5} {\section{Section \recurselevel} \input{zapf}} \stoptext I think this may be a bug. Minimal example

Re: [NTG-context] new upload

2020-11-18 Thread Pablo Rodriguez
Even headings and lists are indented now: \showframe\showgrid \setupindenting[yes, always, big] \starttext \placelist[section] \dorecurse{5} {\section{Section \recurselevel} \input{zapf}} \stoptext I think this may be a bug. Pablo -- http

Re: [NTG-context] index entries postponed if sections are empty

2020-11-01 Thread Jano Kula
after the next chapter. > I guess the problem is that there’s no (text) content, but \par and \strut > didn’t help. > > Add *\dontleavehmode*\index{Something}\index{A\recurselevel} before \index command. Regards, Jano _

Re: [NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Otared Kavian
}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \startcolor[white] a \stopcolor \index{Something}\index{A\recurselevel} } \stopchapter } \completeindex \stoptext Best regards: OK > On 31 Oct 2020, at 17:56, Henning Hraban Ramm wrote: > >

[NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Henning Hraban Ramm
didn’t help. The MWE shows that index entries in empty sections are ignored, i.e. “Something” is supposedly only on p.6: \usemodule[visual] \starttext \dorecurse{5}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \index{Something}\index

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

2020-09-28 Thread Alan Bowen
ce TeXpage with a > "page" > >> layout. > >> > >> \startlayout[page] > >> \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]} > >> \stoplayout > > > > Thanks for the comment (also I didn't know about \startla

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

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 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
Hi Dalyoung, I don't know why \recurselevel returns 0 inside a tabulate environment, but the following works fine: \starttext \startxtable[frame=off,bottomframe=on,width=1cm,align={middle,lohi}] \startxrow\startxcell \stopxcell\stopxrow % just to have a line on the top of the first row

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
Hi, Using ##1 instead of \recurselevel makes it work in this specific case if you want a quick and dirty solution. It seems to be a thing with nesting, as using #1 complains. I'd prefer the solutions as shown by Aditya: constructing tables via Lua, etc. Regards, Jairo El lun., 21 de sep. de

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] wrong 2TOPSIDE?

2020-08-27 Thread Pablo Rodriguez
] \recurselevel \stopmakeup} \stoptext \stopbuffer \savebuffer[abcde][singular.tex] \executesystemcommand{context --purgeall --result=\jobname-singular.pdf \jobname-singular.tex} \ctxlua{os.remove(tex.jobname.."-singular.tex")} \stopmode \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

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] 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
duce 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 &g

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

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

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

2020-06-15 Thread Wolfgang Schuster
, for everything else you need a multi pass mechanism (save the page number in the first run and provide it in the second). \setuppapersize[A6] \definepagestate[pagenumber] \starttext \subject{\tex{pagenumber}} \dorecurse{50}{\twodigits{\recurselevel}: \pagenumber\par} \page \subject{\tex

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] animation using \startuseMPgraphic

2020-04-19 Thread Aditya Mahajan
t %\startplacefigure[] \startanimation[menu=yes] \dorecurse{10}{ \useMPgraphic{inversionPoint}{n=\recurselevel} } \stopanimation %\stopplacefigure \stoptext Also see my simple wrapper around this: https://adityam.github.io/context-blog/post/metapos

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Jeong Dal
the same size for each frame, otherwise your > graphic jumps around. > > When you use \recurselevel you have to use this: > > \startanimation[menu=yes] > \dorecurse{10} >{\startexpanded > \startframe > \useMPgraphic{inversionPoint}{n=\recurselevel}%

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Wolfgang Schuster
the boundingbox to the same size for each frame, otherwise your graphic jumps around. When you use \recurselevel you have to use this: \startanimation[menu=yes] \dorecurse{10} {\startexpanded \startframe \useMPgraphic{inversionPoint}{n=\recurselevel}% \stopframe

[NTG-context] animation using \startuseMPgraphic

2020-04-18 Thread Jeong Dal
rtanimation[menu=yes] \dorecurse{10}{ \useMPgraphic{inversionPoint}{n=\recurselevel} } \stopanimation %\stopplacefigure \stoptext ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] troubles with latin modern and mutool

2020-03-24 Thread Pablo Rodriguez
\setupbodyfont[sans] \starttext \dorecurse{5}{% \recurselevel\footnote{\recurselevel}\page} \stoptext I use LuaTeX 2.05 20200229 + ConTeXt MkIV 2020.03.10 14:52, but I remember that I built mupdf from git sources (so my version is later than 1.16.1 [to be released yet]). > The

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
for your help, Pablo > \installshipoutmethod{savepages} > {\dowithnextbox > {\invokepagehandler{normal}{\copy\nextbox}% > \putboxincache{savedpages}{\number\realpageno}\nextbox} >\hbox} > > \setuppaper[method=savepages] > > \starttext > > \dorecurse

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
he stored box afterwards. \installshipoutmethod{savepages} {\dowithnextbox {\invokepagehandler{normal}{\copy\nextbox}% \putboxincache{savedpages}{\number\realpageno}\nextbox} \hbox} \setuppaper[method=savepages] \starttext \dorecurse{8} {\expanded{\chapter{Chapter \recurselevel}}

Re: [NTG-context] checking whether file is landscape or portrait

2020-01-28 Thread Pablo Rodriguez
{\noffigurepages} {\externalfigure[a-test.pdf][page=\recurselevel]} \stoptext But after a closer inspection, the docuemnts are properly malformed. They include some top and left extra margins. Is there any way to remote those extra margins? (Offset doesn’t seem to work here.) Many thanks

Re: [NTG-context] issue with italic correction (again)

2019-06-27 Thread Taco Hoekwater
rm] [\DesiredFont] [features={italic}] \startTEXpage[offset=1em] \dorecurse{26} {\switchtobodyfont[mainface\DesiredFont]% [{\em \recurselevel}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters

[NTG-context] issue with italic correction (again)

2019-06-25 Thread Pablo Rodriguez
] \startTEXpage[offset=1em] \dorecurse{26} {\setupbodyfont[mainface]% [{\em \recurselevel}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters{\recurselevel}}) ({\em \Characters{\recurselevel

[NTG-context] italic correction (before the glyph)

2019-06-23 Thread Pablo Rodriguez
\recurselevel}] [{\em \characters{\recurselevel}}] [{\em \Characters{\recurselevel}}] ({\em \characters{\recurselevel}}) ({\em \Characters{\recurselevel}}) \hfill \setupbodyfont[mainface_corrected] [{\em \recurselevel

Re: [NTG-context] about \startMPanimation

2019-05-13 Thread Jeong Dal
mation}\def\use_meta_animation[#1]#2%{\edef\c_MP_animation_frames{\getvalue{\MPanimationvariables#2:n}}%\startanimation[#1]\dorecurse{\c_MP_animation_frames}{\expanded{\frame{\useMPgraphic{animation:#2}{n=\c_MP_animation_frames,t=\recurselevel\stopanimation}\protect| >> In the code, t

Re: [NTG-context] about \startMPanimation

2019-05-13 Thread Hans Hagen
{animation:#2}{n=\c_MP_animation_frames,t=\recurselevel\stopanimation}\protect| In the code, there are many “”.(\MPanimationvariables#1, {\??mpgraphic animation:#1}) I wonder it is correct or not. Would you please check it? these ?? etc indicate (protected) namespaces so it's correct

[NTG-context] about \startMPanimation

2019-05-13 Thread Jeong Dal
ion[#1] \dorecurse{\c_MP_animation_frames} {\expanded{\frame{\useMPgraphic{animation:#2}{n=\c_MP_animation_frames,t=\recurselevel \stopanimation} \protect In the code, there are many “”.(\MPanimationvariables#1, {\??mpgraphic animation:#1}) I wonder it is c

Re: [NTG-context] columnset regression

2018-10-29 Thread Henning Hraban Ramm
ei] >> \fakewords{30}{50} >> \column >> \fakewords{30}{50} >> \column >> \fakewords{30}{50} >> \stopcolumnset >> >> \stoptext Thank you, but it doesn’t help: tex error > tex error on line 12 in file context-tests/columnsettest.tex: ! Missing number

Re: [NTG-context] Tabulate backgroundcolors

2018-09-10 Thread Hans Hagen
] \HL \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR \HL \VL \VL \bf Description: \VL\NR \HL \VL \VL \startitemize \dorecurse{60}{\item Item \recurselevel} \stopitemize \VL\NR \HL \stoptabulate \stoptext

Re: [NTG-context] Tabulate backgroundcolors

2018-09-10 Thread Henri Menke
white]{\bf Table NAME} \CM[black] \VL\NR > \HL > \VL \VL \bf Description: \VL\NR > \HL > \VL \VL > \startitemize > \dorecurse{60}{\item Item \recurselevel} > \stopitemize > \VL\NR > \HL > \stoptabulate > \stoptext >

[NTG-context] Tabulate backgroundcolors

2018-09-06 Thread Henri Menke
\dorecurse{60}{\item Item \recurselevel} \stopitemize \VL\NR \HL \stoptabulate \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] unwanted page break in contents

2018-08-26 Thread Jeong Dal
}] \setuplist[section][width=10mm, style=,textcommand={\ss }] \showframe \startfrontmatter \completecontent \page[empty] \stopfrontmatter \startbodymatter \dorecurse{9} {\chapter{Ch \recurselevel} \dorecurse{8} {\section{Section \recurselevel}} } \stopbodymatter

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Wolfgang Schuster
%\setupnote[footnote][way=bychapter,location=none] \setupfootnotes[way=bychapter,location=none] \starttext \dorecurse{10} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{10}{\input tufte\footnote{\input ward }\par} \placenotes[footnote]} \stoptext Wolfgang Robert Zydenbos

Re: [NTG-context] preventing endnotes from running off the page

2018-08-06 Thread Robert Zydenbos
– but I have so many notes >> in a chapter that the frame runs off the last page. >> >> Is there any way to let the endnotes run on naturally to the next page? > > Hi Robert, > > I’m not sure I understand your issue. At least, I’m not able to > reproduce it:

Re: [NTG-context] preventing endnotes from running off the page

2018-08-06 Thread Pablo Rodriguez
he endnotes run on naturally to the next page? Hi Robert, I’m not sure I understand your issue. At least, I’m not able to reproduce it: \starttext \dorecurse{500}{\recurselevel\endnote{This is an endnote.} } \placenotes[endnote] \stoptext Could you modify the sample to reproduce you

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Pablo Rodriguez
t; of the header? Hi Huseyin, this should work: \setuppagenumbering[alternative=doublesided, location=] \setupheadertexts[center] %~ \setupheadertexts[\doifoddpageelse{odd}{even}] \starttext \dorecurse{10}{\Romannumerals{\recurselevel}\page} \stoptext Uncomment the commented line

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Hans Hagen
] \setupinteraction[state=start] \setupinteractionscreen[option={portrait, paper}, print=pages] \starttext \getfiguredimensions[i-context.pdf] \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \startmarkpages[page] \dostepwiserecurse{100}{300}{1

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Pablo Rodriguez
pinteraction[state=start] > \setupinteractionscreen[option={portrait, paper}, print=pages] > \starttext > \getfiguredimensions[i-context.pdf] > \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} > \startmarkpages[page] > \dostep

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Wolfgang Schuster
pdf] \dostepwiserecurse{1}{99}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \startmarkpages[page] \dostepwiserecurse{100}{300}{1}{\externalfigure[i-context.pdf][height=\textheight,page=\recurselevel]} \stopmarkpages \dostepwiserecurse{301}{\noffigurepages}{1}{\exte

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
> > \starttext > > \dorecurse{3} > {\expanded{\part{Rubrik \recurselevel}} >\dorecurse{5} > {\expanded{\chapter{Kapitel \recurselevel}} > \dorecurse{10}{\input{lorem}\par}}} > > \stoptext > > Wolfgang > _

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Wolfgang Schuster
ecurse{3} {\expanded{\part{Rubrik \recurselevel}} \dorecurse{5} {\expanded{\chapter{Kapitel \recurselevel}} \dorecurse{10}{\input{lorem}\par}}} \stoptext Wolfgang ___ If your question is of interest to

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
g][header][chapter] > > \setuphead[chapter][header=henning] > > \starttext > > \dorecurse{5} > {\expanded{\chapter{Kapitel \recurselevel}} >\dorecurse{10}{\input{lorem}\par}} > > \stoptext > > Wolfgang > >> Henning Hraban Ramm 20. Februar 20

<    1   2   3   4   5   6   7   8   9   >