\edef\m_syst_helpers_range_from{\number\c_helpers_range_min}%
\fi
\ifx\m_syst_helpers_range_to\wildcardsymbol
\edef\m_syst_helpers_range_to{\number\c_helpers_range_max}%
\fi
\ifempty\m_syst_helpers_range_to
\let\m_syst_helpers_range_to\m_syst_helpers_range_from
ember 20, 2024 at 11:04:47 AM MDT, Bruce Horrocks
wrote:
> 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}{18
> 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
=textcircle,
location=low,
offset=none]
\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext
Thank you again Wolfgang. This is very helpful and works well.
One question I have for you is how to set the colour of the circle to
match the other text on my page
,
> frame=off,
> background=textcircle,
> location=low,
> offset=none]
>
> \starttext
> \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
> \stoptext
Thank you again Wolfgang. This is very helpful and works well.
One question I have for you i
]
\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl
width=1.5em,
height=1.5em,
frame=off,
background=textcircle,
location=low,
offset=none]
\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext
Wolfgang
___
If y
%radius=.5fw,
> radius=\dimexpr\framedwidth/2\relax,
> offset=none]
>
> \starttext
> \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
> \stoptext
Thank you kindly, Wolfgang. That worked perfectly.
--
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.the
round,
radius=.5fw,
offset=none]
\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext
Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it
failed:
Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc,
bp, dk, or54sp; but yours
; radius=.5fw,
> offset=none]
>
> \starttext
> \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
> \stoptext
Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it
failed:
Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc,
bp, dk
these commands. Any help appreciated.
I can't provide a circle but I can give you a box with rounded corners.
\defineframed
[textcircled]
[ width=1.5em,
height=1.5em,
location=low,
corner=round,
radius=.5fw,
offset=none]
\starttext
\dostepwiserecurse{0}{9}{
raphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=0}}{}\stopcombination}\page\dostepwiserecurse{5}{8}{1}{\startcombination[3*1]%distance=0mm]{\useMPgraphic{ticket}{i=\recurselevel,j=2}}{}{\useMPgraphic{ticket}{i=\recurselevel,j=1}}{}{\useMPg
higher font size gives less slanted text (or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif
at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax
S\vrule\relax lanted
, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax
S\vrule\relax lanted}\par}
\stoptext
Wolfgang
]
\setcounter[userpage][1]
%\showmakeup[vbox]
%\showlayout
\dostepwiserecurse{0}{30}{1}{
\xmlprocessfile{mysetups}{/path to xhtml
files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{}
}
\stoptext
Below are the result showing the number of overfull boxes for these
novels using the setups in
[vbox]
%\showlayout
\dostepwiserecurse{0}{30}{1}{
\xmlprocessfile{mysetups}{/path to xhtml
files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{}
}
\stoptext
Below are the result showing the number of overfull boxes for these
novels using the setups in the file spac-imp-tests.mkxl . See the
[layout.vz]
\setuplayout[width=middle,headerdistance=5mm,vz=no]
\clubpenalty 1
\widowpenalty 1
\dostepwiserecurse{0}{30}{1}{
\dorecurse{#1}{\strut dummy line ##1\par}
\dorecurse{4}{\samplefile{tufte}\par}
}
\stoptext
\stopbuffer
\startbuffer[vz-2]
\starttext
gt; No, it's an independent feature of the linebreak mechanism. You can run
> this and see how it kicks in
>
> \starttext
>
> \definecolor[ttest][a=1,t=.5]
> \definecolor[rtest][a=1,t=.5,r=1]
>
> \dostepwiserecurse{80}{120}{1}{
> \startTEXpa
more adaptive tricks (although I bet he can figure them out himself).
>
> \starttext
>
> % \setupexternalfigures
> % [location={default,global}]
>
> % \startsetups adaptive:test
> % \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
> -\usedadaptivedepth \bgroup
> %
idth,0)) randomized
(ExHeight/2);
\stopMPcode
\egroup
\stopsetups
\dorecurse{5}{
\dostepwiserecurse{1}{150}{1}{%
this~#1.##1 is~#1.##1 test~#1.##1
{\adaptivebox[strut=yes,setups=adaptive:test]{\strut}}
}
\blank
}
\stoptext
(2) If someone wants a plain (or
,t=.5]
\definecolor[rtest][a=1,t=.5,r=1]
\dostepwiserecurse{80}{120}{1}{
\startTEXpage[offset=1ts]
\startcombination[1*3]
{\startoverlay
{\vtop{\showmakeup[space]\hsize #1mm\ttest
\samplefile{tufte}}}
{\vtop{\showmakeup[space]\hsize #1mm\
[kaktovik]
[metapost=kaktovik]
\protect
\continueifinputfile{meta-imp-kaktovik.mkxl}
\definefontfeature
[default]
[default]
[metapost=kaktovik]
% [metapost={category=kaktovik,u=.25,d=.20,x=}]
\setupbodyfont[dejavu]
% \nopdfcompression
\startTEXpage[offset=1ts,width=3es]
\st
\protect
\continueifinputfile{meta-imp-kaktovik.mkxl}
\definefontfeature
[default]
[default]
[metapost=kaktovik]
% [metapost={category=kaktovik,u=.25,d=.20,x=}]
\setupbodyfont[dejavu]
% \nopdfcompression
\startTEXpage[offset=1ts,width=3es]
\start
\showglyphs
KAKTOVIK
\do
\starttext
% corner options (with radius=0pt rectangular):
%
% 0 round ltrb trbl rblt bltr
% 1 2 3 4 5 6 7 8 ltrb
% 9 lbr rbl / 10 tlb blt / 11 ltr rtl / 12 lbr rbl
% 13 rt tr / 14 rb br / 15 bl lb / 16 tl lt
% 32 lr rl / 33 tb bt
% 28 l / 29 r / 30 b / 31 t
\dostepwiserecurse{0}{33}{1}{
\s
noticing, i uploaded a new lmtx
as a reward i'll reveal a new mechanism:
\useMPlibrary[dum]
\definetextdisplay[steppedbystep][before={\blank[halfline]}]
\starttext \showmakeup[line]
\dostepwiserecurse{10}{25}{1}{
\par
\starttextdisplay
\externalf
ecial
application, so what I can add is a simple helper that returns the first
and last page of a section
\dostepwiserecurse {\firstsectionpage[crap][chapter:3]}
{\lastsectionpage[crap][chapter:3]} {1} {
\startpagemakeup
\externalfigure[crap.pdf][page=#1]
\stoppagem
{\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
Kern\emwidth
\endgroup}
\continueifinputfile{m-gimmicks.mkxl}
\setupbodyfont[pagella]
\startTEXpage [offset=1dk]
\def\Test#1{%
\begingroup
#1%
\dostepwiserecurse{5}{8}{1}{
\def\MacScale{.##1}%
\Mac Anulty
\par
}
\endg
\dimexpr-\scratchoffset+2\scratchdepth\relax
\relax
\kern-\dimexpr\scratchwidth+\scratchdistance\relax
M%
\glyphscale\numexpr\numericscale\MacScale*\glyphyscale/\plusthousand\relax
\glyph
yoffset \scratchoffset `c
\kern\MacKern\emwidth
\endgroup
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
ptive
[tock]
[tick]
[color=adaptive:tock]
\dorecurse{5}{
\dostepwiserecurse{1}{150}{1}{%
this~#1.##1 is~#1.##1 test~#1.##1
\ifodd##1\relax
\adaptivebox[tick]{\hss tick #1.##1\hss}
\else
\adaptivebox[tock]{\hss tock #1.##1\hss}
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
]
\defineadaptive
[tock]
[tick]
[color=adaptive:tock]
% with postprocessing
\dorecurse{5}{
\dostepwiserecurse{1}{150}{1}{%
this~#1.##1 is~#1.##1 test~#1.##1
\ifodd##1\relax
\adaptivebox[tick]{\hss tick #1.##1\hss}
\else
\adaptivebox[tock
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
]
{\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
\fi}}
\stoptext
I’m afraid that if rotation values are 270 or 180, the imposed page has
an extra vertical space before.
nicer demo:
\showframe
\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{10}{
\ruledhbox{\rotate[rotation=#1
[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup
and not make it 'sort of text that breaks or not across the page'. Now
it is an interesting question why ... (spoiler: nice animation:)
\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{
\rotate[rotation=#1]{\externalfigure[
backend.date=no]
> \enabledirectives[backend.trailerid=no]
> \starttext
>
> \startTEXpage
> \blackrule[height=1cm,depth=0cm,width=4cm,color=darkred]
> \stopTEXpage
>
> (there always were command line options for it)
>
> More interesting is asome new experimental code:
>
> \s
=darkred]
\stopTEXpage
(there always were command line options for it)
More interesting is asome new experimental code:
\starttext
\dostepwiserecurse{40}{110}{2}{
\startTEXpage[offset=4mm,width=#1mm,align={stretch,normal,tolerant}]
\showmakeup[penalty]%
\orphanpenalties 4 4000
t these are features that
hardly anyone uses, get forgotten and probably no one can find where it's
documents because no one expects it).
Anyway, a pre-weekend distaction:
\starttext
\enabletrackers[hyphenation.applied]
\enabletrackers[hyphenation.applied.console]
\dontcomplain \dostepwiserecu
ecause no one expects it).
Anyway, a pre-weekend distaction:
\starttext
\enabletrackers[hyphenation.applied]
\enabletrackers[hyphenation.applied.console]
\dontcomplain \dostepwiserecurse{0}{15}{1}{
{\advance\hsize -#1cm \input tufte \par} }
\stoptext
This will give you in the log file (first and second
anyone uses, get forgotten and probably no one can find
where it's documents because no one expects it).
Anyway, a pre-weekend distaction:
\starttext
\enabletrackers[hyphenation.applied]
\enabletrackers[hyphenation.applied.console]
\dontcomplain \dostepwiserecurse{0}{15}{1}{
{\advan
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\ }}
>
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
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
tufte }}
\def\DemoC#1{\startTEXpage[offset=10pt]\DemoA{#1pt}\blank\DemoB{#1pt}\blank#1pt\stopTEXpage}
\starttext
\dostepwiserecurse{300}{600}{10}{
\startTEXpage[offset=10pt]
\startoverlay
{\DemoA{#1pt}}
{\DemoB{#1pt}}
\stopoverlay
][style=\bfe]
\dostepwiserecurse {10} {2020} {10} {
\title{Here we go #1!}
\start
\glyphxscale#1\relax
\glyphyscale#1\relax
\setupinterlinespace
\samplefile{ward}%
\start
\bf
\samplefile{ward}%
\glyphxscale\numexpr(#
\definescaledfont[bfe][xscale=2000,yscale=6000,style=bf]
\setuphead[chapter][style=\bfe]
\dostepwiserecurse {10} {2020} {10} {
\title{Here we go #1!}
\start
\glyphxscale#1\relax
\glyphyscale#1\relax
\setupinterlinespace
\samplefile{ward}%
\start
\bf
\samplefile
%% EXAMPLE
\setuplayout[middle]
\setupbodyfont[pagella,10pt]
\setupalign[verytolerant,stretch]
\setupwhitespace[big]
\starttext
\startbuffer
\definescaledfont[bfe][scale=2000,style=bf]
\setuphead[chapter][style=\bfe]
\dostepwiserecurse {10} {2020} {10} {
\title{Here we go #1!}
that thread:
\starttext
\showframe \showboxes
\setupalign[end]
\dostepwiserecurse{5}{8}{1}{
\hsize #1cm
What does happen with a short paragraph?\par
}
\stoptext
gives the attached pdf.
fixed in next beta ... (but no beta uploaded yet ... not sure when)
The new beta works
the last line to be flush right.
However, that is not working. The example from that thread:
\starttext
\showframe \showboxes
\setupalign[end]
\dostepwiserecurse{5}{8}{1}{
\hsize #1cm
What does happen with a short paragraph?\par
}
\stoptext
gives the attached pdf.
Thanks,
Aditya
e from that thread:
>
> \starttext
>
> \showframe \showboxes
>
> \setupalign[end]
>
> \dostepwiserecurse{5}{8}{1}{
> \hsize #1cm
> What does happen with a short paragraph?\par
> }
>
> \st
]
\dostepwiserecurse{5}{8}{1}{
\hsize #1cm
What does happen with a short paragraph?\par
}
\stoptext
gives the attached pdf.
Thanks,
Aditya
test.pdf
Description: Adobe PDF document
___
If your question is of interest to
]
\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
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
ere you add the markpage commands at
the begin and end of the range, below is a simple example but it’s easy
to write
a better loop with Lua.
\setuplayout[page]
\setupinteraction[state=start]
\setupinteractionscreen[option={portrait, paper}, print=pages]
\starttext
\getfiguredimensions[i-context.
em
all and rename them along the lines of Pict1.jpg, Pict2.jpg etc and
\dostepwiserecurse as in the example below
\setupexternalfigures [directory={/a/directory}]
\starttext
\dostepwiserecurse{1}{10}{1}
{
\externalfigure[Pict\recurselevel.jpg]
}
\stoptext
However, I was wondering if was possible
On 7/4/2016 5:52 PM, Keith McKay wrote:
Colleagues
I'm preparing a booklet of figures which are stored in a directory,
however their is no structure in their naming. I could go through them
all and rename them along the lines of Pict1.jpg, Pict2.jpg etc and
\dostepwiserecurse as in the ex
Colleagues
I'm preparing a booklet of figures which are stored in a directory,
however their is no structure in their naming. I could go through them
all and rename them along the lines of Pict1.jpg, Pict2.jpg etc and
\dostepwiserecurse as in the example below
\setupexternalfi
frame \showboxes
\setupalign[end]
\dostepwiserecurse{5}{8}{1}{
\hsize #1cm
What does happen with a short paragraph?\par
}
\stoptext
The alignment doesn’t work well with short paragraphs.
lua ma
[source] [mm] [math] [xits] [default]
>
> \setupbodyfont[source, 11pt]
>
> \starttext
>
> ...
>
> \page
>
> {\tfxx \purefontname\font: \input ward \blank}
> {\tfx \purefontname\font: \input ward \blank}
> {\tf \purefontname\font: \input ward \blank}
> {\
tname\font: \input ward \blank}
\page
\dostepwiserecurse {6} {22} {1}
{\switchtobodyfont[#1pt]
\purefontname\font: \input ward
\blank}
\stoptext
___
If your question is of interest to others as well, please a
Thank you Wolfgang,
now it works partially (see the first attachment): it uses different
optical sizes, but not always the right ones.
\definefontfamily [default] [rm] [GaramondPremierPro] [opticalsize=yes]
\setupbodyfont[default,12pt]
\starttext
\dostepwiserecurse {6} {22} {2
bodyfont[default,12pt]
\dostepwiserecurse {6} {22} {1} {
\definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}
\starttext
\dostepwiserecurse {6} {22} {1} {
\switchtobodyfont[#1pt]
\purefontname\font: \input tufte
\blank
}
\stoptext
but it does not work. Any help?
%\definefontfamily [default] [rm
l sizes
in a document. I've tried this:
\loadfontgoodies[GaramondPremierPro]
\definefontfamily [default] [rm] [tf=name:GaramondPremierPro-Regular,
it=name:GaramondPremierPro-Italic]
\setupbodyfont[default,12pt]
\dostepwiserecu
t;last line enforced in %i steps",done)
end
end
end
\stopluacode
\edef\ward {\cldloadfile{ward}}
\defineparbuilder[crap]
\starttext
\dorecurse{20} {
\dostepwiserecurse{0}{80}{2} {
\indenting[##1mm,yes]
\dontcomplain
\setupalign[tolerant
inside ConTeXt with ease.
And the animation feature is really good to give better presentation to
students.
As you said \dostepwiserecurse would be useful in many ways.
Please share your ideas too.
Best regards,
Dalyoung
> Hi Jeong,
>
> I played with your code and indeed it is ver
, one can also use \dostepwiserecurse
as in
\startanimation[menu=yes]
\dostepwiserecurse{0}{20}{2}{\expanded{\startframe \MyGraphics{\recurselevel}
\stopframe}}
\stopanimation
Best regards: OK
> On 21 Jan 2016, at 23:47, Wolfgang Schuster
> wrote:
>
>> Jeong Dal <mailto
pts to grid snapping
\defineprofile
[myprofile]
[method=quarterfixed,
height=\strutht,
depth=\strutdp,
distance=3pt]
\startbuffer
\dostepwiserecurse{1}{400}{5}{just a test #1 $\frac{x}{#1}^{#1}$ and
}done\par
\stopbuffer
\starttext
\startTEXpage[align=normal,strut=no]
\getbuf
uot;""""""""""""""""""""""""""""""""""""""""""
If I comp
e
\setupexternalfigures [directory={/Path/to/the/Photos}]
\defineexternalfigure[photo][maxheight=0.4\textheight]
\define \numberText{1}
\starttext
\dostepwiserecurse{141}{146}{1}/% //\recurselevel is part of photo
filename. See below./
{
\externalfigure[sam_0\recurselevel.jpg][photo] \par
on the
wiki on how to use it. Any suggestions would be helpfull.
Here is the code
\setupexternalfigures [directory={/Path/to/the/Photos}]
\defineexternalfigure[photo][maxheight=0.4\textheight]
\define \numberText{1}
\starttext
\dostepwiserecurse{141}{146}{1}/% //\recurselevel i
Any suggestions would be helpfull.
Here is the code
\setupexternalfigures [directory={/Path/to/the/Photos}]
\defineexternalfigure[photo][maxheight=0.4\textheight]
\define \numberText{1}
\starttext
\dostepwiserecurse{141}{146}{1}/% //\recurselevel is part of photo
filename. See below./
{
\ex
fdim\wd\scratchbox>15em 16pt\fi\fi\fi\fi
> ]
> }
> #1
> \endgroup
> \stoptexdefinition
>
> \starttext
> \dostepwiserecurse{30}{80}{2}{\AutoFontSize{\dorecurse{#1}{x}}\par}
> \stoptext
--
http://www.ousia.tk
___
\else
\ifdim\wd\scratchbox>15em 16pt\fi\fi\fi\fi
]
}
#1
\endgroup
\stoptexdefinition
\starttext
\dostepwiserecurse{30}{80}{2}{\AutoFontSize
0 \sfcode`\;100
\input tufte
\dostepwiserecurse{`a}{`z}{1}{\sfcode#1=100\relax}
\input tufte
\dostepwiserecurse{"0}{"}{1}{\sfcode#1=100\relax}
\input tufte
\stoptext
I'm pretty sure I would not read books typeset that way.
replacing and by & can be done too but that would look even
\definefont [Story][StoryRegular.otf]
>>>> \definefont [LozenCondensed][lozencondensed.ttf]
>>>>
>>>> \starttext
>>>> \Story test - тест.
>>>>
>>>> \LozenCondensed test - тест.
>>>> \stoptext
&
not unicode.
\starttext
\startfont[file:lozencondensed.ttf]
\dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space}
\stopfont
\stoptext
so someone has to make a file like dingbats.lfg ... or, as the font is
not that pretty anyway, use another font instead
Hans
т.
>> \stoptext
>
> maybe the font has no cyrillic
It has but it uses a custom encoding and not unicode.
\starttext
\startfont[file:lozencondensed.ttf]
\dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space}
\stopfont
\stoptext
Wolfgang
___
\definetypeface [ebgaramond] [mm] [math] [bonum] [default]
\stoptypescript
\stoptypescriptcollection
\loadtypescriptfile[ebgaramond]
\definefontfeature
[quality]
[expansion=quality,
protrusion=quality]
\definefontfeature
[eb-garamond-normal]
[eb-garamond-normal,quality]
>
> it will probably be improved over time, but interplay between skips an
> penalties and such is always tricky; we have a weighted system in place but
> even then …
I would have expected to get the same results from \blank[samepage,…] and
\nobreak\blank[…] as you can see in the ex
ore the “samepage” keyword in grid mode.
When you process this example in normal mode “line 40” is moved to the second
page but in grid mode it stays on the first page.
%\setuplayout[grid=yes]
\starttext
\dostepwiserecurse{1}{40}{1}{Line \recurselevel\par}
\blank[samepage,line]
\d
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
That works great. Now I have defined a global numeric
N:=8;
in \startMPinclusions ... \stopMPinclusions at the be beginning of my
document. All of my \startMPpage ... \stopMPpage environments understand
this N, but how do I reference this value as the start value for
\dostepwiserecurse? That
That works great. Now I have defined a global numeric
N:=8;
in \startMPinclusions ... \stopMPinclusions at the be beginning of my
document. All of my \startMPpage ... \stopMPpage environments understand
this N, but how do I reference this value as the start value for
\dostepwiserecurse? That
)
\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
eight}, width=(A5 width)]
\externalfigure[filename][page=1]
\stopTEXpage
loop and insert all but the last page (you may have to test if the number
of pages are odd or even and use \numexpr(\NOfPages - 1) to find the last
but one page:
\dostepwiserecurse{2}{2}{\LastButOnePage}
{ \startTEXpage[height=(A5 he
ur case this feature shows a unwanted side effect because the line end
after “do” is ignored and Lua gets “dotex.print”. To fix this you can either
use \dostepwiserecurse where you can set a start/stop value for the loop of you
add a space after “do
%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
ounter[\currentitemgroupcounter]%
[\number\currentitemlevel]%
+ \else\ifconditional\repeatlistitem
+ \dostepwiserecurse\currentrepeatstart\currentitemlevel\plusone
+{\addvalue{repeatlist}{\getvalue{\@@globalitemsymbol\recurselevel}}}%
+
\normalexpanded{\definestructureconversionset[\??op::\v!
:
/
\
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
]}
\page
\dorecurse{30}{line \recurselevel\par} \blank[medium,small]
\dostepwiserecurse{31}{50}{1}{line \recurselevel\par}
\stoptext
It's really a problem if compiling a component file which ends up with another
page breaking than the corresponding product file.
I hope there will be
placefigure[top,nonumber]{}{\externalfigure[dummy]}
> \page
> \dorecurse{30}{line \recurselevel\par} \blank[medium,small]
> \dostepwiserecurse{31}{50}{1}{line \recurselevel\par}
> \stoptext
>
> It's really a problem if compiling a component file which ends up with
> an
1 - 100 of 178 matches
Mail list logo