看来 KOMA 包scrletter
(与类一起使用)确保在使用KOMA 变量scrartcl
的输出和其中存在垂直空间,并且即使通过例如添加签名也会添加这个“额外”空间;在这种情况下我怎样才能摆脱这个空间?:\closing{..}
signature
\includegraphics{signature}
产生上述结果的代码是:
\documentclass{scrartcl}
\usepackage{scrletter}
% Package import declarations
\usepackage{graphicx} % Include graphics for LaTeX
% Document settings
\begin{document}
\setkomavar{signature}{\includegraphics[width=3cm]{585px-Abraham_Lincoln_1862_signature}\\Abraham Lincoln}
%\setkomavar{signature}{Abraham Lincoln}
\setkomavar{subject}{Application for candidacy for the Republican primaries}
\begin{letter}{Illinois Republican Party\\
Chicago Office\\
P.O.\ Box 64897 \\
Chicago, IL 60664}
\opening{To whom it may concern:}
I would hereby like to propose myself as a presidential candidate for the Republican Party because I love freedom and bald eagles and I hate slavery and stuff like that.
\closing{Yours sincerely,}
\end{letter}
\end{document}
答案1
根据您的需要更改伪长度sigbeforevskip
(默认值为)。2\baselineskip
例子:
\makeatletter
\@setplength{sigbeforevskip}{.5\baselineskip}
\makeatother
代码:
\documentclass{scrartcl}
\usepackage{scrletter}
% Package import declarations
\usepackage{graphicx} % Include graphics for LaTeX
\makeatletter
\@setplength{sigbeforevskip}{.5\baselineskip}
\makeatother
% Document settings
\begin{document}
\setkomavar{signature}{\includegraphics[width=3cm,height=\baselineskip]{example-image-A}\\Max Mustermann}
%\setkomavar{signature}{Abraham Lincoln}
\setkomavar{subject}{Application for candidacy for the Republican primaries}
\begin{letter}{Illinois Republican Party\\
Chicago Office\\
P.O.\ Box 64897 \\
Chicago, IL 60664}
\opening{To whom it may concern:}
I would hereby like to propose myself as a presidential candidate for the Republican Party because I love freedom and bald eagles and I hate slavery and stuff like that.
\closing{Yours sincerely,}
\end{letter}
\end{document}
编辑
同时(自版本3.26.2980,〜自 2019 年起)有“用户空间”命令,\setplength
因此它减少到:
\setplength{sigbeforevskip}{.5\baselineskip}