[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
\dorecurse{10}{\input zapf\par} } \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to \textheight \vbox to \vsize{\bo

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
treams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to \textheight \vbox to \vsize{\box\scratchboxfour\vss}% \setbox\scratchboxfive\vsplit\scratchboxtwo to \te

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
} } \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to \textheight \vbox to \vsize{\box

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
} \stopcolor \stopoutputstream \startoutputstream[two] \startcolor[green] \dorecurse{5}{\chapter{Stream Two} \dorecurse{10}{\input zapf\par} } \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstrea

[NTG-context] streams reversed?

2023-09-13 Thread jbf
\stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to\textheight \vbox to\vsize{\box\scratchboxfour\vss}% \setbox

Re: [NTG-context] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
color \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to \textheight \vbox to \vsize{\box\scratchboxfour\vss}% \s

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
}} \stoptext You can of course adapt the font size instead but as it's just stickers the above is probably good enough, but you can do this: \begingroup \doloop { \setbox\scratchbox\hbox\bgroup\framed [align={flushleft},strut=no] {\startlines[before=,after=] \getbuffer

[NTG-context] pages with facing text

2022-06-06 Thread Pablo Rodriguez via ntg-context
}\input zapf\footnote{note}\par\pushoutputstream} \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \input zapf\page \doloop {\ifvoid\scratchboxone \exitloop \else

Re: [NTG-context] Calculating Best Box Width?

2021-06-09 Thread Hans Hagen
typeset each time. When we're okay with the fit (naturalwidth == less than max width) we quit. We can assume that spaces have enough stretch to deal with the close fit. \protected\def\makeitfit#1#2#3% {\begingroup \hsize#1\relax \setbox\scratchboxone\hbox\bgroup#3\egroup \doloop

Re: [NTG-context] new page before xtable with repeated headers

2021-05-31 Thread Hans Hagen
put this on cont-new.mkxl as test: \unprotect \defcsname\??xtableflushsplit\v!repeat\endcsname   {\doloop {\clf_x_table_flush     method {\v!split}%     height \ifdim\pagegoal=\maxdimen\textheight\else\dimexpr\pagegoal-\pagetotal\relax\fi   \relax   \ifcase\c_tabl_x_state

Re: [NTG-context] new page before xtable with repeated headers

2021-05-31 Thread Werner Hennrich
\??xtableflushsplit\v!repeat\endcsname   {\doloop {\clf_x_table_flush     method {\v!split}%     height \ifdim\pagegoal=\maxdimen\textheight\else\dimexpr\pagegoal-\pagetotal\relax\fi   \relax   \ifcase\c_tabl_x_state     \exitloop   \else     \page   \fi

Re: [NTG-context] new page before xtable with repeated headers

2021-04-24 Thread Werner Hennrich
put this on cont-new.mkxl as test: \unprotect \defcsname\??xtableflushsplit\v!repeat\endcsname  {\doloop     {\clf_x_table_flush    method {\v!split}%    height \ifdim\pagegoal=\maxdimen\textheight\else\dimexpr\pagegoal-\pagetotal\relax\fi \relax \ifcase\c_tabl_x_state

Re: [NTG-context] new page before xtable with repeated headers

2021-04-23 Thread Hans Hagen
can put this on cont-new.mkxl as test: \unprotect \defcsname\??xtableflushsplit\v!repeat\endcsname {\doloop {\clf_x_table_flush method {\v!split}% height \ifdim\pagegoal=\maxdimen\textheight\else\dimexpr\pagegoal-\pagetotal\relax\fi \relax \ifcase\c_tabl_x_sta

[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created with the \recurselevel 0 and 2 only in the second example. Does the tabulate cause the error? What

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 21.09.2020 um 16:35: > > On Mon, 21 Sep 2020, Jeong Dal wrote: > > > > > Hi, > > > > > > I tried to make a table using \dorecurse or \doloop as in the example. > > > T

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
\dorecurse{8} {\startxrow\startxcell \recurselevel \stopxcell\stopxrow} \stopxtable \stoptext Best regards: Otared K. > On 21 Sep 2020, at 16:07, Jeong Dal wrote: > > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 21.09.2020 um 16:35: On Mon, 21 Sep 2020, Jeong Dal wrote: Hi, I tried to make a table using \dorecurse or \doloop as in the example. There is no error but \recurselevel is not increased, all are 0 in the first example and only two rows are created

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
2020 a la(s) 09:16, Jeong Dal (hak...@me.com) escribió: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the > first example and only two rows are created with the \recurselevel

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Aditya Mahajan
On Mon, 21 Sep 2020, Jeong Dal wrote: > Hi, > > I tried to make a table using \dorecurse or \doloop as in the example. > There is no error but \recurselevel is not increased, all are 0 in the first > example and only two rows are created with the \recurselevel 0 and 2 only i

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
NoteOverflow\box\scratchbox \setbox\scratchbox\vsplit \MyNoteOverflow to \scratchdimen \fi \vbox \bgroup \topskipcorrection \unvbox\scratchbox \vfilll \egroup \stopsetups \startsetups notaflus

Re: [NTG-context] lmtx update

2020-08-01 Thread Hans Hagen
low to \scratchdimen \fi \vbox\bgroup \topskipcorrection \unvbox\scratchbox \vfilll \egroup \stopsetups \startsetups notaflush \doloop { \page \ifvoid\MyNoteOverflow \exitloop \else \null \page

Re: [NTG-context] Different text versions in columns?

2016-11-27 Thread Jean-Pierre Delange
\dorecurse{10}{\input zapf\par} \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchbox

Re: [NTG-context] Different text versions in columns?

2016-11-27 Thread Wolfgang Schuster
[green] \dorecurse{10}{\input zapf\par} \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratch

[NTG-context] setup different layouts in merged documents

2015-02-17 Thread Pablo Rodriguez
{mail.csv} \doloop{\ifnotEOF\getbuffer[text-content]\nextrow\else\exitloop\fi} %OK \stoptext Contents of mail.csv: ME;11/10/14 You;05/02/14 She;03/03/12 It;03/03/14 t-scancsv.lua can be found at http://public.hajtmar.com/files/TeX/context/t-scancsv_ConTeXt_module/t-scancsv.lua

Re: [NTG-context] setup different layouts in merged documents

2015-02-17 Thread Wolfgang Schuster
] \dorecurse{17}{\input zapf\par} \cA\hfill \cB \page \stopbuffer \opencsvfile{mail.csv} \doloop{\ifnotEOF\getbuffer[text-content]\nextrow\else\exitloop\fi} %OK \stoptext Contents of mail.csv: ME;11/10/14 You;05/02/14 She;03/03/12 It;03/03/14 t-scancsv.lua can be found

Re: [NTG-context] setup different layouts in merged documents

2015-02-17 Thread Pablo Rodriguez
] \dorecurse{17}{\input zapf\par} \cA\hfill \cB \page \stopbuffer \opencsvfile{mail.csv} \doloop{\ifnotEOF\getbuffer[text-content]\nextrow\else\exitloop\fi} %OK \stoptext Contents of mail.csv: ME;11/10/14 You;05/02/14 She;03/03/12 It;03/03/14 t-scancsv.lua can be found at http

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Troy Henderson
Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. Troy ___ If your question is of interest

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Roland Thiers
Le 20 déc. 12 à 05:43, Troy Henderson a écrit : Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. Troy Bonjour, \ctxlua{context(type(\luaexpr{1/3.8}))} gives

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Hans Hagen
On 12/19/2012 7:43 PM, Troy Henderson wrote: Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. they return tokens i.e. \ifnum\luaexpr{math.round(1/3.8)}1\relax should

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Hans Hagen
On 12/19/2012 8:19 PM, Roland Thiers wrote: Le 20 déc. 12 à 05:43, Troy Henderson a écrit : Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. Troy Bonjour, \ctxlua

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Philipp Gesang
···date: 2012-12-19, Wednesday···from: Troy Henderson··· Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. Fwiw there are Lua-side conditionals available as well: http

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Hans Hagen
On 12/19/2012 9:13 PM, Troy Henderson wrote: I got this to work. There's probably a better method though ;) \edef\r{\luaexpr{1/3.8}} \edef\q{1}\doloop{\ctxlua{commands.doifelse(math.abs(\q*\r - math.floor(\q*\r+0.5))0.01)}{\exitloop}{\edef\q{\luaexpr{\q+1 Yes, you need to think more

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Troy Henderson
) \edef\N{10} % Number of frames in animation per hypocycloid branch \edef\K{1}\doloop{\ctxlua{commands.doifelse(math.abs(\K*\r - math.floor(\K*\r+0.5))0.01)}{\exitloop}{\edef\K{\luaexpr{\K+1 \startMPinclusions[+] r:=\r; % Radius of smaller circle (larger circle has radius 1) u:=70

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Wolfgang Schuster
this? \starttext \setbox0\vbox{\input ward\par} \doloop {\setupinterlinespace[line=2.8ex] \ifdim\ht0\lineheight \setupinterlinespace[line=4.2ex] \box0 \exitloop \else \setbox2\vsplit0 to \baselineskip \box2 \fi} \stoptext Wolfgang

Re: [NTG-context] TOC : Changing the interline spacing of titles, for long titles on multiple lines

2011-05-25 Thread Mathieu DUPONT
, the TOC is 4.2ex, but when a long title is on multiple lines it should stick together (2.8ex). You want something like this? \starttext \setbox0\vbox{\input ward\par} \doloop {\setupinterlinespace[line=2.8ex] \ifdim\ht0\lineheight \setupinterlinespace[line=4.2ex] \box0 \exitloop \else

Re: [NTG-context] Recursive printing letters using Letters module...

2010-08-28 Thread Jaroslav Hajtmar
% Or loop cycle \opencsvfile{file2.csv} \doloop{\ifnotEOF\getbuffer[myletter]\nextrow\else\exitloop\fi} %OK \stoptext Dne 29.8.2010 2:34, Jaroslav Hajtmar napsal(a): Hello, Can be deployed print letters due t-letter module in the cycle? When I use recursion, then an error occurs. I note that I

Re: [NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Hans Hagen
that this will have any side effects. no, it's just the last value; of course i can set it to zero recurselevel is also known inside \doloop so there it makes sense to have it afterrwards (or when using \exitloop in any case) Hans

Re: [NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Aditya Mahajan
\fastrecursecounter rather than 0. I don't think that this will have any side effects. no, it's just the last value; of course i can set it to zero recurselevel is also known inside \doloop so there it makes sense to have it afterrwards (or when using \exitloop in any case) Both \dorecurse and \doloop

Re: [NTG-context] beta

2009-03-31 Thread Taco Hoekwater
\dosetfilterlevel\normaldosetfilterlevel \global\let\glocalpublist\empty \doloop {\doifdefinedelse {\r!cross cite-\jobname-\recurselevel} {\doifreferencefoundelse {cite-\jobname-\recurselevel} {...@ea\doifreglevelelse\@EA[\currentlocationreference

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Hans Hagen
\else \repeat I think the loop structure should be: \loop ... \if... ... \repeat just use: \doloop { \ifwhateveryoulike \exitloop \fi } - Hans Hagen | PRAGMA ADE

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart C. Wise
...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta #1\else \repeat I think the loop structure should be: \loop ... \if... ... \repeat just use: \doloop { \ifwhateveryoulike \exitloop \fi Hans, Thanks, that works. But shouldn't the other one work

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Hans Hagen
. \@@plniterate ...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta #1\else \repeat I think the loop structure should be: \loop ... \if... ... \repeat just use: \doloop { \ifwhateveryoulike \exitloop \fi Hans, Thanks, that works. But shouldn't the other one work as well

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Aditya Mahajan
doloop. Documentations from syst-ext.tex %D \macros %D {doloop,exitloop} %D %D Sometimes loops are not determined by counters, but by %D (a combinations of) conditions. We therefore implement a %D straightforward loop, which can only be left when we %D explictly exit it. Nesting is supported

Re: [NTG-context] ConTeXt + BibTeX problem

2008-12-02 Thread Taco Hoekwater
, no. The backreferences are in saved in the tuo file, but I never got around to writing the integration code for it. In case someone is interested in writing that, it needs a loop like this one: \unprotect \def\getpagelist#1% {\let\pagelist \empty \def\currentbibitem{#1}% \doloop

Re: [NTG-context] Howto fit text into a box

2008-06-11 Thread Wolfgang Schuster
{\setbox\cover\vbox {\hsize\coverwidth \definedfont[Serif at \the\coverfont]\setupinterlinespace \setupalign[nothyphenated] \emergencystretch\maxdimen \getbuffer[cover]}} \def\covertext {\boxsize\doloop {\boxsize \ifdim\ht\cover\coverheight \global

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \doifXMLop # \doifXMLparelse # \doloop # \donothing # \dontleavehmode \donttest # \dorecurse # \dostepwiserecurse # \dowithnextbox # \dowithnextboxcontent # \empty \emptylines[number] # \emptytoks # \enablemode # \endstrut \enumeration # \environment # \EQ # \eTABLE # \eTABLEbody # \eTABLEfoot

Re: [NTG-context] split rotated TABLE

2007-06-02 Thread Wolfgang Schuster
\tsplitinbetweenheight{\the\htdp\scratchbox}% etex \!!doneafalse \doloop {\ifinsidecolumns % brrr, assumes empty columns \global\setfalse\tsplitfirstdone \splitrotation \!!donectrue \else \ifconditional\tsplitfirstdone \splitrotation

Re: [NTG-context] Grid-keeping table

2007-03-29 Thread luigi scarso
\newdimen\CellHeightOne \CellHeightOne=\lineheight %% synch with grid \newdimen\TestDim \long\def\CellContent#1{% \setbox100=\vbox{\hsize=\CellWidth% #1} \dp100=0pt% \TestDim=\CellHeightOne \doloop{%30 \ifdim\ht100\TestDim% \setbox100=\vbox to \TestDim{\hsize=\CellWidth \recurselevel #1}\exitloop\fi

Re: [NTG-context] \combinepages[]: Change order

2006-10-10 Thread Wolfgang Schuster
horizontal\docombinepagesvertical#1 % watch the #1 ;-) \@@ipafter \egroup} % we work from left to right and from top to bottom \def\docombinepageshorizontal#1 {\if!!donea \doloop {\vbox to \textheight {\hsize\textwidth % ? ? \scratchdimen\@@ipdistance \!!widtha \dimexpr(\hsize-\@@ipnx\scratchdimen+\sc

Re: [NTG-context] \combinepages[]: Change order

2006-10-09 Thread Wolfgang Schuster
doneafalse\!!doneatrue \if!!donea \doifelse\@@ipdirection\v!horizontal % added % loop for left to right and top to bottom combination {\doloop {\vbox to \textheight {\hsize\textwidth % ? ? \scratchdimen\@@ipdistance \!!widtha \dimexpr(\hsize-\@@ipnx\scratchdimen+\scratchdimen)/\@@ipnx\relax \!!heigh

Re: [NTG-context] how to figure out the number of elements inside \defineconversion?

2006-08-10 Thread Hans Hagen
$,$\ast$] \defineconversion[def][m,o,j,c,a] \doloop {\doifelseconversionnumber{abc}{\recurselevel} {[abc \recurselevel\space defined]} {\exitloop}} \doloop {\doifelseconversionnumber{def}{\recurselevel} {[def \recurselevel\space defined]} {\exitloop

Re: [NTG-context] how to figure out the number of elements inside \defineconversion?

2006-08-10 Thread Mojca Miklavec
can still hardcode 25 and wait until someone complains that that is not enough to satisfy his/her needs.) \unprotect \def\doifelseconversionnumber#1#2% {\doifdefinedelse{\??cv#1#2}} \protect \defineconversion[abc][$\star$,$\bullet$,$\ast$] \defineconversion[def][m,o,j,c,a] \doloop

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-25 Thread Mojca Miklavec
might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop {\doifMPgraphicelse{gpg:#1:\recurselevel} {\reuseMPgraphic{gpg:name:\recurselevel

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-25 Thread Hans Hagen
}} and \usemygraphic[name][n={1,3},width=8cm] (syntax might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop {\doifMPgraphicelse{gpg:#1:\recurselevel

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-24 Thread Hans Hagen
}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic[name][n={1,3},width=8cm] (syntax might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop

[NTG-context] More on split TABLES: Numbering Scheme and other things

2006-05-05 Thread Johannes Graumann
{\forgetall \dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim\nextboxht=\zeropoint \let

[NTG-context] Page overflow just before Split TABLE

2006-05-02 Thread Johannes Graumann
becomes \goodbreak \dowithnextbox {\forgetall \dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim

[NTG-context] TABLE: 'distance' override?

2006-04-20 Thread Johannes Graumann
]% \resetnumber[\??si]% \def\floatcaptionsuffix{\convertednumber[\??si]}% \TABLEcaptionheight\@@silines\lineheight % brrr \simplifypagebreak % \page becomes \goodbreak \dowithnextbox {\forgetall \dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight

[NTG-context] Multi-page table and lengthy caption

2006-04-19 Thread Johannes Graumann
\dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim\nextboxht=\zeropoint \let\floatcaptionsuffix\empty

Re: [NTG-context] XML and Multipage table

2006-04-18 Thread Johannes Graumann
\dowithnextbox {\forgetall \dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim\nextboxht

Re: [NTG-context] XML and Multipage table

2006-04-13 Thread Hans Hagen
\dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim\nextboxht=\zeropoint \let\floatcaptionsuffix\empty

Re: [NTG-context] page float in columnset

2006-02-02 Thread Vit Zyka
Hans Hagen wrote: Vit Zyka wrote: Hans Hagen wrote: Vit Zyka wrote: ah ... your persistent ... yes, slow but persistent (hopefully not annoying...) you can try this: \OTRSEToutput {\dontcomplain % new, get rid of overfull message (to be sorted out) \doloop

Re: [NTG-context] page float in columnset

2006-02-01 Thread Hans Hagen
Vit Zyka wrote: Hans Hagen wrote: Vit Zyka wrote: ah ... your persistent ... you can try this: \OTRSEToutput {\dontcomplain % new, get rid of overfull message (to be sorted out) \doloop {\OTRSETnaturalflush %\OTRSETstartnextpage % no \OTRSETdoflushfloats

Re: [NTG-context] serial definition

2006-01-02 Thread Peter Rolf
from 1 to 9, step 1 \setvalue{PREFIX\recurselevel}{\recurselevel} } % or all by hand (not useful for simple loops) \newcounter\Row % Row=0 \increment\Row % Row+=1 \doloop{% \setvariables[PREFIX\Row][foo=foo\Row] \increment\Row \ifnum\Row9 \exitloop\fi } % reset to one by hand \newcounter

Re: [NTG-context] Is it possible to automatically determine font size to fit text to a given space?

2005-12-02 Thread Hans Hagen
depends a bit it); think of something \doloop{ \setbox\scratchbox=\vbox {the content of the label} \ifx\ht\scratchbox10cm \switchtobodyfont[small] \else \unvbox\scratchbox \exitloop \fi } Hans ___ ntg-context mailing list

Re: [NTG-context] Is it possible to automatically determine font size to fit text to a given space?

2005-12-02 Thread Wolfgang Zillig
as fast as normal how does your current code look? (the solution depends a bit it); think of something \doloop{ \setbox\scratchbox=\vbox {the content of the label} \ifx\ht\scratchbox10cm \switchtobodyfont[small] \else \unvbox\scratchbox \exitloop \fi } Hans

Re: [NTG-context] Is it possible to automatically determine font size to fit text to a given space?

2005-12-02 Thread Hans Hagen
of manual trial and error. this is something tex is pretty good at and it runs as fast as normal how does your current code look? (the solution depends a bit it); think of something \doloop{ \setbox\scratchbox=\vbox {the content of the label} \ifx\ht\scratchbox10cm

[NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
!! \def\AutoSize#1#2#3{% % #1=string #2=horiz.limit #3=initial font size \newdimen\Limit \Limit=#2 \newdimen\FontSize \FontSize=#3 \doloop{% \setbox800=\hbox{#1}% \ifdim\wd800 \Limit\exitloop \else % WARNING: eat memory , 1bp is bad step, % force ss it's wrong \advance\FontSize by -1bp

Re: [NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
% AutoSize seem better, but % I must setup ss and tfb inside body % (I need these) so it's no a general macros % Same problems of previous version. % \def\AutoSize#1#2#3{% #1=string #2=horiz.limit #3=startfont \newdimen\Limit \Limit=#2 % \newdimen\FontSize \FontSize=#3 % \doloop{% \setbox800=\hbox

Re: [NTG-context] Columnsets problems

2005-03-23 Thread Hans Hagen
\synchronizeoutput % fails on example % \allowbreak % hm \fi \synchronizenotes \fi} \def\OTRSETdoflushfloats {\bgroup \def\OTRSETsavebox##1{\!!doneafalse}% \doloop {\ifsomefloatwaiting \OTRSETskipstart \dogetfloat \ifdim\wd\floatbox\zeropoint

[NTG-context] Extra inserpages options and Out of hash space

2004-12-27 Thread Giuseppe Bilotta
from \@@ipstart\space to \@@ipstop}% \let\currentip\@@ipstart% \decrement\currentip \doloop {\increment\currentip\relax % \write16{Inserting page \currentip}% \dofilterpage{#1}\currentip \doifinset\currentip{#2}{\null\page}% \ifnum\currentip=\@@ipstop\exitloop \fi

[NTG-context] reference problem

2004-06-19 Thread dr. Hans van der Meer
}[fig:exceptionhierarchy] shows the hierarchy for ... The following error trace occurs (TeXShop): floatblocks: 1 placed ! Undefined control sequence. \doloop ...ndcsname \recurselevel \let \endofloop \dodoloop \dodoloop 1 \removeunwantedspaces ...kip \else \exitloop \fi } \fi argument> ...\ignorespa

[NTG-context] Update problems: TOC

2004-03-08 Thread Mari Voipio
\fi \doloop ...@@arecurse \recursedepth \endcsname {#1 }\global [EMAIL PROTECTED] \let \csname... \removeunwantedspaces ...kip \else \exitloop \fi } \fi \endstrut ...trut \fi \else