[NTG-context] Re: Problem with context --extra=select

2024-09-21 Thread Wolfgang Schuster
\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

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Joel via ntg-context
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

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Bruce Horrocks
> 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 > >

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Jim
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

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Wolfgang Schuster
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

[NTG-context] How to tell a single *.tex file to produce separate PDFs?

2024-09-19 Thread Joel via ntg-context
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

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
=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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
, > 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

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
] \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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
%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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
;   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

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
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}{

[NTG-context] Asking help for better way to make tickets.

2024-01-12 Thread Jeong Dal via ntg-context
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

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
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

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
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

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
, 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

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
] \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

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
[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

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
[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

Re: [NTG-context] new version

2023-06-23 Thread Marcus Vinicius Mesquita via ntg-context
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

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
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 > %

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] new version

2023-06-23 Thread Hans Hagen via ntg-context
,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\

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
[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

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
\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

Re: [NTG-context] A corner case relating to corners!

2023-02-05 Thread Hans Hagen via ntg-context
\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

Re: [NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
{\cldcontext{document.foundsection.first}} {0} { \dostepwiserecurse {\cldcontext{document.foundsection.first}} {\cldcontext{document.foundsection.last}} {1} { \DoWithSection{#1}{\recurselevel} } } \stoptexdefinition

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] C with macron

2022-08-24 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] C with macron

2022-08-24 Thread Hans Hagen via ntg-context
\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

Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
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

[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context
[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

[NTG-context] new upload

2022-04-19 Thread Hans Hagen via ntg-context
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}

[NTG-context] How to create a more human-readable syntax for displaying workbook activities?

2022-04-18 Thread Joel via ntg-context
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

[NTG-context] new upload

2022-04-15 Thread Hans Hagen via ntg-context
] \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

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Hans Hagen via ntg-context
] {\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

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
[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[

Re: [NTG-context] upload

2021-10-21 Thread Mikael Sundqvist via ntg-context
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

[NTG-context] upload

2021-10-21 Thread Hans Hagen via ntg-context
=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

Re: [NTG-context] Keeping track of hyphenations

2021-03-19 Thread Hans Hagen
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

Re: [NTG-context] Keeping track of hyphenations

2021-03-19 Thread denis.maier
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

Re: [NTG-context] Keeping track of hyphenations

2021-03-19 Thread Hans Hagen
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

Re: [NTG-context] looping an overlay

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

Re: [NTG-context] looping an overlay

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

[NTG-context] looping an overlay

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

[NTG-context] lmtx

2021-02-19 Thread Hans Hagen
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

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
][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(#

[NTG-context] efficiently scaling fonts

2020-12-24 Thread Hans Hagen
\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

[NTG-context] new font trickery

2020-12-22 Thread Hans Hagen
%% 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!}

Re: [NTG-context] align=end not working

2018-11-18 Thread Aditya Mahajan
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

Re: [NTG-context] align=end not working

2018-11-13 Thread Hans Hagen
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

Re: [NTG-context] align=end not working

2018-11-13 Thread Henri Menke
e from that thread: > > \starttext > > \showframe \showboxes > > \setupalign[end] > > \dostepwiserecurse{5}{8}{1}{ > \hsize #1cm > What does happen with a short paragraph?\par > } > > \st

[NTG-context] align=end not working

2018-11-09 Thread Aditya Mahajan
] \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

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

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

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

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

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

2018-07-18 Thread Wolfgang Schuster
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.

Re: [NTG-context] Iterate through a directory

2016-07-04 Thread Keith McKay
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

Re: [NTG-context] Iterate through a directory

2016-07-04 Thread Hans Hagen
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

[NTG-context] Iterate through a directory

2016-07-04 Thread Keith McKay
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

Re: [NTG-context] environment flushright

2016-06-13 Thread Hans Hagen
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

Re: [NTG-context] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
[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} > {\

[NTG-context] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
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

Re: [NTG-context] Garamond Premier Pro font goodies file

2016-05-03 Thread mf
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

Re: [NTG-context] Garamond Premier Pro font goodies file

2016-05-02 Thread Wolfgang Schuster
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

[NTG-context] Garamond Premier Pro font goodies file

2016-04-28 Thread massifr
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

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Hans Hagen
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

Re: [NTG-context] Fieldstacks are broken

2016-01-22 Thread Jeong Dal
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

Re: [NTG-context] Fieldstacks are broken

2016-01-21 Thread Otared Kavian
, 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

[NTG-context] new beta

2015-08-03 Thread Hans Hagen
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

[NTG-context] Structure : problem with an environment

2015-07-30 Thread Fabrice Couvreur
uot;"""""""""""""""""""""""""""""""""""""""""" If I comp

Re: [NTG-context] Help with \numexpr

2015-05-04 Thread Keith McKay
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

Re: [NTG-context] Help with \numexpr

2015-05-04 Thread Hans Hagen
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

[NTG-context] Help with \numexpr

2015-05-04 Thread Keith McKay
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

Re: [NTG-context] counting characters when dealing with XML

2015-01-22 Thread Pablo Rodriguez
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 ___

Re: [NTG-context] counting characters when dealing with XML

2015-01-20 Thread Hans Hagen
\else \ifdim\wd\scratchbox>15em 16pt\fi\fi\fi\fi ] } #1 \endgroup \stoptexdefinition \starttext \dostepwiserecurse{30}{80}{2}{\AutoFontSize

Re: [NTG-context] Character and word spacing

2014-05-29 Thread Hans Hagen
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

Re: [NTG-context] Trouble with Cyrillic

2013-10-07 Thread Dmitry Tokarev
 \definefont [Story][StoryRegular.otf] >>>>   \definefont [LozenCondensed][lozencondensed.ttf] >>>> >>>>   \starttext >>>>   \Story test - тест. >>>> >>>>   \LozenCondensed test - тест. >>>>   \stoptext &

Re: [NTG-context] Trouble with Cyrillic

2013-10-07 Thread Hans Hagen
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

Re: [NTG-context] Trouble with Cyrillic

2013-10-07 Thread Wolfgang Schuster
т. >> \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 ___

Re: [NTG-context] Auto selecting optical sizes for a font

2013-06-22 Thread Hans Hagen
\definetypeface [ebgaramond] [mm] [math] [bonum] [default] \stoptypescript \stoptypescriptcollection \loadtypescriptfile[ebgaramond] \definefontfeature [quality] [expansion=quality, protrusion=quality] \definefontfeature [eb-garamond-normal] [eb-garamond-normal,quality]

Re: [NTG-context] Section alone on the page

2012-11-21 Thread Wolfgang Schuster
> > 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

Re: [NTG-context] Section alone on the page

2012-11-20 Thread Wolfgang Schuster
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

Re: [NTG-context] Conditionals

2012-09-28 Thread Rogers, Michael K
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

[NTG-context] Conditionals

2012-09-28 Thread Troy Henderson
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

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
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

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
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

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
) \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

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Aditya Mahajan
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

Re: [NTG-context] lua EOL in xmlsetups

2012-04-15 Thread Wolfgang Schuster
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

Re: [NTG-context] \definefontfallback

2012-01-09 Thread Hans Hagen
%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

[NTG-context] \definefontfallback

2012-01-08 Thread Wolfgang Schuster
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

Re: [NTG-context] repeat option in itemize not working correctly

2011-09-08 Thread Wolfgang Schuster
ounter[\currentitemgroupcounter]% [\number\currentitemlevel]% + \else\ifconditional\repeatlistitem + \dostepwiserecurse\currentrepeatstart\currentitemlevel\plusone +{\addvalue{repeatlist}{\getvalue{\@@globalitemsymbol\recurselevel}}}% + \normalexpanded{\definestructureconversionset[\??op::\v!

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Hans Hagen
: / \ 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

Re: [NTG-context] Float option “top” affects page break (on following pages)

2011-02-25 Thread Hans Hagen
]} \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

Re: [NTG-context] Float option “top” affects page break (on following pages)

2011-02-24 Thread Andreas Harder
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   2   >