KOMA-Script 文本与底部之间的边距

KOMA-Script 文本与底部之间的边距

我想从以下工作示例中减少文本和页面底部之间的空间。这样我就可以向页面添加更多文本。

\documentclass[a4paper]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc} 
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage{marvosym}   
\usepackage{blindtext}

\KOMAoptions{%
    pagenumber=false,
    parskip=full,
    fontsize=11pt,
    firstfoot=false,
    fromalign=right,
    fromphone=true,
    fromemail=true,
    fromrule=false,
    foldmarks=false
}

\newcommand{\myFirstname}{John}
\newcommand{\myFamilyname}{Doe}
\newcommand{\myStreet}{3500 West Olive Avenue}
\newcommand{\myTown}{Burbank, CA 91505-5512}


\setkomavar{date}{\today} 
\setkomavar{fromname}{\myFirstname\ \myFamilyname}
\setkomavar{signature}{\myFirstname\ \myFamilyname}
\setkomavar{fromaddress}{\myStreet\\\myTown}
\setkomavar{backaddress}{\myFirstname\ \myFamilyname, \myStreet , \myTown}
\setkomavar{place}{Burbank}
\setkomavar{fromphone}[\Mobilefone\,]{(01\,23)\,45\,67\,89\,10}
\setkomavar{fromemail}[\Letter\,]{[email protected]}

\renewcommand*\familydefault{\sfdefault}




\setkomavar{subject}{Dies hier ist ein Blindtext zum Testen von Textausgaben.
}
\begin{document}
%
\begin{letter}{Richard M Winsor\\
2192 Lawman Avenue\\ 
Arlington\\
22204 Virginia
}
%
\opening{Dear Mr Winsor,}
%
\blindtext[1]
\noindent \blindtext[4]


\closing{\raggedright Yours sincerely,}
\enlargethispage{6\baselineskip}
\medskip
\end{letter}

\end{document}

答案1

首先我建议在 处设置尽可能多的选项\documentclass。至少应该在类加载和文件之前使用fontsize和。parskiptypearealco

第二步是尝试选项(有关详细信息,请参阅 KOMA-Script 手册第 4.10 节)。这将扩大第一页的文本区域,尽管按向下enlargefirstpage计算的类型区域位于位置上方。typearea\footskipfirstfootvpos

\documentclass[a4paper,
    pagenumber=false,
    parskip=full,
    fontsize=11pt,
    firstfoot=false,
    fromalign=right,
    fromphone=true,
    fromemail=true,
    fromrule=false,
    foldmarks=false,
    enlargefirstpage,
]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc} 
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage{marvosym}   
\usepackage{blindtext}

\newcommand{\myFirstname}{John}
\newcommand{\myFamilyname}{Doe}
\newcommand{\myStreet}{3500 West Olive Avenue}
\newcommand{\myTown}{Burbank, CA 91505-5512}


\setkomavar{date}{\today} 
\setkomavar{fromname}{\myFirstname\ \myFamilyname}
\setkomavar{signature}{\myFirstname\ \myFamilyname}
\setkomavar{fromaddress}{\myStreet\\\myTown}
\setkomavar{backaddress}{\myFirstname\ \myFamilyname, \myStreet , \myTown}
\setkomavar{place}{Burbank}
\setkomavar{fromphone}[\Mobilefone\,]{(01\,23)\,45\,67\,89\,10}
\setkomavar{fromemail}[\Letter\,]{[email protected]}

\renewcommand*\familydefault{\sfdefault}



\setkomavar{subject}{Dies hier ist ein Blindtext zum Testen von Textausgaben.
}
\begin{document}
%
\begin{letter}{Richard M Winsor\\
2192 Lawman Avenue\\ 
Arlington\\
22204 Virginia
}
%
\opening{Dear Mr Winsor,}
%
\blindtext[1]
\noindent \blindtext[4]


\closing{\raggedright Yours sincerely,}
\end{letter}

\end{document}

将导致

在此处输入图片描述

我认为,对于第一页来说,这些文字已经足够了。如果您想要更多文字,请使用任一选项DIV或使用包geometry来增加文字区域。

相关内容