0}{1}{%
>
> \input chapter\recurselevel
>
> }
>
> \stoptext
>
> That produces 180 chapters of content.
>
> Anyway, my boss is upset she has to use a table of contents to navigate to
> the page she wants, and so wants me to split the file into 180 separate
>
> On 20 Sep 2024, at 03:57, Joel via ntg-context wrote:
>
> I have a document that's quite long. It uses a recurse function, a bit like
> this:
>
> \starttext
>
> \dostepwiserecurse{1}{180}{1}{%
>
>\input chapter\recurselevel
>
>
On Fri, Sep 20, 2024 at 02:57 (+), Joel via ntg-context wrote:
> I have a document that's quite long. It uses a recurse function, a bit like
> this:
> \starttext
> \dostepwiserecurse{1}{180}{1}{%
> \input chapter\recurselevel
> }
> \stoptext
> T
Joel via ntg-context schrieb am 20.09.2024 um 04:57:
I have a document that's quite long. It uses a recurse function, a bit
like this:
\starttext
\dostepwiserecurse{1}{180}{1}{%
\input chapter\recurselevel
}
\stoptext
That produces 180 chapters of content.
Anyway, my
I have a document that's quite long. It uses a recurse function, a bit like
this:
\starttext
\dostepwiserecurse{1}{180}{1}{%
\input chapter\recurselevel
}
\stoptext
That produces 180 chapters of content.
Anyway, my boss is upset she has to use a table of contents to navigate t
On 08/07/2024 16:25, Henning Hraban Ramm wrote:
Try #1, it often works where \recurselevel fails.
That gives the intended numbers.
Thank you
___
If your question is of interest to others as well, please add an
Am 08.07.24 um 15:48 schrieb vm via ntg-context:
There is a reason that the \recurselevel do not work in this context;
all \recurselevel show up as zero
{\bTABLE
\dorecurse{100}{
\bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR
\bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR
parameters of
\type{\setupframes}, see page. 123}
{Parameters of \type{\setupsomething}.}
}
{\bTABLE
\dorecurse{100}{
\bTR \bTD One \eTD \bTD two \eTD \eTR
\bTR \bTD One \eTD \bTD two \eTD \eTR
}
\eTABLE}
\stoptext
There is a reason that the \recurselevel do not work in this
Thanks you Wolfgang.
If it's not possible to use \blank, it appears that using for example
\strut\par\strut\par is OK (but \par\par is not, )
\dorecurse{5}{
\strut\par\strut\par
\leftaligned{Title for section{\recurselevel}}
\strut\par\strut\par
\darkred\input knuth \par
\darkblue\input
seems also to break the shaping)
Example : 2 pages without sectioning, and after 2 pages by uncommenting the
\startsection and \stopsection commands.
[...]
\dorecurse{5}{
\startsection[title={Title for section{\recurselevel}}]
\darkred\input knuth \par
\darkblue\input ward
\stopsection
}
The
,stretch,normal]%
\setupindenting[yes,small]%
\strut%
\reference[myref1]{MyRef1}Here is the first reference.\par
See reference \in[myref2] on \at{page}[myref2]\par
%
\dorecurse{5}{
%\startsection[title={Title for section{\recurselevel}}]
\darkred\input knuth \par
\darkblue\input ward
%\stopsection
amplefile{lorem}\expanded{\setregisterentry[index][entries=\recurselevel]}%
\samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][footnote={\rawcountervalue[footnote]}]}}%
\samplefile{lorem}}
\page \placei
\high{\currentregisterpageuserdata{footnote
\setupregister[index][pagecommand=\IndexPageCommand]
\starttext
\dorecurse{200}
{\samplefile{lorem}\expanded{\setregisterentry[index][entries=\recurselevel]}%
\samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][foo
xpanded{\setregisterentry[index][entries=\recurselevel]}%
\samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][footnote={\rawcountervalue[footnote]}]}}%
\samplefile{lorem}}
\page \placei
On 4/24/24 02:15, Joel via ntg-context wrote:
> [...] Any idea how I can get current footnote value?
Hi Joel,
current footnote value can be accessed with \rawcountervalue[footnote],
such as in:
\starttext
\dorecurse{25}
{\ \footnote{Footnote \recurselevel}:
\rawcounterva
r[Fakepage]
\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
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
[page]
\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'
;), .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
t /(\PageWidth /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
text/third/typearea/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}{\ch
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
mla=AOV7GLPWRTK-xooHNe0iQ3uubfcSbG__GY_Guy35FdaqDJA3OfLLtp01-E1kzjxUhltlsfj494MaoQFkk9U9hCFYSipoR8aX0Vu2E6sV},
]
There is no need to use userdata as intermediate:
% \startsetups[userdata:idautor]
% \dontleavehmode
% \imghref
% {\externalfigure[cvlac.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{vclac}}
%
ually set the length of the dataset in the loop and use
recurselevel...
% Maybe there is a way to use the length of the "autores" dataset? and
use indexes?
\dorecurse{5}{
\startuserdata[idautor][
author={\datasetvariable{autores}{\recurselevel}{nombre}},
cvlac={\datasetvariab
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 (
erence (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{tufte}}
\s
oundcolor=blue]
\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 with LMTX (b
{\cldcontext{document.foundsection.first}} {0} {
\dostepwiserecurse
{\cldcontext{document.foundsection.first}}
{\cldcontext{document.foundsection.last}}
{1}
{
\DoWithSection{#1}{\recurselevel}
}
}
\stoptexdefinition
re[filename.pdf][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"},{p
\recursestring\dorecurse{26}
> {\character{\recurselevel}̱ }\par
> \egroup}
> \egroup}
> \stoptext
Many thanks for your reply, Hans.
I wonder whether mtxrun --script check should have s
\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 quest
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=\recurselev
\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.
>
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]
\recurselevel
enerates 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 =
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 was
get the error 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
\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
{Work 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
e{10}{
\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
\i
mpty]}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\h
e{10}{
\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
{\page[empty]}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
\input zapf
\fi
\stopchapter
}
\stopte
\startsetups 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}{\recu
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
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 wit
\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 s
\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 p
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
>>
>&g
[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
Don't 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
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 comman
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
df][page=1,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
%
]
\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 that if
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 so
?
\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
ile 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
1 - 100 of 911 matches
Mail list logo