Hello again! In a form I need a lot of empty, but numbered fields. Can I access the counter of \dorecurse somehow, or is there another loop command? e.g. \dorecurse{20}{\bTR \bTD \LoopCounter bottles of beer \eTD \bTD{\strut} \eTD \eTR} or \dorecurse{20}{\definefield[Fld\LoopCounter][line][MySetup][]\field[Fld\ LoopCounter]} Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net
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 ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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}} Then I always get 0 (or an error in some cases). Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net
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}{\expanded{\SkillField{Skill\recurselevel}}} \expanded is one of the more interesting commands, it does *not* expand the \SkillField, only what comes after it \startexpanded ... \stopexpanded does expand everything, Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Dear friends, Some time ago Wolfgang Zilig asked on this forum if the letter module is still supported. He also sent his log file, the last line of which reads: system : macros of module letter loaded (C:\texmf\tex\plain\base\letter.tex ! Undefined control sequence. l.13 \nopagenumbers ? I have been experimenting a few days with the letter module, exactly as described in xcorrespondence, with the use of an xml database. Unfortunately I cannot get it right either. My log file shows a number of errors, the first being the same as in Wolfgang's. The error seems to be not a missing file, since al files are found, but rather something else. Does anyone have a clue? Kind regards, Robert Ermers specials : fdf,tpd loaded system : macros of module letter loaded (J:\tex\localtexmf\tex\context\base\m-letter.tex system : no macros found in module letter color : system rgb is global activated system : no macros found in module letter ) system : macros of module letter loaded (J:\tex\texmf\tex\plain\base\letter.tex ! Undefined control sequence. l.13 \nopagenumbers ? ! Undefined control sequence. l.14 \headline ={\ifnum\pageno>1 ? ! Font \logofont=stan70 at 70.0pt not loadable: Metric (TFM) file not found. l.52 \font\logofont=stan70 at 70truept ? ....
Hi, Rob Ermers wrote:
Dear friends,
Some time ago Wolfgang Zilig asked on this forum if the letter module is still supported. He also sent his log file, the last line of which reads:
system : macros of module letter loaded (C:\texmf\tex\plain\base\letter.tex ! Undefined control sequence. l.13 \nopagenumbers ?
That is a plain TeX input file, named "letter.tex". It is loaded because ConTeXt uses the name you feed into \usemodule without prefix as last resort (if it cannot find any version with a t-, s- or m- prefix). It is not related to the ConTeXt letter module.
specials : fdf,tpd loaded system : macros of module letter loaded (J:\tex\localtexmf\tex\context\base\m-letter.tex
What is in this file ? It is obviously present, but does it actually contain the 'letter module' macros? (I doubt that) Greetings, Taco
Dear friends, Thanks for your reactions to my previous message. After some experimenting I succeeded in creating a letter with m-letter.tex and an xml database. I shall put the model on the wiki soon. However, one problem remains to be solved. The command \input after \startbuffer is not recognised. Do you have an idea how to get it right? Regards, Robert \startbuffer[texletter] \input brieftekst \stopbuffer \setvariables [letter:data] [address=\XMLflush{address}, prefix=\XMLflush{prefix}, initials=\XMLflush{initials}, formalname=\XMLflush{formalname}, informalname=\XMLflush{informalname}, content={\getbuffer[texletter]} ] Result in pdf: Geachte Heer Hagen, “input brieftekst Met vriendelijke groet,
On Friday 07 January 2005 09:12, Rob Ermers wrote:
Dear friends,
Thanks for your reactions to my previous message.
After some experimenting I succeeded in creating a letter with m-letter.tex and an xml database. I shall put the model on the wiki soon.
However, one problem remains to be solved. The command \input after \startbuffer is not recognised.
Do you have an idea how to get it right?
Regards,
I don't know if this is helpful but I have used letterformat.tex which is taken from the Knuth _TeXBook_ For mailing list/ form letter applications I have used some truly ancient macros called "midnight macros" by Marcel Van der Goot.. The TeXsis macros by Eric Myers have a form letter application also. -- John Culleton Short list of publishing/marketing books: http://wexfordpress.com/tex/shortlist.pdf
participants (6)
-
Hans Hagen
-
Henning Hraban Ramm
-
John Culleton
-
Rob Ermers
-
Taco Hoekwater
-
Vit Zyka