# [tex-live] Formatting mismatch

Ulrike Fischer news2 at nililand.de
Thu Jul 31 14:28:23 CEST 2008

Am Thu, 31 Jul 2008 12:22:13 +0100 schrieb Udo Zallmann:

> Hello,
>
> tried LaTeX-ing a few documents. I encountered an anomaly when
> comparing a compiled document against one compiled through the website
>
> I am using the KOMA-Script scrlttr2 class to typeset a letter. On this
> letter, I intended to set the recipient info in bold, so I used the
> construct:
>
> \begin{letter}{%
> 	\bfseries%
> 	per Fax an\\
> 	+49--180--5\,33\,01\,63}
>
> This should set two lines in the recipient field, both in bold, the
> first one containing 'per Fax an,' the second containing
> '+49--180--5\,33\,01\,63.' When compiling the document using the
> ScienceSoft LaTeX website, this expected result is obtained. With
> TL2008, however, only the first line is set in bold, the second is
> not.
>

Koma is first saving the first line to the variable toname, and the
second to toaddress and latter it uses the variables inside groups:

\usekomafont{toname}{\usekomavar{toname}\\}%

This enables special font settings for toname and toaddress but means
also that font switches in the first line are local to toname.

It is quite possible that this behaviour is quite new, but it is
intended and certainly not a bug.

Use the scrlttr2 interface to change the font in the address fields.
Or add a \bfseries to the second line.

--
Ulrike Fischer