[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Wolfgang Schuster
the\textwidth}% \get@split@box{\the\textwidth}}\allowbreak% \else% \raise\warichuparameter{voffset}% \vbox{\offinterlineskip% \get@split@box{\dimexpr\wd\scratchbox/2+1pt\relax}% \get@split@box{\dimexpr\wd\scratchbox+1pt\relax}

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
ise\warichuparameter{voffset}% \vbox{\offinterlineskip% \get@split@box{\dimexpr\wd\scratchbox/2+1pt\relax}% \get@split@box{\dimexpr\wd\scratchbox+1pt\relax}}\allowbreak% \exitloop% \fi}% \warichuparameter{right}% \warichuparameter{distance}\endgroup} \protect

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
artoutputstream[two] \startcolor[green] \dorecurse{5}{\chapter{Stream Two} \dorecurse{10}{\input zapf\par} } \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \se

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
rse{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{\box\s

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
urse{5}{\chapter{Stream Two} \dorecurse{10}{\input zapf\par} } \stopcolor \stopoutputstream \synchronizestreams[one,two] \setbox\scratchboxone\outputstreambox[one] \setbox\scratchboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxf

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
chboxtwo\outputstreambox[two] \doloop {\ifvoid\scratchboxone \exitloop \else \setbox\scratchboxfour\vsplit\scratchboxone to \textheight \vbox to \vsize{\box\scratchboxfour\vss}% \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight \vbox to \vsize{\box\scratchboxfive\vs

[NTG-context] streams reversed?

2023-09-12 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
rtcolor[blue] \input vn\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 \

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
after=] \getbuffer[address] \stoplines} \egroup \ifdim\wd\scratchbox>3cm \advance\glyphscale by -50 \else \box\scratchbox \exitloop \fi } \endgroup to get more consistent stepwise scaling or even this: \begingroup \doloop { \setbox\scratchbox\hbo

[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
x \else \unhbox\scratchboxone \exitloop \fi }% \endgroup} This variant is more neat as it returns the to b eused width. It doesn't flush the content. \protected\def\guessbestwidth#1#2#3% no \protected when no \dimexpr {\beginlocalcontrol \begingroup \hsize#

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

2021-05-31 Thread Hans Hagen
state     \exitloop   \else     \page   \fi}} \protect cont-new will be overwritten so when you put a patch in there you need to check a next upload if that patch is permanent you can also put patched in a cont-loc file (make sure that you run mtxrun --generate after making one

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

2021-05-31 Thread Werner Hennrich
sname\??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

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

2021-04-24 Thread Werner Hennrich
state        \exitloop \else    \page \fi}} \protect Please test a lot! I also needs Wolfgangs opinion on this. Maybe preceding whitespace can interfere so maybe we need some 'slack' parameter. Hans

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

2021-04-23 Thread Hans Hagen
builder ...) You 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

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

2020-09-21 Thread Jeong Dal
\recurselevel=7 \exitloop \fi \NC \recurselevel \NC \NC\NR \HL } \stoptabulate \stopbuffer \starttext \getbuffer[AdjacencyList1] \getbuffer[AdjacencyList2] \stoptext > 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성: > > Send ntg-context mailing list submissions to >

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

2020-09-21 Thread Otared Kavian
> Dalyoung > > * > \startbuffer[AdjacencyList1] > \starttabulate[|c|cw(2cm)|] > \HL > \dorecurse{8} >{\NC \recurselevel \NC \NC\NR \HL} > \stoptabulate > \stopbuffer > > \startbuffer[AdjacencyList2] > \starttabulate[|c|cw(2cm)|] > \HL > \do

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

2020-09-21 Thread Jairo A. del Rio
; \dorecurse{8} > {\NC \recurselevel \NC \NC\NR \HL} > \stoptabulate > \stopbuffer > > \startbuffer[AdjacencyList2] > \starttabulate[|c|cw(2cm)|] > \HL > \doloop{ > \ifnum \recurselevel=7 > \exitloop > \fi > \NC \recurselevel \NC \NC\NR \HL > } > \stoptabulate > \stop

Re: [NTG-context] lmtx update

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

Re: [NTG-context] lmtx update

2020-08-01 Thread Hans Hagen
Overflow 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
topoutputstream \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\scratchboxfo

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\scratchbox

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

2015-02-17 Thread Pablo Rodriguez
therLayer]{Other pages} >> \setupbackgrounds[page][background={FirstLayer,OtherLayer}] >> %~ \mbox{}\blank[75mm] >> \dorecurse{17}{\input zapf\par} >> \cA\hfill >> \cB >> \page >> \stopbuffer >> >> \opencsvfile{mail.csv} >> \doloop{\ifn

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

2015-02-17 Thread Wolfgang Schuster
e][background={FirstLayer,OtherLayer}] > %~ \mbox{}\blank[75mm] > \dorecurse{17}{\input zapf\par} > \cA\hfill > \cB > \page > \stopbuffer > > \opencsvfile{mail.csv} > \doloop{\ifnotEOF\getbuffer[text-content]\nextrow\else\exitloop\fi} %OK > \stoptext > > Conten

[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/contex

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Troy Henderson
s radius 1) \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 cir

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.000001)}{\exitloop}{\edef\q{\luaexpr{\q+1 Yes, you need to th

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

2011-05-25 Thread Mathieu DUPONT
seek, 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

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

2011-05-25 Thread Wolfgang Schuster
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 \setbox2\vsplit0 to \baselineskip

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

2010-08-28 Thread Jaroslav Hajtmar
e } \page % 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 n

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 a

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 ca

Re: [NTG-context] beta

2009-03-31 Thread Taco Hoekwater
a\doifreglevelelse\@EA[\currentlocationreference] {...@ea\doglobal\@ea\addtocommali...@ea {\currenttextreference}\glocalpublist}{}} {}}% {

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

2008-12-11 Thread Aditya Mahajan
lso 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 suppor

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

2008-12-11 Thread Hans Hagen
\else. \@@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 oth

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

2008-12-11 Thread Bart C. Wise
following error, > >> why? > >> > >> enter loop > >> > >> ! Extra \else. > >> > >> \@@plniterate ...\expandafter \@@plniterate \else > >> > >> \fi > >> > >> \myloop ...by 1 \ifnum \tempcnta >#1\else \repea

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

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

Re: [NTG-context] ConTeXt + BibTeX problem

2008-12-02 Thread Taco Hoekwater
t \fi } {}} {\exitloop}}% % \pagelist is now the list of backreferences for #1 \message{\pagelist}% } \protect Best wishes, Taco ___ If your question is of interest to others as well

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

2008-06-11 Thread Wolfgang Schuster
idth \coverwidth = 7cm \newdimen\coverfont \coverfont =12pt \newdimen\fontstep\fontstep = 1pt \def\startcover {\dostartbuffer[cover][startcover][stopcover]} \def\stopcover {\setups[cover:place]} \def\boxsize {\setbox\cover\vbox {\hsize\coverwidth \definedfont[Serif at \the\c

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
oks # \enablemode # \endstrut \enumeration # \environment # \EQ # \eTABLE # \eTABLEbody # \eTABLEfoot # \eTABLEhead # \eTABLEnext # \eTD # \eTH # \eTR # \exitloop # \expanded \externalfigure[file][settings] \field[name] \fieldstack[name][names][settings] \fillinfield[text]{text} \fillinline[settin

Re: [NTG-context] split rotated TABLE

2007-06-02 Thread Wolfgang Schuster
vbox {\unvbox\tsplitresult \tsplitinbetween \unvbox\scratchbox}% \ifvoid\tsplitcontent \exitloop \fi \else\if!!doned % we only have a tablehead so far \setbox\tsplitresult\vbox{\unvbox\tsplitresult\unvbox\scratchbox}%

Re: [NTG-context] Grid-keeping table

2007-03-29 Thread luigi scarso
e \doloop{%30 \ifdim\ht100<\TestDim% \setbox100=\vbox to \TestDim{\hsize=\CellWidth \recurselevel #1}\exitloop\fi \TestDim=\dimexpr(\CellHeightOne+\TestDim)\relax} \dp100=0pt% \ruledvbox{\box100}%ruled for test } \setupcolors[state=start] \setuplayout[grid=yes] \setupTABLE[width=\CellWidth,offset=0p

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

2006-10-10 Thread Wolfgang Schuster
=\@@ipframe]%   \fi\fi   \@@ipright}    \@@ipbottom}% \doglobal\increment\combinedpagescounter \hfil}%  \hfilneg}   \vfil}%   \vfilneg}%   \page    \ifnum\combinedpagesco

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

2006-10-09 Thread Wolfgang Schuster
\fi   \@@ipright}    \@@ipbottom}% \doglobal\increment\combinedpagescounter \hfil}%   \hfilneg}   \vfil}%   \vfilneg}%   \page    \ifnum\combinedpagescounter>\@@ipn \exitloop\fi}} % loop for

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

2006-08-10 Thread Mojca Miklavec
r#1#2% > {\doifdefinedelse{\??cv#1#2}} > > \protect > > \defineconversion[abc][$\star$,$\bullet$,$\ast$] > \defineconversion[def][m,o,j,c,a] > > \doloop > {\doifelseconversionnumber{abc}{\recurselevel} > {[abc \recurselevel\space defined]} > {\exitloop}} >

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

2006-08-10 Thread Hans Hagen
; > gp_point(3cm,1cm,3); > gp_point(4cm,1cm,4); > gp_point(5cm,1cm,8); > \stopMPcode > > \stoptext > \unprotect \def\doifelseconversionnumber#1#2% {\doifdefinedelse{\??cv#1#2}} \protect \defineconversion[abc][$\star$,$\bullet$,$\ast$] \defineconversion[def]

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

2006-07-25 Thread Hans Hagen
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). >>> >>>

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

2006-07-25 Thread Mojca Miklavec
ame:3} > > (with proper scaling if possible). > > > you want all graphics? > > \def\usemygraphic#1% > {\doloop > {\doifMPgraphicelse{gpg:#1:\recurselevel} > {\reuseMPgraphic{gpg:name:\recurselevel}} > {\exitloop}}} > > or so ... Wow! No, I don

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

2006-07-24 Thread Hans Hagen
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

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

2006-05-05 Thread Johannes Graumann
\fi \ifdim\nextboxht>\zeropoint\else \expandafter\exitloop \fi}% \egroup} \vbox \fi} \protect % beware: you need to set the splitmethod to b (boxed split) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Page overflow just before Split TABLE

2006-05-02 Thread Johannes Graumann
\fi \fi \ifdim\nextboxht>\zeropoint\else \expandafter\exitloop \fi}% \egroup} \vbox \fi} \protect % beware: you need to set the splitmethod to b (boxed split) ___ ntg-context mailing list

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

2006-04-19 Thread Johannes Graumann
uffix\empty \fi \fi \bgroup #2{\unvbox2} \egroup \ifdim\nextboxht>\zeropoint \page \decrementnumber[\floatcaptionnumber]% \fi \fi \ifdim\nextboxht>\zeropoint\else

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

2006-04-19 Thread Johannes Graumann
>\zeropoint\else \expandafter\exitloop \fi}% \egroup} \vbox \fi} \protect % beware: you need to set the splitmethod to b (boxed split) \defineXMLnested [splittable] { \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \d

Re: [NTG-context] XML and Multipage table

2006-04-18 Thread Johannes Graumann
\floatcaptionsuffix\empty > \fi \fi > \bgroup > #2{\unvbox2} > \egroup > \ifdim\nextboxht>\zeropoint >\page >\decrementnumber[\floatcaptionnumber]% > \fi >

Re: [NTG-context] XML and Multipage table

2006-04-13 Thread Hans Hagen
\page \decrementnumber[\floatcaptionnumber]% \fi \fi \ifdim\nextboxht>\zeropoint\else \expandafter\exitloop \fi}% \egroup} \vbox \fi} % beware: you need to set the splitmethod to b (boxed split)

Re: [NTG-context] page float in columnset

2006-02-02 Thread Vit Zyka
omplain % new, get rid of overfull message (to be sorted out) >\doloop > {\OTRSETnaturalflush > %\OTRSETstartnextpage % no > \OTRSETdoflushfloats % actually belongs in \flushsavedfloats (but goes > wrong) > \OTRSETcheckfreelines > \ifsomefreecolumnc

Re: [NTG-context] page float in columnset

2006-02-01 Thread Hans Hagen
TRSETdoflushfloats % actually belongs in \flushsavedfloats (but goes wrong) \OTRSETcheckfreelines \ifsomefreecolumncells \exitloop \fi}% \OTRSETchecksidefloat} tricky patch so please test extensively! (for the moment put this in your local copy of cont-loc.tex or maybe i

Re: [NTG-context] serial definition

2006-01-02 Thread Peter Rolf
n TeX... > Welcome to the club ;) You can use \newcounter for such stuff or the context recurse functions (with \recurselevel). \starttext \dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1 \setvalue{PREFIX\recurselevel}{\recurselevel} } % or all by hand (not useful for simple loops) \newcounter\R

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

2005-12-04 Thread Gerben Wierda
\unvbox\scratchbox \exitloop \fi } Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://ww

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

2005-12-02 Thread Hans Hagen
>10cm \switchtobodyfont[small] \else \unvbox\scratchbox \exitloop \fi } Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing

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

2005-12-02 Thread Wolfgang Zillig
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\scratchbox>10cm \switchtobodyfont[small] \else \unvbox\scratchbox \exitloop \fi

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\scratchbox>10cm \switchtobodyfont[small] \else \unvbox\scratchbox \exitloop \fi } Hans ___ ntg-context mail

Re: [NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
\hbox{\switchtobodyfont[ss,\the\FontSize]\tfb #1}% \ifdim\wd800 <\Limit\exitloop% \else% \ifdim\FontSize <1bp\exitloop% \else % \advance\FontSize by -0.5bp% \fi% \fi}% \box800\relax% } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg

[NTG-context] AutoScale and AutoSize

2005-04-15 Thread luigi.scarso
t, but it's %WRONG!! \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

Re: [NTG-context] Columnsets problems

2005-03-23 Thread Hans Hagen
at \ifdim\wd\floatbox>\zeropoint \!!doneatrue \dp\floatbox\zeropoint \OTRSETstoreincolumnslot{TBLR}\floatbox \if!!donea %\message{[flu]}% \else \OTRSETresavebox\floatbox \exitloop \fi \

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

2004-12-27 Thread Giuseppe Bilotta
uld insert 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\ex

[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 ...\ignorespaces

[NTG-context] Update problems: TOC

2004-03-08 Thread Mari Voipio
ectly, but once I try to compile the file(s) with a TOC, this is what I get: myContents : - Table of contents (./pr-03.tuo ! Undefined control sequence. \exitloop ->\let \endofloop \nodoloop ...>\zeropoint \u

Re: [NTG-context] Re: Strange offset

2003-11-25 Thread Hans Hagen
from below. in page-imp, patch: \hfil}% \hfilneg} \vfil}% \vfilneg}% \pagina %%% add this line \ifnum\combinedpagescounter>\@@ipn \exitloop\fi} \else \dol

Re: [NTG-context] Newbie wants to make long tables

2003-09-17 Thread Hans Hagen
owbreak \fi \egroup % so far for the repeated head after forced break \ifvoid#1 \exitloop \else \donetrue \fi}% \fi} works ok for : % \bTABLE[split=repeat] % \bTABLEhead % \bTR \bTH lxxxeft \eTH\bTD right \eTD\eTR % \eTABLEhead % \bTABLEbody % \dorec