\par
%% synonyms: \nofuserpages, \lastuserpagenumber
last user page: \lastpagenumber\par
%% for sake of completeness
first real page \firstpage \par
\chapter{no counting}
\dorecurse{5}{%
\section{iteration \recurselevel}
\starttable[|l|l|]
\NC counter\NC value\NC\NR
\
> \starttext
> \dorecurse{400}
> {\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316,
> 318, 354, 372, 376}
> {\recurselevel, }}
> \stoptext
>
Thanks. That worked perfectly!
Troy
__
On Sep 28, 2012, at 8:31 PM, Troy Henderson
wrote:
> I have a list of numbers,
>
> 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376
>
> that I would like to use as exceptions in a \dostepwiserecurse loop. That
> is, within the loop if \recurselevel is NOT
I have a list of numbers,
2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376
that I would like to use as exceptions in a \dostepwiserecurse loop. That
is, within the loop if \recurselevel is NOT EQUAL to either of these
numbers, then I want to do something -- otherwise, I simply
)
\dorecurse{10}
{\startMPpage
label(btex On step \recurselevel etex, origin);
\stopMPpage}
(There is also \dostepwiserecurse if you need more control).
Aditya
___
If your question is of interest to others as
The hack:
\unprotect
% adapted from \tabl_ntb_stretch_widths, tabl-ntb.mkiv, ll. 1296f
\def\tabl_ntb_mystretch_widths % more variants, e.g. a max to \dimend
{\ifcase\c_tabl_ntb_maximum_col\else % else division by zero
\!!dimend\zeropoint
\!!dimene\hsize
\dorecurse\c_tabl_n
thbox is used
{\ifdim\scratchoffset>\zeropoint\relax
\advance\vsize -2\scratchoffset
\advance\hsize -2\scratchoffset
\externalfigure[#filename][\c!page=\recurselevel,#figuresettings,\c!scale=,\c!factor=\v!max,\c!offset=\v!overlay]%
>>
>> \starttext
>>
>> \section{First}
>>
>> \dorecurse{36}{Line \recurselevel\par}
>>
>> \section{Second}
>>
>> \dorecurse{36}{Line \recurselevel\par}
>>
>> \stoptext
>
> Are we sure about that key? (a conditional
On 13-7-2012 10:02, Wolfgang Schuster wrote:
Hi Hans,
can you add a testpage option to \setuphead?
%\setuphead[section][testpage=4]
\setuphead[section][before={\testpage[4]\blank[2*big]}]
\starttext
\section{First}
\dorecurse{36}{Line \recurselevel\par}
\section{Second}
\dorecurse{36
Hi Hans,
can you add a testpage option to \setuphead?
%\setuphead[section][testpage=4]
\setuphead[section][before={\testpage[4]\blank[2*big]}]
\starttext
\section{First}
\dorecurse{36}{Line \recurselevel\par}
\section{Second}
\dorecurse{36}{Line \recurselevel\par}
\stoptext
Wolfgang
*4,doublesided]
\def\Style{[2UP]} %{[2*2*4,doublesided]}
\startbuffer[Fakepage]
\strut
\blank[force]
\midaligned{\Style}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
% \showframe
\currentparagraph\e!endsetup}{\typo_paragraphs_setup_saved[\currentparagraphs]}%
- \dorecurse{\paragraphsparameter\c!n}
-
{\normalexpanded{\typo_paragraphs_setup_saved[\currentparagraphs:\recurselevel][\c!width=,\s!parent=\??paragraphs\currentparagraphs]}}%
- \typo_paragraphs_setup_saved
aphs_setup_step##1{\typo_paragraphs_setup_saved[#1:##1][#3]}%
- \processcommalist[#2]\typo_paragraphs_setup_step}}
+\doifelse{#2}\v!each
+
{\dorecurse{\namedparagraphsparameter{#1}\c!n}{\typo_paragraphs_setup_saved[#1:\recurselevel][#3]}}
+
{\def\typo_paragr
uparranging[2*4]
\stopmode
\setuppagenumbering[state=stop]
\starttext
\dorecurse{8}{\null\vfill\centerline\recurselevel\vfill\null\page}
\stoptext
When I process this with
context --mode=arranged test
I get the expected output. When I process it with
context --mode=arranged --arrange test
th
\newcount\AtPageCnt
>
> \def\PostPoneA#1#2{%
> \startpostponing[#2]%
> \DoublePicAt{#1}}
>
> \def\PostPone#1#2{%
> \AtPageCnt=#2
> \PostPoneA{#1}{\the\AtPageCnt}\stoppostponing
> \advance\AtPageCnt by 1%
> \PostPoneA{#1-back}{\the\AtPageCnt}\stoppostponing
> }
>
&
eA{#1}{\the\AtPageCnt}\stoppostponing
\advance\AtPageCnt by 1%
\PostPoneA{#1-back}{\the\AtPageCnt}\stoppostponing
}
\starttext
\PostPone{hacker}{5}
\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
}
\stoppostponing
\stoptext
--
luigi
___
rounds[page][background={bg}]
%\setupbackgrounds[page][background={foreground,bg}]
\def\DoublePicAt#1{
\setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
\strut
\page
}
\starttext
\startpostponing[5]
\DoublePicAt{hacker}
\stoppostponing
\startpostponi
you don't need \setuparranging
>
> \setuppapersize [A6,landscape] [A3]
>
> \setuppagenumbering [location=]
> \setupbackgrounds [page] [background=color, backgroundcolor=gray]
> \setupbodyfont [sans, 58pt]
> \setuplayout[nx=2, ny=4, marking=on]
>
> \star
marks]
[frame=off,
bottomframe=on,
leftframe=on,
width=\paperwidth,
height=\paperheight]{}}
\stopsetups
\starttext
\dorecurse{4}
{\null\vfill\centerline\recurselevel\vfill\null\page}
\stoptext
I don't know
ring [location=]
\setupbackgrounds [page] [background=color, backgroundcolor=gray]
\setupbodyfont [sans, 58pt]
\setuplayout[nx=2, ny=4, marking=on]
\starttext
\dorecurse{4}
{\null\vfill\centerline\recurselevel\vfill\null\page}
\stoptext
> 2. I'd like to get crop marks, in this
; \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}
>>>
>>> \setupbackgrounds[page][background=bg]
>>> \strut
>>> \page
>>> }
>>>
>>> \def\DoublePicAt#1#2{
>>> \startpostponing[#2]
&
ound=bg]
>> \strut
>> \page
>> }
>>
>> \def\DoublePicAt#1#2{
>> \startpostponing[#2]
>> \DoDoublePicAt{#1}
>> \stoppostponing
>> }
>>
>>
>>
>> \starttext
>> \DoublePicAt{hacker}{5}
>>
>> \dorecurse{30}{
>>
+6mm)]}
\setupbackgrounds[page][background=bg]
\strut
\page
}
\def\DoublePicAt#1#2{
\startpostponing[#2]
\DoDoublePicAt{#1}
\stoppostponing
}
\starttext
\DoublePicAt{hacker}{5}
\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
}
\stoptext
Thank you
> \page
> \startcolumns[n=4,rule=on]
>\dorecurse{1024}{\recurselevel
> --\getglyph{marvosym}{\char\recurselevel\par}}
> \stopcolumns
> \stoptext
>
>
> And how to access symbols by their names, e.g. how to use symbol named
> "AtForty"?
&
... Thanks both for your answers.
My code so far is:
\usesymbols[mvs]
\starttext
\startcolumns[n=2,rule=on]
\showsymbolset[martinvogel 2]
\stopcolumns
\page
\startcolumns[n=4,rule=on]
\dorecurse{1024}{\recurselevel
--\getglyph{marvosym}{\char\recurselevel\par
][background=bg]
\strut
\page
}
\def\DoublePicAt#1#2{
\startpostponing[#2]
\DoDoublePicAt{#1}
\stoppostponing
}
\starttext
\DoublePicAt{hacker}{5}
\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
}
\stoptext
--
luigi
layer[bg]
> \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
> \setupbackgrounds[page][background=bg]
> \strut
>
> \page[right]
> \setuppagenumber[state=start]
>
> \resetlayer[bg]
>
> \setlayer[bg]{\exter
[page][background=bg]
\strut
\page
\stoppostponing
}
\starttext
\DoublePicAt{hacker}{5}
\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
}
\stoptext
--- *** ---
Can you show me a way to use layers within postponing, please?
Greetlings, Hraban
---
\par
<*> ./postpone
\stoptext
--- *** ---
I guess I need to unexpand something?
My example:
--- *** ---
\def\TestPostpone#1{
\startpostponing[#1]
\strut
\page
\stoppostponing
}
\starttext
\TestPostpone{3}
\dorecurse{30}{
\secti
]
\section{Tufte}
\input tufte
\strut
\page
\strut
\page
\section{More Tufte}
\input tufte
\page
\stoppostponing
\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
ve me the marking of the next chapter
\getmarking[chapter][next]
% I'd also like to get a hyperlink to it
\stopsetups
\starttext
\dorecurse{3}{\chapter{Chapter \recurselevel} \input knuth \relax }
\stoptext
Aditya
]
\startbuffer[Fakepage]
\strut
\blank[force]
\midaligned{2UP}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}
\stoptext
Greetlings, Hraban
---
http
[\m{α},\m{β},\m{γ},\m{δ},\m{ε},\m{ζ},
\m{η},\m{θ},\m{ι},\m{κ},\m{λ},\m{μ},
\m{ν},\m{ξ},\m{ο},\m{π},\m{ρ},\m{σ},
\m{τ},\m{υ},\m{φ},\m{χ},\m{ψ},\m{ω}]
%\setupbodyfont[lucidaot]
\starttext
\starttabulate
\NC greek \EQ \dorecurse{24}{\convertnumber{greek}{\recurselevel} }
\NC\NR
\NC math
lides_step{#1}{#2}}
> \def\StartOnly#1#2\StopOnly{\complexslides_only{#1}{#2}}
>
> \long\def\gobble#1{}
> \long\def\oneofone#1{#1}
>
> % TODO: Allow nesting of \StartStepping ... \StopStepping
>
> \def\StartStepping#1#2\StopStepping%
>
> {\dorecurse{#1}{\long\setvalue{c
g#1#2\StopStepping%
{\dorecurse{#1}{\long\setvalue{complexslides_steps_step_\recurselevel}{\gobble}}%
\dorecurse{#1}{\long\setvalue{complexslides_steps_only_\recurselevel}{\gobble}}%
\pushmacro\ONLY
\pushmacro\STEP
\def\ONLY{\complexslides_only}%
\def\STEP{\complexslides_step}%
]
\midaligned{2UP}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}
\stoptext
Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
rse{10}{\input knuth\footnote{Footnote \recurselevel}\par}
\stoptext
Wolfgang
___
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.n
ou have a problem you should make a minimal example and tell which
version of context you’re using.
mtx-context | current version: 2012.04.17 22:37
When I run this example I don’t get the symbol unless I enable the indicator:
%\setupnote[footnote][indicator=yes]
\starttext
\dorecurse{4}{\i
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer
\setupheadertexts[\CONTEXT]
\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}
\stoptext
Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an as
ight), width=(A4 height)]
\expanded{\externalfigure[filename][page=\recurselevel]}%
\expanded{\externalfigure[filename][page=\numexpr\recurselevel+1\relax]}%
\stopTEXpage
}
If the number of pages is even, ins
On Thu, Feb 16, 2012 at 11:53, Marco wrote:
> On 2012-02-16 Mari Voipio wrote:
>
>> So, if I have
>>
>> photo1.jpg
>> photo2.jpg
>> photo3.jpg
>> photo4.jpg
>>
>> and \dorecurse{10}{insert random photo here}, how do I do it?
>
> \
On 2012-02-16 Mari Voipio wrote:
> So, if I have
>
> photo1.jpg
> photo2.jpg
> photo3.jpg
> photo4.jpg
>
> and \dorecurse{10}{insert random photo here}, how do I do it?
\dorecurse{4}{\externalfigure[photo\recurselevel]}
Beware, \recurselevel counts go like thi
in which i have to remove the first “%” sign?
>
> {%\dorecurse\plusseven{\fontdimen\recurselevel\nullfont\zeropoint}% keep
> en eye on this as:
yes, and then rebuild the format
$ context --generate
(to be sure)
and
$ context
{\fontdimen\recurselevel\nullfont\zeropoint}% keep
en eye on this as:
thank you!
___
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
at I can provide.
>
>
> Interesting is that it matters if one puts colons after words:
>
> one % :
>
> \pic
>
> two:
>
> \pic
>
> Anyhow, the problem is that tikz messes around with cq. assumes nullfont to
> be in a certain state which is asking fo
ic
Anyhow, the problem is that tikz messes around with cq. assumes nullfont
to be in a certain state which is asking for troubles.
In font-set.mkvi there is some provision for this (which I don't like),
but anyhow, one can uncomment the \dorecurse line
\def\font_preloads_reset_nullf
\starttext
> 64 \showframe
> 65 \showgrid
> 66
> 67
> 68 \startcolumnset[body]
> 69
> 70 >> \dorecurse{40}{\input tufte \par }
> 71
> 72 %\input tufte \par
> 73
> 74 \stopcolumnset
> 75
> 76 \stoptext
> 77
>
>
> \OTRSETdoifcellelse ...er #1:
\starttext
> 64 \showframe
> 65 \showgrid
> 66
> 67
> 68 \startcolumnset[body]
> 69
> 70 >> \dorecurse{40}{\input tufte \par }
> 71
> 72 %\input tufte \par
> 73
> 74 \stopcolumnset
> 75
> 76 \stoptext
> 77
>
>
> \OTRSETdoifcellelse ...er #1:\number #2\end
SETdoifcellelse ...er #1:\number #2\endcsname
\@EA \secondoftwoarguments...
\@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
{\global \advance \columnl...
\redoloop ->\expandrecursecontent
]
\starttext
\dorecurse{100}{test \StrikeMe{now \recurselevel} test $\StrikeMe{x}$
test \StrikeMe{$x$} test }
\stoptext
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH
%
\startexo
Prove that
\startformula
\cos(nt) + {\rm i}\sin(nt) = (\cos(t) + {\rm i}\sin(t))^n.
\stopformula
\StartQuestions
\dorecurse{5}{\q This is question \recurselevel. }
\StopQuestions
\stopexo
%
%
\startexo Solve the following equations or
On 20-1-2012 08:07, Michael Guravage wrote:
I am typesetting an article where the footnotes should be collected as
endnotes. I am also using imposition to arrange the article as a booklet.
When using the default location 'page', footnotes work as expected. But
when I change the location to 'text
I am typesetting an article where the footnotes should be collected as
endnotes. I am also using imposition to arrange the article as a booklet.
When using the default location 'page', footnotes work as expected. But
when I change the location to 'text' and use \placefootnotes to produce the
endno
%definefontfallback [test] [Bold][0x0061-0x007A] % make lowercase bold
\definefontsynonym[Test][Serif][fallbacks=test]
\definefont[TestFont][Test]
\starttext \TestFont
\dostepwiserecurse{65}{90}{1}{\char\recurselevel\relax\space}\par
\dostepwiserecurse{97}{122}{1}{\char\recurselevel\relax\space}
\stoptext
lowercase bold
\definefontsynonym[Test][Serif][fallbacks=test]
\definefont[TestFont][Test]
\starttext \TestFont
\dostepwiserecurse{65}{90}{1}{\char\recurselevel\relax\space}\par
\dostepwiserecurse{97}{122}{1}{\char\recurselevel\relax\space}
\stoptext
Wolfgang
ittle bit tricky.
> >> I wonder if there is a better (and elegant) way to manage the
> >> problem.
> >
> > You can the number of lines on a page with the \setuplayout command.
> >
> > \setuplayout[lines=20]
> > \starttext
> > \dorecurse{100}{Line \rec
lines on a page with the \setuplayout command.
>
> \setuplayout[lines=20]
> \starttext
> \dorecurse{100}{Line \recurselevel\par}
> \stoptext
>
> Wolfang
Of course there is a static idea of "line" that depends on the current font
and a dynamic idea of row that depe
ple, I can work on interline
> sizes and glues, but this way is a little bit tricky.
> I wonder if there is a better (and elegant) way to manage the problem.
You can the number of lines on a page with the \setuplayout command.
\setuplayout[lines=20]
\starttext
\dorecurse{100}{Line \re
dingcorr)
> >
> >% Determine the paper aspect ratio.
> >
> > \edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}
> >
> >% Set the textarea width to 2.6 alphabets.
> >\setbox\scratchbox\hbox{\dorecurse{26}{\character\
ine the paper aspect ratio.
>\edef\Ratio{\withoutpt{\the\dimexpr(2\paperheight/(\PageWidth/32768))}}
>
>% Set the textarea width to 2.6 alphabets.
>\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
>\newdimen\Width \Width=\dimexpr
alphabets.
\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}}
\newdimen\Width \Width=\dimexpr(2.6\wd\scratchbox)
% Set the textarea height proportional to the width.
\newdimen\Height \Height=\dimexpr(\Ratio\Width)
% Set the margin
[streams.flushing]
> %
> % \setuplayout[grid=yes] \showgrid
> %
> % \starttext
> %
> % \input tufte
> %
> % \startoutputstream[nl]
> %
> % Wat doen we hier?
> %
> % \enableoutputstream[en]
> %
> % Are you sleeping, brother John?\footnote{xxx}
> %
>
sleeping, brother John?\footnote{xxx}
%
% \dorecurse{4}{x \footnote{note \recurselevel}\input tufte \par
\pushoutputstream}
%
% \enableoutputstream[de]
%
% Bruder Jakob, schläfst du noch?\footnote{yyy}
%
% \dorecurse{4}{x \footnote{note \recurselevel}\input ward \par
\pushoutputstream}
%
% \disab
[margin=1cm]
\showframe
\starttext
\dorecurse {3} {
\ininner[stack=yes]{\expanded{\dorecurse{12}{IM\recurselevel\space}}}%
\inouter[stack=yes]{\expanded{\dorecurse{12}{OM\recurselevel\space}}}%
\input tufte \par
}
\page
\dorecurse {3} {
\ininner[stack=continue]{\expanded{\dorecurse
pspace=5.2cm,
height=fit,
]
\dorecurse{1}{\definelayout[\the\numexpr 1+\recurselevel][]}
\starttext
\showframe
\dorecurse{100}
{\input knuth}
\stoptext
I can send the pdf offlist
--
luigi
___
If your question is o
;
> \setuplayout[
> backspace=3cm, topspace=1.5cm,
> rightmargin=0cm,leftmargin=1.3cm,
> width=15cm,
> leftmargindistance=0.2cm,
> height=fit,
> header=0cm, footer=1cm,
> ]
>
> \definelayout[1][
> topspace=5.2cm,
> height=fit,
> ]
>
>
> \do
thout warnings
%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]
\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]
\definelayout[1][
topspace=5.2cm,
height=fit
o the mkIV version.
>>
>> Could a new version of mkII could solve this bug ?
> mkii is frozen.
> Another patch is to force reset to all the pages of document, as for example
> \dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
> or, if you are su
this bug ?
mkii is frozen.
Another patch is to force reset to all the pages of document, as for example
\dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
or, if you are sure that your document has less than 500 pages
\dorecurse{500}{\definelayout[\the\numexpr 1+\recurselevel][r
> \dorecurse{3}{\framed{\clip[x=\recurselevel,y=1]{\externalfigure[map.svg][width=570mm]}}}
>
> \dorecurse{3}{\framed{\clip[x=\recurselevel,y=2]{\externalfigure[map.svg][width=570mm]}}}
>
> \dorecurse{3}{\framed{\clip[x=\recurselevel,y=3]{\externalfigure[map.svg][width=570mm]}}}
>
&
Hi,
I've used ConTeXt to chop up a big map svg on separate A4 papers like
this:
\setuplayout[width=190mm,backspace=10mm,height=297mm,topspace=10mm,
header=0mm]
\setupclipping[nx=3,ny=3]
\starttext
\dorecurse{3}{\framed{\clip[x=\recurselevel,y=1]{\externalfigure[map.svg][width=
ounter[\currentitemgroupcounter]%
[\number\currentitemlevel]%
+ \else\ifconditional\repeatlistitem
+ \dostepwiserecurse\currentrepeatstart\currentitemlevel\plusone
+{\addvalue{repeatlist}{\getvalue{\@@globalitemsymbol\recurselevel}}}%
+
\normalexpanded{\definestructureconversionset[\??op::\v!
\stopitemize
\dorecurse{10}{\item Item \recurselevel}
\stopitemize
\stoptext
But I guess that in this case I'll just remove \setupitemize[broad,fit].
Aditya
___
If your question is of interest to others as well, p
nd repeating it 4 times?)
You can write a macro that reads a pdf file and outputs each of its
page four times. For example (untested):
\getfiguredimensions[file]%
\edef\NOfpages{\noffigurepages}%
\dorecurse{\NOfpages}
{\dorecurse{4}
{\startTEXpage
\externalfigure[file][pag
f its
> page four times. For example (untested):
>
> \getfiguredimensions[file]%
> \edef\NOfpages{\noffigurepages}%
> \dorecurse{\NOfpages}
>{\dorecurse{4}
> {\startTEXpage
> \externalfigure[file][page=\recurselevel]%
> \stopTEXpage}}
>
> a
its page
four times. For example (untested):
\getfiguredimensions[file]%
\edef\NOfpages{\noffigurepages}%
\dorecurse{\NOfpages}
{\dorecurse{4}
{\startTEXpage
\externalfigure[file][page=\recurselevel]%
\stopTEXpage}}
and then
:
/
\
I would like it displayed as:
/\
see other mails
you can also set 'location' to one of
depth fit broad high middle default
an example from the source:
% \dostepwiserecurse{0}{360}{10}
% {\startlinecorrection[blank]
%\hbox
% {\expanded{\setuprotate[rotation=\re
ext][text][background=screen,backgroundscreen=0.7]
> %\setupcolors [state=start]
> \setuplayout [location=middle,marking=on]
> \setuppaper[nx=4, ny=2]
> \setuparranging [XY]
>
> \def\Style{[XY 4*2]}
>
> \startbuffer[Fakepage]
> \strut
> \blan
7]
%\setupcolors [state=start]
\setuplayout [location=middle,marking=on]
\setuppaper[nx=4, ny=2]
\setuparranging [XY]
\def\Style{[XY 4*2]}
\startbuffer[Fakepage]
\strut
\blank[force]
\midaligned{\Style}
\vfill
\midaligned{This is page \recurselevel}
from a macro I have been using since 'forever':
\newcount\imgcount % to store the number of pages
\unexpanded\def\addimage#1{%
\getfiguredimensions[#1.pdf]%
\imgcount=\noffigurepages\relax
\dorecurse
{\the\imgcount}
{\getfiguredimensions[#1.pdf][page=\recurselevel]%
> possible to set an itemgroup using predefined item and custom made item head
> like
>
> \def\circlednum#1{\uchar{36}{95+#1}}
> \defineconversion[cnum][\circlednum]
\defineconversion[circlednumber][①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,⑪,⑫,⑬,⑭,⑮,⑯,⑰,⑱,⑲,⑳]
\setupbodyfont[cambria]
\starttext
\
\fullexpandtwoargsafter is not defined in MkIV. As a result, \processpage
does not work.
Minimal example:
\setuphead[section][before={\pagetype[section]}, page=yes]
\processpage[section][yes]
\starttext
\dorecurse{10}{\section {Test \recurselevel}
\dorecurse{10}{\input knuth \endgraf
; pieces if it is at the end of a line?
>>
>> \hbox{Some Very Very Very Very Very Long Name}
>
> A bad suggestion by the hyphenation lady ... how about:
>
> \setupalign[verytolerant]
>
> \starttext
> \starttabulate[|p(8cm)|p(8cm)|]
> \NC \hyphenation{Mi-kla
o
>>> pieces if it is at the end of a line?
>>
>> \hbox{Some Very Very Very Very Very Long Name}
>
> A bad suggestion by the hyphenation lady ... how about:
>
> \setupalign[verytolerant]
>
> \starttext
> \starttabulate[|p(8cm)|p(8cm)|]
> \NC \hyphenation{Mi-kla
>>
>> \hbox{Some Very Very Very Very Very Long Name}
>
> A bad suggestion by the hyphenation lady ... how about:
>
> \setupalign[verytolerant]
>
> \starttext
>\starttabulate[|p(8cm)|p(8cm)|]
>\NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklave
hyphenation lady ... how about:
\setupalign[verytolerant]
\starttext
\starttabulate[|p(8cm)|p(8cm)|]
\NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns
\recurselevel\space}
\NC \hyphenation{Mikla-vec} \dorecurse{100}{Mojca Miklavec turns
\recurselevel\space}
\NC \NR
\setupbackgrounds [state=repeat]
> \defineoverlay [side]
> [{\rotate[rotation=90]{\getmarking[section]}}]
> \setupbackgrounds [text] [rightmargin] [background=side]
>
> \starttext
>
> \dorecurse{10}
> {\startsection[title=Sectio
round=side]
\starttext
\dorecurse{10}
{\startsection[title=Section \recurselevel]
\input knuth \page
\stopsection}
\stoptext
Works here with MkIV 2011.05.18 22:26
Marco
___
If your question is of int
}{1,3,7,10}{\setlayer[test][x=3cm,y=7cm]{\ssd Test:
> \test}}
> \stopsetups
>
> \setupbackgrounds[page][background=test,setups=test]
>
> \starttext
> \dorecurse{12}
> {\def\test{\convertnumber{A}{\recurselevel}}%
> \dontleavehmode\page}
> \stoptext
>
> Wolfgang
>
genumber}{1,3,7,10}{\setlayer[test][x=3cm,y=7cm]{\ssd Test:
\test}}
\stopsetups
\setupbackgrounds[page][background=test,setups=test]
\starttext
\dorecurse{12}
{\def\test{\convertnumber{A}{\recurselevel}}%
\don
material.
I occasionally use the following macros for quick and dirty stepwise
effects. This is for really simple material (no counters, no glues ...)
\usemodule[simpleslides][style=Swoosh]
\def\StartSteps#1#2\StopSteps%
{\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
\dorecurse{#1}{\long
>
> I occasionally use the following macros for quick and dirty stepwise
> effects. This is for really simple material (no counters, no glues ...)
>
> \usemodule[simpleslides][style=Swoosh]
> \def\StartSteps#1#2\StopSteps%
> {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
es are mirrored on a left page."
>>
>
> A concerete example:
>
> \setuplayout
>[backspace=5cm,
> cutspace=2cm,
> leftmargin=4cm,
> rightmargin=1cm,
> width=middle]
>
> \setuppagenumbering[alter
'right' and
'left' values are mirrored on a left page."
A concerete example:
\setuplayout
[backspace=5cm,
cutspace=2cm,
leftmargin=4cm,
rightmargin=1cm,
width=middle]
\setuppagenumbering[alternative
a TOC is enough. I could
>> create the document and cut out the TOC, but it would be simpler if
>> that could be auto generated.
>
> Perhaps a starting point:
>
> \startbuffer[mydocument]
> \completecontent
> \dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}}
:
\count0=0
\loop\ifnum\count0<5000
\advance\count0 by 1
\shipout\vbox{}
\repeat
\end
\starttext
\dorecurse{1} {test: \recurselevel\page}
\stoptext
pdftex + mkii : 35 sec
xetex + mkii : 35 sec
luatex + mkiv : 40 sec
no crashes.
No sense when you say "no crashes" wi
it would be simpler if
> that could be auto generated.
Perhaps a starting point:
\startbuffer[mydocument]
\completecontent
\dorecurse{50}{\expanded{\chapter{Chapter \recurselevel}}}
\stopbuffer
\setuplayout[page]
\starttext
% Here, you must know the number of pages of the toc.
% Certaninly, thi
bit faster but with the same error message:
>>
>> \count0=0
>> \loop\ifnum\count0<5000
>> \advance\count0 by 1
>> \shipout\vbox{}
>> \repeat
>> \end
>
> \starttext
> \dorecurse{1} {test: \recurselevel\page}
> \stoptext
>
> pd
eat
\end
\starttext
\dorecurse{1} {test: \recurselevel\page}
\stoptext
pdftex + mkii : 35 sec
xetex + mkii : 35 sec
luatex + mkiv : 40 sec
no crashes.
-
Hans Hagen | PRAGMA
stopitemize
>
> \page
>
> \startitemize[n]
> \dorecurse{20}
> {\startitem Some text
> \startitemize[a,columns,four,unpacked][left=(,right=),stopper=]
> \dorecurse{8}{\startitem Problem \recurselevel \stopitem}
> \stopitemize
> \stopitem}
> \stopitemize
>
>
401 - 500 of 911 matches
Mail list logo