]
\strut
\blank
\bold{[\Schema]}
\vfill
This is page \recurselevel
\vfill
\stopbuffer
\starttext
\dorecurse{\Pages}{\getbuffer[Fakepage]\page}
\stoptext
___
If your question is of interest to others
ction(n)
context(n + ((n % 4 == 0) and 1 or (5 - n % 4)))
end
}
\stopluacode
\unprotect
\def\beforequadruplenumber#1{\clf_beforequadruplenumber\numexpr#1\relax}
\def\afterquadruplenumber #1{\clf_afterquadruplenumber \numexpr#1\relax}
\protect
\starttext
\dorecurse{20}{\recurselevel\space =
\beforequ
pr #1 + 3
\orelse\ifnum\modulonumber{4}{#1} = 3
\the\numexpr #1 + 2
\else
\the\numexpr #1 +1
\fi}
\dorecurse{25}{\recurselevel: \beforequadruplenumber{\recurselevel}\\}
\dorecurse{25}{\recurselevel: \afterquadruplenumber{\recurselevel}\\}
%\page[123]
%\null
\page[\befor
ge]
\setuppagenumbering
[state=stop]
\setupmakeup
[standard]
[align=middle]
\setupblank
[2*line]
\showframe
\starttext
\dorecurse{12}{%%
\startstandardmakeup
Text \blank
{\tfd\recurselevel} \blank
Text
\stopstandardmakeup
\page}
\stoptext
That's how I
;), .75A + .25B);\stopuseMPgraphic\starttext\dorecurse{4}{\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination\startcombination[3*1]%distance=0mm]{\useMPg
lowing sample:
\setupinteraction[state=start,
focus=standard]
\starttext
\dorecurse{5}{\dorecurse{5}
{\chapter[\recurselevel]{Chapter}
\section[sec-\recurselevel]{Section}}}
\stoptext
Of course, this kind of identifiers have to be unique to be useful, but
I wonder
> \starttext
> \dorecurse{5}
> {\chapter[\recurselevel]{Chapter}
> \section[sec-\recurselevel]{Section}}
> \stoptext
>
> This source only samples PDF documents not generated with ConTeXt. This
> means that no .tuc file may be available and named destinations ma
Dear list,
imagine I have a PDF document (named "whatever.pdf") such as the one
generated from this source:
\setupinteraction[state=start,
focus=standard]
\starttext
\dorecurse{5}
{\chapter[\recurselevel]{Chapter}
\section[sec-\recurselevel]{Section}}
\stoptext
T
/32768)\relax }} \par
\setbox \scratchbox \hbox {\dorecurse {26}{\character \recurselevel }}
\Width =\dimexpr \TA@alphabet
\setupTypeArea[bcor=0pt,oneside=no,alphabets=2.6]
79 height=\the\Height,
80 width=\the\Width,
81 header=2\lineheight,
82 headerdi
area/t-typearea.tex:
Missing number, treated as zero
{
\TA@alphabets
\par \PageWidth =\dimexpr \paperwidth -\TA@bcor \relax \par \edef
\Ratio {\withoutpt {
\the \dimexpr 2\paperheight /(\PageWidth /32768)\relax }} \par
\setbox \scratchbox \hbox {\dorecurse {26}{\character \recurs
I had no luck with page floats in columnsets; according to the manual
they should work.
Hraban
\setuppapersize[A5,landscape]
\useMPlibrary[dum]
\definecolumnset[Two][n=2]
\starttext
\startcolumnset[Two]
\dorecurse{5}{1\recurselevel\samplefile{lorem}\par}
\startplacefigure[location=page
as intermediate:
% \startsetups[userdata:idautor]
% \dontleavehmode
% \imghref
% {\externalfigure[cvlac.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{vclac}}
% \quad
% \imghref
% {\externalfigure[orcid.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{orcid
[gscholar.pdf][logo]}
{\userdataparameter{gscholar}}
\quad
\userdataparameter{author}\par
\stopsetups
\defineuserdata[idautor][alternative=idautor]
\startdocument
% I have to manually set the length of the dataset in the loop and use
recurselevel...
% Maybe there is a way to use the length
ng, since I forgot enabling interaction in the main PDF
document to generate the targets (or named destinations).
\setupinteraction[state=start, focus=standard]
\starttext
\dorecurse{15}
{\chapter[chap\recurselevel]{Chapter}}
\stoptext
The first line was missing yesterday.
After that (
reference (save it as main.tex):
\starttext
\dorecurse{15}
{\chapter[chap\recurselevel]{Chapter}}
\stoptext
You have the file that reads the references from main.tuc and generates
the inter-document links:
\setupinteraction[state=start]
\starttext
Links to each chapter using
gt;
> fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
> \stopuseMPgraphic
>
> \defineoverlay[Waves][\useMPgraphic{Waves}]
>
> \setupbackgrounds[state=repeat]
> \setupbackgrounds[page][background={Waves}]
>
> \starttext
>
> \dorecurse{10}{\recur
= (0,10)---(70,10)...(60,0)---(10,0)...cycle;
fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
\stopuseMPgraphic
\defineoverlay[Waves][\useMPgraphic{Waves}]
\setupbackgrounds[state=repeat]
\setupbackgrounds[page][background={Waves}]
\starttext
\dorecurse{10}{\recurs
=repeat]
\setupbackgrounds[footer][text][background=Blocks]
\starttext
\dorecurse{10}{\recurselevel\page}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
tsquare xysized (800 * RealPageNumber/NOfPages, 50) withcolor blue;
\stopuseMPgraphic
\defineoverlay[Blocks][\useMPgraphic{Blocks}]
\setupbackgrounds[footer][background={Blocks}]
\starttext
\dorecurse{10}{\recurselevel\page}
\stopt
I found a MWE that shows the problem:
"""
\setuppapersize[C5]
\showframe
\starttext
\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.75\textheight]{TEST}
\stopplacefigure
\dorecurse{4}{\section{Tufte \recurselevel}
\samplefile{tuf
\setupbackgrounds[header][text] [background=color, backgroundcolor=red]
\setuppagenumbering[state=start,alternative=doublesided,location=footer]
\showlayout
\starttext
\showsetups
\dorecurse{10}{
Page \recurselevel
\page
}
\stoptext
__
et=1em, width=12em]
\dorecurse{20}
{\definefontfeature[\recurselevel]
[axis={wght={\the\numexpr\recurselevel * 50\relax}},
colr={\recurselevel}]
\definedfont[Nupuram-Color.colrv1.otf*\recurselevel]abcde }
\stopTEXpage
\stoptext
It works fine wit
cument.foundsection.first}} {0} {
\dostepwiserecurse
{\cldcontext{document.foundsection.first}}
{\cldcontext{document.foundsection.last}}
{1}
{
\DoWithSection{#1}{\recurselevel}
}
}
\stoptexdefinition
\starttexdefi
][section=17A]
Use a loop in Lua or TeX:
https://wiki.contextgarden.net/System_Macros/Loops_and_Recursion
\dostepwiserecurse {5} {17} {1}
{\externalfigure[filename.pdf][page=\recurselevel]}
or
\startluacode
for s=5, 17 do
context.externalfigure({"filename.pdf"},{page=s})
end
\s
\recursestring\dorecurse{26}
>{\character{\recurselevel}̱ }\par
> \egroup}
> \egroup}
> \stoptext
Many thanks for your reply, Hans.
I wonder whether mtxrun --script check should have spotte
\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
I get the following error:
mtx-context | fatal error: return code: 1
But when checking the sources, no error is found:
$ mtxrun --script check test-file.tex
no error
Just in case it helps
Hans,
using latest from today (and the previous one) with the following source:
\starttext
\doloopoverlist{\tf,\ss,\tt}
{\bgroup\recursestring%
\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par
}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
just run the attached
Many thanks, it works fine.
the one in the update is more interesting
-
Hans Hagen | PRAGMA ADE
sc}
>> {\bgroup\recursestring\dorecurse{26}
>>{\character{\recurselevel}̱ }\par}\egroup}
>>\stoptext
> just run the attached
Many thanks, it works fine.
Pablo
___
If your question
with each letter:
\starttext
\doloopoverlist{\tf,\ss,\tt}
{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
just run the attached
t{\tf,\ss,\tt}
{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
Pablo
___
If your
ti-page-pdf/
>
> Hi Aditya,
>
> I wonder whether your final definition should be rewritten as:
>
> \unexpanded\def\includePDF[#1]%
> {\getfiguredimensions[#1]
> \dorecurse{\noffigurepages}
> {\startTEXpage
> \externalfigure[#1][page=\recurse
\unexpanded\def\includePDF[#1]%
{\getfiguredimensions[#1]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[#1][page=\recurselevel]
\stopTEXpage}}
At least, otherwise it will only work with "talk.pdf".
Or am I missing something?
Many t
\getfiguredimensions[\Doc]
> \dorecurse{\noffigurepages}
> {\externalfigure[\Doc]
>[page=\recurselevel, width=20cm, scale=950]}}
> \stoptext
>
> > I didn’t know how to get an array (or indexed table or whatever you
> > call it) in ConTeXt/Tex.
>
I
> have at the moment:
I think this might be what you intend:
\setuplayout[page]
\starttext
\doloopoverlist{ass1,ass2,ass3,ass4,ass5,ass6,ass7,ass8}
{\def\Doc{\recursestring.pdf}
\getfiguredimensions[\Doc]
\dorecurse{\noffigurepages}
{\externalfigure[\Doc]
[page=\
of the commands
> mentioned above):
>
> \startbuffer[newbuff]
> \setuppapersize[A3]
> \setupbodyfont[sans, 1200pt]
> \starttext
> \dorecurse{8}
> {\startmakeup[page][pagestate=start, align=center, style=\bf]
>\recurselevel
> \stopmakeup}
>
th \getfiguredimensions you get the number of pages of each PDF
> document (\noffigurepages).
>
> The following source both generates the source PDF document and the
> imposed result with clipped pages (just to see a sample of the commands
> mentioned above):
>
> \startbuffer[
F document and the
imposed result with clipped pages (just to see a sample of the commands
mentioned above):
\startbuffer[newbuff]
\setuppapersize[A3]
\setupbodyfont[sans, 1200pt]
\starttext
\dorecurse{8}
{\startmakeup[page][pagestate=start, align=center, style=\bf]
\recurseleve
th generates the source PDF document and the
imposed result with clipped pages (just to see a sample of the commands
mentioned above):
\startbuffer[newbuff]
\setuppapersize[A3]
\setupbodyfont[sans, 1200pt]
\starttext
\dorecurse{8}
{\startmakeup[page][pagestate=start, align=center, style=\
flushoutputstream[es]
> \page \flushoutputstream[en]
> \stoptext
>
> To reorder pages, I rename the output to "wg.pdf" and run the following
> code:
>
> \setuppapersize[A6]
> \setuplayout[page]
> \starttext
> \dorecurse{26}
> {\ifnum\recurselevel =
the output to "wg.pdf" and run the following
code:
\setuppapersize[A6]
\setuplayout[page]
\starttext
\dorecurse{26}
{\ifnum\recurselevel = 1
\externalfigure[wg.pdf][page=\recurselevel]\else
\externalfigure[wg.pdf][page=\recurselevel]
\externalfigure[wg.pdf][page={\t
Hi, I’d like to place pages from a multipage PDF in a combination:
\startcombination[3*1]
\dorecurse{3}{%
{\externalfigure[multipage][width=\textwidth/3,page=\recurselevel]}{}
}
\stopcombination
That doesn’t work, because ConTeXt expects a { after \startcombination.
(“A left brace
ror message.
What you can try is to replace \getrandomnumber and "page=\n" with
"page=\randomnumber{...}{...}".
\startbuffer[dummyfile]
\dorecurse{10}{\centerbox{\definedfont[Sans sa 10]Page \recurselevel}}
\stopbuffer
\setuplayout[page]
\starttext
%\getrandomnumber\n{1}{10}
%\
\starttext
\completecontent
\startfrontmatter
\dorecurse{5}
{\chapter{Chapter \recurselevel}}
\stopfrontmatter
\startbodymatter
\dorecurse{5}
{\chapter{Chapter \recurselevel}}
\stopbodymatter
\startbackmatter
\dorecurse{5}
{\chapter{Chapter \recurselevel}}
\stopbackmatter
\stoptex
conditions decide to place macros \altMa, \altMb, or
\altMc inside, but becomes called "Compare and Contrast" if one of a dozen
other macros are pladed there.
- The macros are defined in an entirely different macros.tex file.
- The whole document is in a recurse loop, so \recurseleve
between stack=yes or no:
\usemodule[visual]
\useMPlibrary[dum]
\setupmargindata[inmargin][stack=yes]
\starttext
\dorecurse{20}{%
\fakewords{5}{30}
\inmargin{\externalfigure[dummy\recurselevel][width=15mm,height=15mm]}
\fakewords{5}{40}\par
}
\stoptext
Hraban
:\currentparentitemgroup][\recurselevel].}%
#1%
}
\defineconversion[legal][\legalconversion]
How can fix this?
Are you looking for the repeat keyword?
\starttext
\setupitemize[1][width=\widthofstring {0},distance=1em]
\setupitemize[2][width=\widthofstring {0.0},distance=1em]
\setupitemize[3
Hi to All
A have this piece of code that works in old ConText versions but with new
versions (current version: 2022.04.19 19:53) don’t.
\def\legalconversion#1{
\dorecurse{\numexpr\currentitemlevel-1}{%
\rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%
#1%
}
\defineconversion
onversion=mp]}]
\definesymbol [no] [{\externalfigure[off.svg][conversion=mp]}]
\setupfield[setup3][width=2ex, height=2ex]
\dorecurse{3}
{\definefield [check-\recurselevel] [check] [setup3] [yes,no] [no]}
\setupbodyfont[sans, 30pt]
\starttext
\startTEXpage[offset=1em, foregroun
supported by fund
\recurselevel.}}}
\endgraf
Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com
}}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd]
\endgraf
\placenotes[address]
\blank[medium]
\startcolumns\hyphenpenalty1000
On 5/2/2022 2:30 AM, Aditya Mahajan via ntg-context wrote:
\expanded{\NC \recurselevel \noexpand\NC ... }
There is no need for \noexpand before \NC. Even \NR is protected. In
MKIV there are some more sensitive ones like \FR but in LMTX these are
defined as \noaligned which permits them
upexternalfigures[width=3em,height=2em,frame=on,]
>
> %\def\TXT{\ruledhbox{\bf(XyX)}}
> \def\TXT{\externalfigure[pic]}
>
> \starttabulate[|l|l|l|l|l|l|]
> \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
> \HL
> \dostepwiserecurse{0}{359}{45}{%
> %\exp
[pic]}
\starttabulate[|l|l|l|l|l|l|]
\NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
\HL
\dostepwiserecurse{0}{359}{45}{%
%\expanded{\setuprotate[rotation=\recurselevel]}
\NC{\expanded{\recurselevel}˚}%
\NC{\ruledhbox{X\rotate[location=normal,rotation=\recurselevel]{\TXT}X
code, I can
compile a specific range of chapters, not the whole workbook.
\define\activityA{}
\define\activityB{}
\dostepwiserecurse{1}{30}{1}{
\chapter{\recurselevel}
\activityA
\activityB
}
\activityA prints the workbook activity "Activity A".
\activityB prints t
artchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\bfd five}
\fi
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
uphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\
{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\bfd five}
\fi
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\blank
\i
ter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
\input zapf
\fi
\stopchapter
}
\stoptext
%%% EOF
s chapter:after
\doifoddpageelse{}
{\page[empty]}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
topitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show the error, in
> > hopes that it w
This is a bullet of type #1.
\stopitemize
}
\starttext
\dorecurse{9}{\T\recurselevel}
\stoptext
Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes
that it will shed some light on what's wrong with my setup
\item This is a bullet of type #1.
> >\stopitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show t
\recurselevel}
\stoptext
Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes
that it will shed some light on what's wrong with my setup. I have a feeling
that the stand along install is missing some vital part
Here is the minium not-working example which I took from the Wikigarden a few
minutes ago.
\def\T#1{%
\startitemize[#1,joinedup]
\item This is a bullet of type #1.
\stopitemize
}
\starttext
\dorecurse{9}{\T\recurselevel}
\stoptext
Compiling this into a pdf file with context
netext
>> [chapterfooter] % name
>> [footer]% vertical location
>> [pagenumber]% content
>>
>> \setuphead
>> [chapter]
>> [header=empty,
>>footer=chapterfooter]
>>
>> \starttext
>>
>> \dorecurse{4}
>> {\ex
>> \definetext
>> [chapterfooter] % name
>> [footer]% vertical location
>> [pagenumber]% content
>>
>> \setuphead
>> [chapter]
>> [header=empty,
>>footer=chapterfooter]
>>
>> \starttext
>>
>&
[header=empty,
>footer=chapterfooter]
>
> \starttext
>
> \dorecurse{4}
> {\expanded{\chapter{Chapter \recurselevel}}
>\dorecurse{10}{\samplefile{lorem}}}
>
> \stoptext
>
> Wolfgang
Yes, this works in a simple setup. But it doesn’t work in mine with my
LHS-q
. How can I do this?
\definetext
[chapterfooter] % name
[footer] % vertical location
[pagenumber] % content
\setuphead
[chapter]
[header=empty,
footer=chapterfooter]
\starttext
\dorecurse{4}
{\expanded{\chapter{Chapter \recurselevel}}
\dorecurse{10}{\samplefile{lorem
he way, neither does \blackboard{Q} work. But \rationals works in
the case of the letter Q.
Hi Gerben,
it only seems to work inside math:
\starttext
\dorecurse{26}{$\blackboard\characters{\recurselevel}
\Characters{\recurselevel}$}
\stoptext
I hope it helps,
Yes, the new \blackboard command
reset the counter for parts and chapters
\defineresetset [default] [0,0] [1]
\starttext
\completecontent
\dorecurse{4}
{\expanded{\part{Part \recurselevel}}
\dorecurse{5}{\expanded{\chapter{Chapter \recurselevel
\stoptext
Wolfgang
e case of the letter Q.
Hi Gerben,
it only seems to work inside math:
\starttext
\dorecurse{26}{$\blackboard\characters{\recurselevel}
\Characters{\recurselevel}$}
\stoptext
I hope it helps,
Yes, the new \blackboard command works, so $\blackboard{Q}$ works. Thanks.
The \blackboard c
only seems to work inside math:
>
> \starttext
> \dorecurse{26}{$\blackboard\characters{\recurselevel}
> \Characters{\recurselevel}$}
> \stoptext
>
> I hope it helps,
Yes, the new \blackboard command works, so $\blackboard{Q}$ works. Thanks.
Feature request: make sure that the new
On 10/23/21 3:00 PM, Gerben Wierda via ntg-context wrote:
> By the way, neither does \blackboard{Q} work. But \rationals works in
> the case of the letter Q.
Hi Gerben,
it only seems to work inside math:
\starttext
\dorecurse{26}{$\blackboard\characters{\recurselevel}
\Char
kip4cm
\dostepwiserecurse{0}{360}{10}{
\doloopoverlist{normal,default,depth,fit,broad,high,middle}{
\ruledhbox{\rotate[rotation=\recurselevel, location=\recursestring]{%
\framed
[width=\textheight, height=\textwidth, rulethickness=5pt,
depth=0cm, foregroundstyle=\bfd]
{\recurse
}]
\starttext
\doiffile{A3page.pdf}
{\def\Doc{A3page.pdf}
\getfiguredimensions[\Doc]
\dorecurse{\noffigurepages}
{\ifodd\recurselevel
\rotate[rotation=90]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\else\rotate[rotation=270
,width=\textheight]}}
}
\stoptext
irr it's actually shown somewhere in a manual but the source also has this
% \dostepwiserecurse{0}{360}{10}
% {\startlinecorrection[blank]
%\hbox
% {\expanded{\setuprotate[rotation=\recurselevel]}%
% \traceboxplacementtrue
% \hbox to .2
]
\dorecurse{\noffigurepages}
{\ifodd\recurselevel
\rotate[rotation=90]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\else\rotate[rotation=270]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\fi}}
\stoptext
I’m afraid
ext/latest/cont-tst.zip>
Can anyone else reproduce this, please?
shoul dbe:
What \recursedepth\recurselevel\space
\feature[+]{smallcaps}
What \recursedepth\recurselevel\space
\feature[+]{oldstyle}
What \recursedepth\recurselevel
pagenumbering
> [alternative=doublesided]
>
> \showframe
>
> \starttext
> \dorecurse{10}{\expanded{\chapter{Chapter
> \convertnumber{word}{\recurselevel
> \stoptext
this looks interesting, but it's not quite what I want.
I think I would like to have a different solutio
this?
\setuphead
[chapter]
[page=yes,
alternative=inmargin,
location=outer,
align=outer]
\setuppagenumbering
[alternative=doublesided]
\showframe
\starttext
\dorecurse{10}{\expanded{\chapter{Chapter
\convertnumber{word}{\recurselevel
\stoptext
Wolfgang
to achieve this?
\startbuffer[apx]
\setuppapersize[
\setuppapersize[%
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname-apx.pdf][page=\recurselevel]
\stopTEXpage}
\externalfigure [...] [page=\recurselevel,orientation=90]
Wolfgang
\dorecurse{10}{\input zapf\par}
\typesetfile[\jobname-apx.tex][--purgeall][object=no, width=0pt]
\stopbodymatter
\startappendices
\getfiguredimensions[\jobname-apx.pdf]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname-apx.pdf][page=\recurselevel
odymatter
\dorecurse{10}{\input zapf\par}
\typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt]
\stopbodymatter
\startappendices
\getfiguredimensions[\jobname-slides.pdf]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname-slides.p
e file as
\typesetfile[\jobname-slides.tex][--purgeall][object=no, width=0pt]
and the output file would read:
\getfiguredimensions[\jobname-slides.pdf]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname-slides.pdf][page=\recurselevel]
\stopTEXpage}
I mean, y
page
\externalfigure[\jobname_slides.pdf][page=\recurselevel]
\stopTEXpage}
\stopappendices
\stoptext
Op za 31 jul. 2021 om 16:22 schreef Thomas A. Schmitz via ntg-context <
ntg-context@ntg.nl>:
>
> On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote:
>
name_slides.tex][--purgeall][object=no, width=0pt]
\stopbodymatter
\startappendices
\getfiguredimensions[\jobname_slides.pdf]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[\jobname_slides.pdf][page=\recurselevel]
\stopTEXpage}
\stopappendices
\stoptext
BT
> \dorecurse{50}{\expanded
> {\startframe
> \startMPcode
> numeric u, omega, mylength, tt ;
> u := 2cm ;
> omega := 4 ;
> mylength := 3.141596 ;
> tt := \recurselevel ;
> path p ;
> p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 :
> .. (((mylength/1
{\startframe
\startMPcode
numeric u, omega, mylength, tt ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel ;
path p ;
p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 :
.. (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u)
endfor ;
draw p withpen pencircle scaled .5pt
:= 3.141596 ;
tt := \recurselevel - 1 ;
N := 500 ; % number of steps
path p ;
p := (0u,0u) for i = 1 upto N :
--
(((mylength/N)*i)*u,cos(omega*(mylength
\startMPcode
numeric u, omega, mylength, tt ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel ;
path p
small animation to enlarge a circle
>
>
> \usemodule[animation]
> \setupinteraction[state=start]
> \starttext
> \startanimation[menu=yes,framerate=10]
> \dorecurse{7}{\expanded
> {\startframe
> \startMPcode
> path p;
> numeric n, u;
> u := 1cm;
>
e
> \startMPcode
> path p;
> numeric n, u;
> u := 1cm;
> n:=\recurselevel*u;
> p := fullcircle scaled n;
> draw p;
> \stopMPcode
> \stopframe}}
> \stopanimation
> \stoptext
>
>
> This I use to draw a sine
>
>
> \st
I use this small animation to enlarge a circle
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\startanimation[menu=yes,framerate=10]
\dorecurse{7}{\expanded
{\startframe
\startMPcode
path p;
numeric n, u;
u := 1cm;
n:=\recurselevel*u;
p := fullcircle
On 7/14/21 9:06 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.07.2021 um 20:41:
>> Dear list,
>>
>> I have the following sample:
>>
>>\starttext
>>\doloopoverlist{a,b,c,d}
>> {\recursestring, number: \recurselevel\\}
Pablo Rodriguez schrieb am 14.07.2021 um 20:41:
Dear list,
I have the following sample:
\starttext
\doloopoverlist{a,b,c,d}
{\recursestring, number: \recurselevel\\}
\stoptext
Which is the way to get the number when looping over a list?
There is no number, you're just
Dear list,
I have the following sample:
\starttext
\doloopoverlist{a,b,c,d}
{\recursestring, number: \recurselevel\\}
\stoptext
Which is the way to get the number when looping over a list?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
;
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
\unprotect
\tolerant\protected\def\useMPanimation[#1]#2%
{\begingroup
\scratchtoks\emptytoks
\dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2%
\expanded{\startanimation[#1]\the\scratchtoks\stopanimation}%
\endgroup}
\protect
)
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
1 - 100 of 852 matches
Mail list logo