Re: [NTG-context] serial definition

2006-01-03 Thread Hans Hagen
Taco Hoekwater wrote: Peter Rolf wrote: Why do I get K0/V0 for \Get{3}? - it works with \recurselevel! You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands

Re: [NTG-context] serial definition

2006-01-02 Thread Peter Rolf
Is there a more programmatical way for such? (Does TeX know something like arrays or dicts?) Sorry, I still can't program in 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

Re: [NTG-context] 'Glossary' on every page

2005-12-29 Thread Hans Hagen
\defineconversion [ownnote] [\ownnotesymbol] \setupnote [glossary] [conversion=ownnote, textcommand=, textstyle=, numbercommand=] \showframe \starttext \dorecurse{10} {\dorecurse{5} {I'm \ownnote[glossary]{whowing}{whow}{whatever needs to be glossed:~\recurselevel} a bit

Re: [NTG-context] About 'repeat' option of \startitemize

2005-12-21 Thread Hans Hagen
\dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}% \ifnum\itemlevel\plusone \ifdim\wd\scratchbox\zeropoint \hskip-\dimen2 \box\scratchbox \fi \fi \box8 }% \fi} \showframe \starttext \startbuffer \item \startitemize[n

[NTG-context] usage of module pstricks?

2005-12-21 Thread Wolfgang Zillig
Hello, can anybody give me a minimal example how to use the module m-pstric.tex? I tried following minimal example: \usemodule[pstric] \starttext \startPSTRICKS \pspicture(0,0)(10,10) \dorecurse{10}{\psline(0,0)(\recurselevel,10)} \dorecurse{10}{\psline(0,0)(10,\recurselevel

Re: [NTG-context] rotate problem

2005-12-21 Thread Hans Hagen
} % {\startlinecorrection[blank] %\hbox % {\expanded{\setuprotate[rotation=\recurselevel]}% % \traceboxplacementtrue % \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] {\ruledhbox{\bfb (depth)% % \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit

Re: [NTG-context] shading box many times

2005-11-28 Thread Vit Zyka
= y12 = \overlayheight; P:= log(z11,z12); linear_shade(P,8,(1,1,1),(0,0,0)); draw P; \stopuseMPgraphic \defineoverlay[F][\uniqueMPgraphic{F}] \defineframed[F][offset=2mm,strut=yes,background=F,frame=off] \starttext \noindent\dorecurse{1000}{\F{\recurselevel} } \stoptext

[NTG-context] Setting up items...

2005-11-21 Thread Otared KAVIAN
This is question number \recurselevel.} \stopitemize \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Setting up items...

2005-11-21 Thread Thomas A. Schmitz
) item one (2) item two that is numbers are enclosed between parentheses? Thanks a lot in advance: OK %% item-sample.tex \defineconversion[exercise][\numbers] \starttext \startitemize[exercise][style=bold,stopper=)] \dorecurse{12}{\item This is question number \recurselevel.} \stopitemize

Re: [NTG-context] Setting up items...

2005-11-21 Thread Otared KAVIAN
in advance: OK %% item-sample.tex \defineconversion[exercise][\numbers] \starttext \startitemize[exercise][style=bold,stopper=)] \dorecurse{12}{\item This is question number \recurselevel.} \stopitemize \stoptext ___ ntg-context mailing list

Re: [NTG-context] Setting up items...

2005-11-21 Thread Otared KAVIAN
Hi Thomas, Many many thanks! Danke schön! Yes that was the point: inmargin... Finally the simplest way of achieving my desired result seems to be: \showframe \starttext \setupitemize[stopper=),margin=2.5em] \startitemize[n,inmargin] \dorecurse{12}{\item This is question number \recurselevel

Re: [NTG-context] Problems with Natural Tables

2005-11-06 Thread Vit Zyka
\scratchbox\hbox {\localframed [\@@tbl\@@tbl] [\c!frame=\v!off,\c!background=,\c!align=\v!no] {\strut}}% \edef\minimalcellheight{\the\ht\scratchbox}% \dorecurse\maximumcol {\settblaut\recurselevel\!!zeropoint % \zeropoint etc % new \let\xcol

Re: [NTG-context] Par break/justification problem

2005-11-01 Thread Taco Hoekwater
{\recurselevel}{ filled} first part \secondpart This is the second part. \stoptwopart } \stoptext Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] utf-based lang-* files?

2005-09-22 Thread Hans Hagen
\dostepwiserecurse{128}{255}{1}{\catcode\recurselevel=11\relax} Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74

Re: [NTG-context] rotated accented character

2005-08-18 Thread Hans Hagen
) - buildtextaccent doesn't like the box produced by rotation there are many ways to rotate ... % \dostepwiserecurse{0}{360}{10} % {\startlinecorrection[blank] %\hbox % {\expanded{\setuprotate[rotation=\recurselevel]}% % \traceboxplacementtrue % \hbox to .2\hsize{\hss\ruledhbox{\rotate

Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen
} {\expanded{\defineactivetoken\recurselevel\space}{\dstroke}} \stopregime \enableregime[mojka] ¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈÉ ÊË ÌÍÎÏÐ ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞßàáâ ãäåæçè éêëì íîï ðñòóôõ ö÷øùúûüýþÿ ¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈ ÉÊË ÌÍÎÏÐ ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞ ßàáâ ãäåæçè éêë

Re: [NTG-context] Verbatim with linebreaks sillyness

2005-08-06 Thread Eugene Toporov
. How's this?Cheers, Taco%% BREAK is a special pretty handler that auto-wraps lines% to fit the current hsize.\gdef\BREAKsetspecials% {\dorecurse{256}{\setpretty\numexpr \recurselevel-1\relax=10 }} \gdef\BREAKsethandlers% {\installprettyhandler 10 \BREAKtypeone}\newcount\BREAKcharcounter\newcount

[NTG-context] XY arranging ignores dx/dy

2005-08-03 Thread Angus Lees
=30mm,height=20mm] \setuppapersize[label][A4] \setuppaper[dx=1mm,dy=1mm,nx=2,ny=6] \setuparranging[XY] \showframe[edge] \starttext \dorecurse{6}{test \recurselevel \page} \stoptext -- - Gus ___ ntg-context mailing list ntg-context@ntg.nl http

[NTG-context] Verbatim with linebreaks sillyness

2005-07-29 Thread Taco Hoekwater
}{\setpretty\numexpr \recurselevel-1\relax=10 }} \gdef\BREAKsethandlers% {\installprettyhandler 10 \BREAKtypeone } \newcount\BREAKcharcounter \newcount\BREAKmaxcharcount \def\BREAKtypeone#1% {\advance\BREAKcharcounter 1 \ifnum\BREAKcharcounter \BREAKmaxcharcount \hfil\break

Re: [NTG-context] How to \processcommalist?

2005-07-04 Thread Hans Hagen
\fromrange\torange1{#2{\recurselevel}}} but we can indeed make a nicer looking one Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel

Re: [NTG-context] Fonts in Metapost

2005-07-02 Thread Willi Egger
\stopuniqueMPgraphic \starttext \dorecurse{3}{% \startTEXpage \useMPgraphic{\recurselevel} \stopTEXpage} \stoptext Willi Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts

Re: [NTG-context] How to \processcommalist?

2005-07-01 Thread Taco Hoekwater
\uncompressedlist9-1+\recurselevel} % % (the 1+ and -1 are needed to solve a counter offset.) \def\itemwithdash#1-#2-% [EMAIL PROTECTED]@EA {\the\numexpr 1+#2-#1\relax}% [EMAIL PROTECTED]@[EMAIL PROTECTED] {\the\numexpr #1-1+\recurselevel\relax}}}% % top level. The result

[NTG-context] Table in columns or framed columns

2005-05-01 Thread Guillaume Chazarain
: pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2005.4.30 mes: english Here is a sample: \starttext \startcolumns[n=2] \starttable[|l|l|] \HL \NC \bf a \NC \bf b \NC\SR \HL \NC a \NC b \NC\FR \dorecurse{100}{\NC \recurselevel \NC b \NC\MR} \NC a \NC b

[NTG-context] Re: How to insert a full page pdf

2005-04-21 Thread olivier Turlier
: \getfiguredimensions[25pages.pdf] \dorecurse{\noffigurepages}{\externalfigure[25pages.pdf][width=\textwidth,height=\textheight,offset=-1cm][page=\recurselevel]} inserting one (the 16th) page of a 25 pages pdf : \getfiguredimensions[25pages.pdf] {\externalfigure[25pages.pdf

Re: [NTG-context] widow and orphan control

2005-03-30 Thread Vit Zyka
\starttext \dorecurse{9}{Line \recurselevel\hfill\break}% \par \penalty50 \vskip 3\baselineskip \nobreak\vskip-3\baselineskip Hallo \stoptext - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] Columnsets problems

2005-03-23 Thread Hans Hagen
to \textheight{\topskipcorrection \hsize\makeupwidth left \hfill right\vfill}] \setuphead[chapter][text=empty] \starttext \startcolumnset[first,next] \placefigure[btrl]{}{} \placefigure[tblr]{}{} \chapter{thuan} \dorecurse{25}{\recurselevel: \input thuan \endgraf} \stopcolumnset \startcolumnset

Re: [NTG-context] Imposition of A7,landscape on A4

2005-03-20 Thread Willi Egger
\dostepwiserecurse{1}{20}{1}{% \startalignment[middle] \vfil This is \par \blank[big] {\bfd \recurselevel} \stopalignment \vfil \page} \stoptext

Re: [NTG-context] Imposition of A7,landscape on A4

2005-03-20 Thread Wolfgang Zillig
] \setuppagenumbering[location={footer,marginedge},state=start] \setupcolors[state=start] \showframe[edge] \starttext \dostepwiserecurse{1}{20}{1}{% \startalignment[middle] \vfil This is \par \blank[big] {\bfd \recurselevel

Re: [NTG-context] imposition for a pdf file

2005-03-17 Thread Albrecht Kauffmann
,backgroundcolo r=green]{p.\tfd\recurselevel}\hss} \vss} \stopTEXpage} \stoptext %% %% save as my-imp.tex %% %% \setuplayout here \starttext \centerline{% \externalfigure[test][page=1] \externalfigure[test][page=3] \externalfigure[test][page=5] \externalfigure[test][page=7] \externalfigure

Re: [NTG-context] imposition for a pdf file

2005-03-17 Thread luigi.scarso
and sort; as soon as possible i will post some code. shorter \centerline {\dostepwiserecurse{1}{11}{2} {\expanded{\externalfigure[test][page=\recurselevel]}}} Yes, syst-ext. and others syst-. I try to made a pdf-collection of useful module like syst-*, page-* core-box, supp-box, some module

Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Hans Hagen
%% \setupcolors[state=start] \starttext \dorecurse{660}% {\startTEXpage[width=3cm,height=2cm] \vbox to \vsize{\vss \hbox to \hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss} \vss} \stopTEXpage} \stoptext %% %% save as my-imp.tex

Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Wolfgang Zillig
\hbox to \hsize{\hss\framed[width=2cm,align={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss} \vss} \stopTEXpage} \stoptext %% %% save as my-imp.tex %% %% \setuplayout here \starttext \centerline{% \externalfigure[test][page=1] \externalfigure[test][page=3

Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread Ciro A. Soto
={middle,lohi},background=color,backgroundcolor=green]{p.\tfd\recurselevel}\hss} \vss} \stopTEXpage} \stoptext %% %% save as my-imp.tex %% %% \setuplayout here \starttext \centerline{% \externalfigure[test][page=1] \externalfigure[test][page=3] \externalfigure[test][page

Re: [NTG-context] A (my) OTR problem

2005-03-13 Thread h h extern
}% {\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil \CONTEXT --\recurselevel \hfil}}% \stoptext I would like to put \copy\ContinueNextPage after the last \framed in every page (in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2). I don't want use tables/tabular

Re: [NTG-context] A (my) OTR problem

2005-03-13 Thread luigi.scarso
}} \starttext \dorecurse{20}% {\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil \CONTEXT --\recurselevel \hfil}}% \stoptext I would like to put \copy\ContinueNextPage after the last \framed in every page (in this example, after

[NTG-context] A (my) OTR problem

2005-03-11 Thread luigi.scarso
--\recurselevel \hfil}}% \stoptext I would like to put \copy\ContinueNextPage after the last \framed in every page (in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2). I don't want use tables/tabular, i try to use \vsplit. I try to read page-ini, i find useful things like

Re: [NTG-context] TeX control sequence inside XML param

2005-01-27 Thread Vit Zyka
[ctx-var-textwidth] {\textwidth} \newcount\FigNo \defineXMLenvironment[float][] {\defineXMLpush[caption]% \global\FigNo=0 } {\placefigure{\XMLflush{caption}}% {\dorecurse{\FigNo}% {\edef\filewithpath{\XMLpop{dir-fig}\getvalue{file:\recurselevel}}% \edef\param{\getvalue

Re: [NTG-context] Russia (cyrillic letters)

2005-01-24 Thread h h extern
\dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf \russian \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf \stoptext In order to get it working i suggest those using russian to do the following: - determine what encodings are *really* in use - collect the tfm/vf/pfb files that are needed

[NTG-context] Setting up a sombined list ...

2005-01-20 Thread Willi Egger
\completeMycontent[criterium=all] \expanded{\writetolist[Mypart]{Test Part 1}{}} \dorecurse{3}{% \chapter[Ch-Test]{Test} \expanded{\writetolist[Mychapter]{Test \recurselevel}{\hfill Version:~ \Version}} \input ward } \section{Problems seen:} \startitemize[2,packed

Re: [NTG-context] recursion/loop with counter?

2005-01-07 Thread Hans Hagen
Henning Hraban Ramm wrote: Am 06.01.2005 um 15:41 schrieb Hans Hagen: \dorecurse{20} {\bTR \expanded{\bTD \recurselevel bottles of beer \eTD} \bTD \strut \eTD \eTR} But what if I need it in a call to some function like: \dorecurse{10}{\SkillField{Skill\expanded\recurselevel}} \dorecurse{10

Re: [NTG-context] recursion/loop with counter?

2005-01-06 Thread Vit Zyka
Henning Hraban Ramm wrote: In a form I need a lot of empty, but numbered fields. Can I access the counter of \dorecurse somehow, or is there another \recurselevel Vit Zyka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman

Re: [NTG-context] recursion/loop with counter?

2005-01-06 Thread Hans Hagen
Henning Hraban Ramm wrote: \dorecurse{20}{\bTR \bTD \LoopCounter bottles of beer \eTD \bTD{\strut} \eTD \eTR} \dorecurse{20} {\bTR \expanded{\bTD \recurselevel bottles of beer \eTD} \bTD \strut \eTD \eTR} Hans

Re: [NTG-context] Help with LaTeX - ConTeXt book typesetting

2004-09-10 Thread Hans Hagen Outside
] \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,12pt] \noheaderandfooterlines \startbuffer \dostepwiserecurse{200}{150}{-5} {\expanded{\setuplayout[width=\recurselevel pt]} \subject{palatino: no hz, ragged right} \setupalign[right,hanging,nohz] \input tufte \endgraf \subject

[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

Re: [NTG-context] Re: page setup

2004-02-03 Thread Vit Zyka
{3}{\section{Section \recurselevel}Page \recurselevel\page} \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] typearea

2004-01-14 Thread Peter Mnster
in scrguien.pdf (KOMA-Script documentation) \startenvironment e-test \def\BCOR{3mm}% eventual binding correction \setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} \newdimen\PageWidth \PageWidth=\paperwidth \doifmode{BCOR}{\PageWidth=\dimexpr(\PageWidth-\BCOR)} \unprotect \begingroup \catcode`P

Re: [NTG-context] address labels

2004-01-11 Thread Willi Egger
] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo} \placelayer[Etiket]} \stoptext

Re: [NTG-context] address labels

2004-01-11 Thread R. Ermers
\dorecurse{\Addresses}{% \setlayer [Etiket] [preset=leftbottom,location={right,top},y=-3mm,x=-3mm] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo

Re: [NTG-context] typearea

2004-01-11 Thread Peter Mnster
\setbox\scratchbox\hbox{\dorecurse{26}{\character\recurselevel}} \newdimen\PageWidth \PageWidth=\paperwidth \doifmode{BCOR}{\PageWidth=\dimexpr(\PageWidth-\BCOR)} %% Here is the problem: dividing one length by another. %% % the following is not working for 2 reasons: % * there is still the pt

Re: [NTG-context] page arrangement

2004-01-08 Thread Vit Zyka
ConTeXt or in the macro? ConTeXt ver: 2003.9.25 fmt: 2003.10.21 int: english mes: english fyi: in context: \starttext \dorecurse{8}{Page \recurselevel\page} \stoptext Hmm, a bit less typing. And one more question related arranging. I suppose, that arranging has no effect to the page

Re: [NTG-context] page arrangement

2004-01-04 Thread Hans Hagen
\cbox{Page \the\N} \vfill\eject \ifnum\N8\repeat \stoptext fyi: in context: \starttext \dorecurse {8} {\startstandardmakeup \cbox{Page \recurselevel} \stopstandardmakeup} \stoptext actually 4SIDE is not the right name (compared to 2SIDE), maybe 4SEQUENCE is better \def

Re: [NTG-context] columns and alignment at the bottom

2003-10-15 Thread Ed L Cashin
. got you: \starttext \startcolumnset \dorecurse{100} {\framed [width=\hsize,height=fit,align=normal] {\getrandomnumber\whatever{1}{9}% \dorecurse\whatever{\strut test \recurselevel\endgraf}} \vfilll} \stopcolumnset \stoptext Oh, I can't wait to see what

Re: [NTG-context] Re: columns and alignment at the bottom

2003-10-15 Thread Willi Egger
\whatever{\strut test \recurselevel\endgraf}} \vfilll} \stopcolumnset \stoptext Oh, I can't wait to see what that example does! Does it show that I am not recalling correctly? I hope so. The example, though, doesn't result in a pdf file for me when I put it into a file

Re: [NTG-context] columns and alignment at the bottom

2003-10-12 Thread Willi Egger
... \stopframedtext \page \stopbuffer \startbuffer[Addresse2] \startframedtext ... \stopframedtext \page \stopbuffer \starttext \dorecurse{6}{\getbuffer[Addresse\recurselevel]}%between first braces number of addresses you have in buffers \stoptext You will have to play

[NTG-context] Re: inserting other pdf's

2003-10-01 Thread Patrick Gundlach
[appleblossom][page=4]\stoppagefigure ... or is there also a nice keyword for insert all pages? What is wrong with \copypages? Patrick -- evil code: \dorecurse{4}{\startpagefigure[..][page=\recurselevel]\stopp...} ___ ntg-context mailing list [EMAIL

[NTG-context] Re: inserting other pdf's

2003-10-01 Thread Patrick Gundlach
Patrick Gundlach [EMAIL PROTECTED] writes: -- evil code: \dorecurse{4}{\startpagefigure[..][page=\recurselevel]\stopp...} Perhaps not that evil, it seems to work :) \starttext \getfiguredimensions[ward] \dorecurse{\noffigurepages}{\startpagefigure[ward][page=\recurselevel] \stoppagefigure

[NTG-context] Re: Vertical alignment of formulas

2003-09-23 Thread Emil Hedevang Lohse
} \startformula test \stopformula test \endgraf test \dorecurse{30}{\bpar \dorecurse\recurselevel{test } \epar \startformula formula \stopformula} Thank you for the patch \moveformula now works fine. I have not tested the \bpar-\epar thing since it looks like there is a small bug: when I typeset

Re: [NTG-context] Vertical alignment of formulas

2003-09-18 Thread Hans Hagen
test \dorecurse{30}{\bpar \dorecurse\recurselevel{test } \epar \startformula formula \stopformula} no guarantees -) Hans new.zip Description: Zip archive - Hans Hagen | PRAGMA ADE | [EMAIL

Re: [NTG-context] \setuparranging 3SIDE

2003-07-22 Thread Willi Egger
] % \setuplayout[page] [topspace=5mm,backspace=5mm] % \setuplayout[page] % \setuplayout[location=middle] % \setuparranging [XY] % \showframe % % \starttext \dorecurse{30}{test \recurselevel \page} \stoptext so, you can have any arrangement Hans

<    4   5   6   7   8   9