Re: [NTG-context] Total Number of Pages

2012-10-16 Thread Philipp Gesang
\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 \

Re: [NTG-context] Conditionals

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

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
) \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] Stretching width in natural TABLEs

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

[NTG-context] Bug in page-sel.mkvi

2012-08-23 Thread Sietse Brouwer
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]%

Re: [NTG-context] \setuphead and testpage

2012-07-14 Thread Wolfgang Schuster
>> >> \starttext >> >> \section{First} >> >> \dorecurse{36}{Line \recurselevel\par} >> >> \section{Second} >> >> \dorecurse{36}{Line \recurselevel\par} >> >> \stoptext > > Are we sure about that key? (a conditional

Re: [NTG-context] \setuphead and testpage

2012-07-13 Thread Hans Hagen
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

[NTG-context] \setuphead and testpage

2012-07-13 Thread Wolfgang Schuster
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

[NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
*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

Re: [NTG-context] Bug in \typo_paragraphs_setup_three.

2012-07-08 Thread Hans Hagen
\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

Re: [NTG-context] Bug in \typo_paragraphs_setup_three.

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

[NTG-context] modes + arranging

2012-07-08 Thread Thomas A. Schmitz
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

Re: [NTG-context] multi-page floats

2012-06-06 Thread luigi scarso
\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 > } > &

Re: [NTG-context] multi-page floats

2012-06-06 Thread luigi scarso
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 ___

Re: [NTG-context] multi-page floats

2012-06-06 Thread luigi scarso
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

Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marcin Borkowski
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

Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
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

Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
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

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
;  \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]} >>> >>>      \setupbackgrounds[page][background=bg] >>>      \strut >>>      \page >>> } >>> >>> \def\DoublePicAt#1#2{ >>> \startpostponing[#2] &

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
ound=bg] >>      \strut >>      \page >> } >> >> \def\DoublePicAt#1#2{ >> \startpostponing[#2] >> \DoDoublePicAt{#1} >> \stoppostponing >> } >> >> >> >> \starttext >> \DoublePicAt{hacker}{5} >> >> \dorecurse{30}{ >>  

Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm
+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

Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Wolfgang Schuster
> \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"? &

Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... 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

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
][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

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
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

Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm
[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 ---

Re: [NTG-context] multi-page floats

2012-06-04 Thread Henning Hraban Ramm
\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

Re: [NTG-context] multi-page floats

2012-05-28 Thread Henning Hraban Ramm
] \section{Tufte} \input tufte \strut \page \strut \page \section{More Tufte} \input tufte \page \stoppostponing \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth

[NTG-context] Link to next chapter

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

Re: [NTG-context] imposition 2UP = empty pages

2012-05-17 Thread Henning Hraban Ramm
] \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

Re: [NTG-context] greek items broken:

2012-05-09 Thread Wolfgang Schuster
[\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

Re: [NTG-context] Page Numbering using IncludePicture from simple slides

2012-04-24 Thread Steffen Fritzsche
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

Re: [NTG-context] Page Numbering using IncludePicture from simple slides

2012-04-23 Thread Aditya Mahajan
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}%

Re: [NTG-context] imposition 2UP = empty pages

2012-04-23 Thread Henning Hraban Ramm
] \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

Re: [NTG-context] Is there some easy way to do tufte-style side note?

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

Re: [NTG-context] Changing navigation symbol

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

[NTG-context] imposition 2UP = empty pages

2012-04-20 Thread Henning Hraban Ramm
\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

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

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

Re: [NTG-context] Getting changing/random graphics?

2012-02-21 Thread Mari Voipio
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? > > \

Re: [NTG-context] Getting changing/random graphics?

2012-02-16 Thread Marco
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

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread luigi scarso
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

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Philipp A.
{\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

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Felix Ingram
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

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Hans Hagen
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

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-02-03 Thread Peter Park Nelson
    \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:

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
    \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

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
SETdoifcellelse ...er #1:\number #2\endcsname \@EA \secondoftwoarguments... \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell {\global \advance \columnl... \redoloop ->\expandrecursecontent

Re: [NTG-context] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-25 Thread Hans Hagen
] \starttext \dorecurse{100}{test \StrikeMe{now \recurselevel} test $\StrikeMe{x}$ test \StrikeMe{$x$} test } \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] \startitemize[columns] broken with backgrounds?

2012-01-22 Thread Otared Kavian
% \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

Re: [NTG-context] endnotes, imposition and recurselevel

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

[NTG-context] endnotes, imposition and recurselevel

2012-01-19 Thread Michael Guravage
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

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] Constraint in line numbers

2011-12-22 Thread Fulvio Satta
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

Re: [NTG-context] Constraint in line numbers

2011-12-22 Thread luigi scarso
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

Re: [NTG-context] Constraint in line numbers

2011-12-21 Thread Wolfgang Schuster
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

Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
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\

Re: [NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Aditya Mahajan
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

[NTG-context] KOMA-srcartcl Type Area: How to count header and footer to text area?

2011-12-13 Thread Paul Menzel
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

Re: [NTG-context] Streams

2011-11-23 Thread Willi Egger
[streams.flushing] > % > % \setuplayout[grid=yes] \showgrid > % > % \starttext > % > % \input tufte > % > % \startoutputstream[nl] > % > % Wat doen we hier? > % > % \enableoutputstream[en] > % > % Are you sleeping, brother John?\footnote{xxx} > % >

Re: [NTG-context] Streams

2011-11-23 Thread Wolfgang Schuster
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

Re: [NTG-context] empty lines messing with margins (in duplex mode)

2011-11-12 Thread Hans Hagen
[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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-29 Thread luigi scarso
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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Wolfgang Schuster
; > \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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Wolfgang Schuster
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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
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

Re: [NTG-context] Clip and framed not precise in MKIV

2011-09-21 Thread Peter Rolf
> \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]}}} > &

[NTG-context] Clip and framed not precise in MKIV

2011-09-21 Thread Otso Helenius
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=

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] setting margin for second level of itemize

2011-09-08 Thread Aditya Mahajan
\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

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Aditya Mahajan
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

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Marcin Borkowski
f its > page four times. For example (untested): > > \getfiguredimensions[file]% > \edef\NOfpages{\noffigurepages}% > \dorecurse{\NOfpages} >{\dorecurse{4} > {\startTEXpage > \externalfigure[file][page=\recurselevel]% > \stopTEXpage}} > > a

Re: [NTG-context] Imposition and repeating pages

2011-08-25 Thread Aditya Mahajan
its page four times. For example (untested): \getfiguredimensions[file]% \edef\NOfpages{\noffigurepages}% \dorecurse{\NOfpages} {\dorecurse{4} {\startTEXpage \externalfigure[file][page=\recurselevel]% \stopTEXpage}} and then

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] arranging and cut marks

2011-07-29 Thread Willi Egger
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

[NTG-context] arranging and cut marks

2011-07-29 Thread Henning Hraban Ramm
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}

Re: [NTG-context] OT: Pdf info

2011-07-20 Thread Taco Hoekwater
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]%

Re: [NTG-context] about suppressing prefix in section number

2011-07-16 Thread Wolfgang Schuster
> 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 \

[NTG-context] \fullexpandtwoargsafter in MkIV

2011-06-08 Thread Aditya Mahajan
\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

Re: [NTG-context] Last names

2011-05-20 Thread Mojca Miklavec
; 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

Re: [NTG-context] Last names

2011-05-20 Thread luigi scarso
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

Re: [NTG-context] Last names

2011-05-20 Thread Steffen Wolfrum
>> >> \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

Re: [NTG-context] Last names

2011-05-20 Thread Hans Hagen
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

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread alexandre
\setupbackgrounds [state=repeat] > \defineoverlay [side] > [{\rotate[rotation=90]{\getmarking[section]}}] > \setupbackgrounds [text] [rightmargin] [background=side] > > \starttext > > \dorecurse{10} > {\startsection[title=Sectio

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Marco
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

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
}{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 >

Re: [NTG-context] Layers again

2011-04-26 Thread Wolfgang Schuster
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

Re: [NTG-context] slide steps again

2011-04-25 Thread Aditya Mahajan
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

Re: [NTG-context] slide steps again

2011-04-25 Thread Vedran Miletić
> > 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}}

Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)

2011-04-09 Thread James Fisher
es are mirrored on a left page." >> > > A concerete example: > > \setuplayout >[backspace=5cm, > cutspace=2cm, > leftmargin=4cm, > rightmargin=1cm, > width=middle] > > \setuppagenumbering[alter

Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)

2011-04-09 Thread Aditya Mahajan
'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

Re: [NTG-context] Is it possible to generate only a table of contents

2011-03-18 Thread luigi scarso
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}}}

Re: [NTG-context] 620 pages limit?

2011-03-18 Thread Hans Hagen
: \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

Re: [NTG-context] Is it possible to generate only a table of contents

2011-03-18 Thread Peter Münster
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

Re: [NTG-context] 620 pages limit?

2011-03-16 Thread Vnpenguin
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

Re: [NTG-context] 620 pages limit?

2011-03-16 Thread Hans Hagen
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

Re: [NTG-context] Itemize not breaking across pages?

2011-03-11 Thread Alasdair McAndrew
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 > >

<    1   2   3   4   5   6   7   8   9   10   >