Dear Contex’ers,

This morning I have been experimenting with the solutions suggested by Thomas and Wolfgang.

Thomas’ solution works, it produces two distinct letters, yet the address is probably on another layer. This means that it is not shifted to the right, at least not with the command (\setupletterlayer[address]), so that it will be visible through the envelope window.

With Wolfgang’s solution the address is moved to its desired place, and the letter text is printed as well.

However, inserting a text (by means of \input) is problematic (see pdf), with or without \relax.

I then experimented with alternatives like \startbuffer[lettercontent] … endbuffer. The \input problem remains: it appears that the buffer takes any command (\foo) as literal text.

I tried moving the setbuffer … endbuffer part to elswhere in the document. I also experimented with \input a sample text of my own on my harddisk. I tried deleting the \placeletter command - no difference.

So, I feel I am close, but not yet there, one more step …



 <contact class='participant' label='Hendriks'>
     <p>Mr. K. Hendriks</p>
     <p>Grotestraat 5</p>
     <p>1234 BB Arnhem</p>
 <contact class='participant' label='Janssen'>
    <p>Mr. P. Janssen</p>
    <p>Kortestraat 8</p>
    <p>1234 AA Nijmegen</p>

\startxmlsetups xml:setups





\startxmlsetups xml:contacts

\startxmlsetups xml:p



%content of the letter \xmltext{#1}{/city}
%\input knuth \relax

\startxmlsetups xml:contact
        opening={Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},},
        closing={Kind regards,},
        subject={subject: your life in \xmltext{#1}{/city}},

%This is the content of the letter.
\input knuth \relax



\setuppagenumbering [state=stop]


Attachment: brieven2mkiv3.pdf
Description: Adobe PDF document

If your question is of interest to others as well, please add an entry to the 

maillist : /
webpage  : /
archive  :
wiki     :

Reply via email to