[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#92703: document class 'letter' doesn't understand \opening



On Tue, Apr 03, 2001 at 06:35:51PM +1000, az@i7.com.au wrote:
> Package: tetex-doc
> Version: 1.0.2+20000804-7
> Severity: important
> 
> in /usr/share/doc/texmf/latex/latex2e-html/ltx-91.html :
> 
>    \begin{letter}{Mr. John Doe \\ 2345 Jones St. 
>          \\ Oakland, CA  91123}
>    \opening{Dear John,}
>      ...
>      text of letter 
>      ...
>    \closing{Best regards,}
>    \end{letter}
> 
> Firstly, latex doesn't like:
> 
> ! LaTeX Error: Missing \begin{document}.
> 
> Secondly, if \begin{letter} is replaced with \begin{document}:
> 
> ! Undefined control sequence.
> \opening ...ace {2\parskip }{\raggedright \toname 
>                                                   \\ \toaddress \par }\vspac...
> l.7     \opening{Dear John,}
> 
> As this is the only documentation for the letter class that I can find on my system, I consider this a bug.

I'm guessing that the letter class documentation writer was intending
that it be read by someone already familiar enough with latex to know
that you need to wrap the example inside 
\documentstyle{}\begin{document} ... \end{document},
as you do with _all_ latex documents, regardless of the class.

In fact, that's what it says directly above the part you quoted.

I don't think this is a bug.

But if you can re-write the page to be more clear, a patch would
almost certainly be appreciated.


-S



Reply to: