nico wrote: > On Tue, 09 May 2006 23:38:47 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote: > > >> nico wrote: >> >>> Hello, >>> >>> Is it possible to display a list of the numbered formulas (done with >>> \placeformula)? I tried \placelist[formula] without success. >>> >>> >> you want to see the formulas too? >> > > Well, no, i just wanted a list, like a list of tables, figures, or > enumerations, with the pages where they appear. But ok, since it is not > available by default, i can put each formula in a specific Equation > enumeration an then do a \placelist[enumeration:Equation]. > well, it takes only a few lines to have lists of formulas; you can then typeset the lists the way you want
\unprotect \def\dododoformulanumber#1#2#3#4% \ifconditional\handleformulanumber \ifconditional\incrementformulanumber \incrementnumber[\v!formula]% \fi \makesectionnumber[\v!formula]% \setbox0\hbox{\ignorespaces#2\unskip}% \ifdim\wd0>\zeropoint \edef\hetsubnummer{#2}% \else \let\hetsubnummer\empty \fi \doifsomething{#1} {\rawreference{\s!for}{#1}{\composedsectionnumber\hetsubnummer}}% \setbox0\hbox{\ignorespaces#4\unskip}% \ifdim\wd0>\zeropoint \edef\hetsubnummer{#4}% \fi \doifsomething{#3} {\rawreference\s!for{#3}{\composedsectionnumber\hetsubnummer}}% \rm % nodig ? \doif{\formulaparameter\c!location} \v!right{\hskip\formuladistance}% \@@fmnumbercommand {\dostartattributes\??fm\c!numberstyle\c!numbercolor \strut \@@fmleft \preparethenumber\??fm\composedsectionnumber\preparednumber \doflushformulalistentry{\composedsectionnumber\hetsubnummer}% \labeltexts\v!formula {\ignorespaces\preparednumber \ignorespaces\hetsubnummer\unskip}% \@@fmright \dostopattributes}% \doif{\formulaparameter\c!location} \v!left{\hskip\formuladistance}% \fi \egroup} % new: \definelist[\v!formula] \global\let\doflushformulalistentry\gobbleoneargument \def\placenamedformula[#1]#2% {\gdef\doflushformulalistentry##1% {\expanded{\writetolist[\v!formula]{##1}}{#2}% \global\let\doflushformulalistentry\gobbleoneargument}% \placeformula[#1]} \starttext \placelist[formula][criterium=text] \placenamedformula[x]{oeps} \startformula a = 1 \stopformula \placeformula \startformula a = 2 \stopformula \placenamedformula[y]{more oeps} \startformula a = 3 \stopformula \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context