Sie sind hier

UScommercial9 + firstfooter problem

When I use the scrlttr2 UScommercial9.lco and change the papersize from A4 to US standard letter (8.5x11in) the firstfooter disappears.

%                                                                              
% This is a modified version of mlabeltest.tex with
% Copyright (c) Markus Kohm, 2009
% Note: Markus Kohm is not resposible for this file and does NOT
%       support it in any kind!
%                                                                              
% This file may be distributed and/or modified under the                       
% conditions of the LaTeX Project Public License, either version 1.3c          
% of this license or (at your option) any later version.                       
% The latest version of this license is in                                     
%    http://www.latex-project.org/lppl.txt                                     
% and version 1.3c or later is part of all distributions of LaTeX              
% version 2005/12/01 or later.                                                 
%                                                                              
 
\documentclass[UScommercial9,pagesize,mlabel]{scrlttr2}[2009/07/07]         
\usepackage[english]{babel}                                                 
\usepackage{blindtext}                                                      
\setkomavar{fromname}{John Doe}                                             
\setkomavar{fromaddress}{1 Lambda Street\\Anyplace, NY 12345}               
\makelabels                                                                 
 
% When the following line is commented out, the firstfoot is visible (A4 paper default)
\KOMAoptions{paper=8.5in:11in,pagesize} \recalctypearea                                
%\paperwidth 8.5in \paperheight 11in \activateareas                                    
\KOMAoptions{firstfoot=true}                                                           
\firstfoot{\parbox[b]{\linewidth}{\centering\scriptsize Can you see this footer?}}
\pagestyle{plain}
\begin{document}
 
\begin{letter}{Jane Doe\\2 Alpha Street\\Otherplace, NY 12346}
\opening{Dear Jane,}
\blindtext
 
\blindtext
\closing{With love}
\end{letter}
\end{document}
[\code]
Bild von Markus Kohm

Pseudo variables, that depend on a lco-file are calculated while loading the lco-file. So changing page size after loading the lco-file does not change them. This is a must be, because otherwise manual changing of the pseudo lenghts after loading the lco-file would be ignored. So you should either use:

\documentclass[paper=letter,UScommercial9,pagesize,mlabel]{scrlttr2}

or

\KOMAoptions{paper=letter}
\recalctypearea
\LoadLetterOption{UScommercial}

BTW: I've used paper=letter, because it is shorter and easier to understand and to remember than paper=8.5in:11in.

BTW: If you don't post mlabeltest.tex, but a modified version of mlabeltest.tex, you should not use the intro-comment of mlabeltest.tex! I've changed it once again at your posting.

Thanks.

Comments for "UScommercial9 + firstfooter problem" abonnieren