Sie sind hier

Breitenberechnung von loc

Nach dem Umstieg von teTeX auf TeXLive 2007.1 funktioniert die automatische Breitenberechnung des locfield nicht mehr richtig, jedenfalls bei meinen Dokumenten.

Das Ergebnis des Minimalbeispiels ist zu eng, um den Text ohne unerwünschte Umbrüche zu halten.

Mit einer manuellen Angabe der Breite, etwa 160pt, ist alles in Ordnung.

\documentclass[]{scrlttr2}
 
\usepackage[german]{babel}
\usepackage[utf8]{inputenc}
 
 
\begin{document}
 
\setkomavar{location}{
  \raggedright
  \textbf{Postanschrift}\\
  \quad Mixed~Works\\
  \quad Blinde~Str.~11/0815\\
  \quad 12345~Buxtehude\\[1ex]
 
  \textbf{Direktkontakt}\\
  \quad Tel.~(00~00)~00~00~00-0\\
  \quad Fax~(00~00)~00~00~00-0\\
  \quad Email~xxx@xxxxxxxx.xxx
}
 
 
 
\setkomavar{subject}{Rechnung}
 
\setkomavar{signature}{Leslie P. Polzer}
 
 
\begin{letter}
    {\sffamily Universität Rumpelstadt\\
        Straße hat sie auch eine \\
    12498 Murkshausen}
 
 
    \opening{Sehr geehrte Damen und Herren,}
 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
 
    \closing{Mit freundlichen Grüßen,}
 
\end{letter}
 
\end{document}

Log:

% pdflatex minimalbeispiel.tex
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6)
entering extended mode
(./minimalbeispiel.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/opt/texlive/texmf-dist/tex/latex/koma-script/scrlttr2.cls
Document Class: scrlttr2 2006/07/30 v2.95b KOMA-Script document class (letter)
(/opt/texlive/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/opt/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2006/03/28 v2.95 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm
 
) (/opt/texlive/texmf-dist/tex/latex/graphics/keyval.sty))
(/opt/texlive/texmf-dist/tex/latex/base/size12.clokpdf )
(/opt/texlive/texmf-dist/tex/latex/koma-script/typearea.stym
Package typearea, 2006/07/30 v2.95b KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-2002
 
)) (/opt/texlive/texmf-dist/tex/latex/koma-script/DIN.lco)
(/opt/texlive/texmf-dist/tex/generic/babel/babel.sty
(/opt/texlive/texmf-dist/tex/generic/babel/germanb.ldf
(/opt/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/opt/texlive/texmf-dist/tex/latex/base/inputenc.styi
(/opt/texlive/texmf-dist/tex/latex/base/utf8.def
(/opt/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/opt/texlive/texmf-dist/tex/latex/base/ot1enc.dfun)
(/opt/texlive/texmf-dist/tex/latex/base/omsenc.dfu))) (./minimalbeispiel.aux)
Foldmarks: yes
Head of first page
Foot of first page
Address (backaddress, addressee)
iLocation field: yes
 
Overfull \hbox (11.0966pt too wide) in paragraph at lines 40--40
\OT1/cmr/m/n/12 Email xxx@xxxxxxxx.xxx
 
Overfull \vbox (44.68896pt too high) detected at line 40
 
Overfull \hbox (11.0966pt too wide) in paragraph at lines 40--40
\OT1/cmr/m/n/12 Email xxx@xxxxxxxx.xxx
 
Class scrlttr2 Warning: location field is 44.68896pt too high.
(scrlttr2)              You have to change `toaddrheight'
(scrlttr2)              or you have to define a smaller
(scrlttr2)              location field using \setkomavar.
(scrlttr2)              Because of this too high location field
(scrlttr2)              you've got an overfull \vbox message on input line 40.
 
Reference line: only place and date
Title: no
Subject: before opening
[1{/opt/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.mapm}]
(./minimalbeispiel.aux)
 
 *File List*
scrlttr2.cls    2006/07/30 v2.95b KOMA-Script document class (letter)
scrkbase.sty    2006/07/30 v2.95b KOMA-Script package (basics and keyval use)
scrlfile.sty    2006/03/28 v2.95 KOMA-Script package (loading files)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  size12.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
typearea.sty    2006/07/30 v2.95b KOMA-Script package (type area)
     DIN.lco    2006/07/30 v2.95b KOMA-Script letter-class-option
   babel.sty    2005/11/23 v3.8h The Babel package
 germanb.ldf    2004/02/19 v2.6k German support from the babel system
inputenc.sty    2006/05/05 v1.1b Input encoding file
    utf8.def    2006/03/30 v1.1i UTF-8 support for inputenc
   t1enc.dfu    2006/03/30 v1.1i UTF-8 support for inputenc
  ot1enc.dfu    2006/03/30 v1.1i UTF-8 support for inputenc
  omsenc.dfu    2006/03/30 v1.1i UTF-8 support for inputenc
 ***********
 
 )
(see the transcript file for additional information) </opt/texlive/texmf-dist/f
onts/pk/ljfour/public/cm/dpi600/cmr12.pk>        </var/tmp/texfonts/pk/ljfour/public/c
m/cmbx12.600pk> </var/tmp/texfonts/pk/ljfour/public/cm/cmss12.600pk>
Output written on minimalbeispiel.pdf (1 page, 36552 bytes).
Transcript written on minimalbeispiel.log.

Hat jemand eine Idee, was hier nicht richtig läuft?

Leslie

Bild von Markus Kohm

Siehe dazu auch die Release-Infos.

Versionen jetzt:

*File List*
scrlttr2.cls 2007/10/12 v2.97d KOMA-Script document class (letter)
scrkbase.sty 2007/10/12 v2.97d KOMA-Script package (basics and keyval use)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2007/03/07 v2.97a KOMA-Script package (loading files)
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
typearea.sty 2007/10/12 v2.97d KOMA-Script package (type area)
DIN.lco 2007/10/12 v2.97d KOMA-Script letter-class-option
babel.sty 2005/11/23 v3.8h The Babel package
germanb.ldf 2004/02/19 v2.6k German support from the babel system
inputenc.sty 2006/05/05 v1.1b Input encoding file
utf8.def 2006/03/30 v1.1i UTF-8 support for inputenc
t1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
ot1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
omsenc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
***********

Leider hat sich aber nichts geändert.

Bild von Markus Kohm

Was ist denn genau jetzt anders als früher? Kann es sein, dass Du schlicht nach der Option "locfield=wide" suchst?

Ach so, na klar. Die fehlte im Minimalbeispiel, weil sie zur Demonstration nicht nötig war. Mit der letzten Version und locfield=wide funktioniert nun alles wieder wie gewünscht.

Vielen Dank!

Comments for "Breitenberechnung von loc" abonnieren