[NTG-context] Where is the documentation of the letter module

Florian Wobbe Florian.Wobbe at awi.de
Wed May 30 11:58:58 CEST 2012


>>>> [...] I'm struggling to get the enclosures into an itemized list. This used to work with the old letter module but now fails:
>> 
>> \startletter[enclosure={A\\B\\C}, ...] --> encl: AcrlfBcrlfC
>> 
>> In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang proposed \startletter[enclosure={list:one,two,three}, ...] to get an itemized list. But this does not seem to be implemented yet. How would I get this right?
> 
> It does work but you need MkIV:
> 
> \usemodule[letter]
> 
> \setupletterdescription
>  [enclosure]
>  [
>     location=top,
>     leftmargin=1em,
>     symbol=bullet,
>  ]
> 
> \setupletter
>  [enclosure={list:One,Two,Three}]
> 
> \startletter
> \input knuth
> \stopletter

Thanks, Wolfgang, got that working now. But I'd like to change the formatting of the list further from

encl:
 * One
 * Two
 * Three

to

encl: One
      Two
      Three

without symbols. So I tried:

 \setupletterdescription [enclosure] [symbol=bullet]

This did not work so I tried:

 \definesymbol[nosymbol][{}]
 \setupletterdescription [enclosure] [symbol=nosymbol]

But that results in:

encl:<too much space> One
     <too much space> Two
     <too much space> Three

I cannot remove the extra space with:

 \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em]

Note, that this works:

\setupitemize[each][fit][distance=0em]
\startitemize
  \item no extra space before bullet
\stopitemize

--> *no extra space before bullet

However, it does not work with an enumeration once the symbol was removed:

\setupitemize[each][fit][symbol={},distance=0em]
\startitemize
  \item item
\stopitemize

--> <too much space> item

Florian


More information about the ntg-context mailing list