我正在使用moderncv
包(classic
样式),我想减少\closing
信件和末尾签名之间的垂直空间。
之间的垂直空间真挚地和约翰列侬太大了。
这是我的最小工作示例:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% "ModernCV" CV and Cover Letter
% LaTeX Template
% Version 1.3 (29/10/16)
% Original author:
% Xavier Danaux ([email protected]) with modifications by:
% Vel ([email protected])
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[11pt,a4paper,roman]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage{ngerman}
\usepackage[utf8]{inputenc} % Damit Umlaute verwendet werden können
\usepackage{ifsym}
\usepackage{lipsum}
\usepackage[scale=0.75]{geometry} % Reduce document margins
\setlength{\hintscolumnwidth}{3.9cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------
\firstname{John} % Your first name
\familyname{Lennon} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{CV}
\address{\textifsymbol{18} Champ Elisee}{12345, Dubai}
\mobile{+1234566789}
\email{[email protected]}
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% COVER LETTER
%----------------------------------------------------------------------------------------
\clearpage
\recipient{Department of Mechatronics \rlap{and Robotics}}{Prof.\\YXCE 45\\987667 Baltimore} % Letter recipient
\date{Dubai, \today} % Letter date
\opening{} % Opening greeting
\closing{Sincerely,} % Closing phrase
\makelettertitle % Print letter title
\textbf{Letter of presentation}
\lipsum
\makeletterclosing % Print letter signature
\newpage
\end{document}
使用\vspace
没有帮助,像这样的解决方案
\closing{Sincerely, \\ \textbf{John Lennon}}
可以工作但会产生两次我的签名...所以我有另一个问题...
有什么想法吗?谢谢。
答案1
好吧,您必须在序言中更改的相关代码如下(需要添加\makeatletter
和\makeatother
以供使用@
):
\renewcommand*{\makeletterclosing}{
\@closing\\[3em]% <===========================================
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%
{\color{color2}\itshape\enclname: \@enclosure}}%
\vfil}
代码\\[3em]
定义了结束语和签名之间添加的空格。
将其更改为\\
或将中的值更改[]
为您喜欢的值。
查看完整代码
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% "ModernCV" CV and Cover Letter
% LaTeX Template
% Version 1.3 (29/10/16)
% Original author:
% Xavier Danaux ([email protected]) with modifications by:
% Vel ([email protected])
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[11pt,a4paper,roman]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage{ngerman}
\usepackage[utf8]{inputenc} % Damit Umlaute verwendet werden können
\usepackage{ifsym}
\usepackage{lipsum}
\usepackage[scale=0.75]{geometry} % Reduce document margins
\setlength{\hintscolumnwidth}{3.9cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
\makeatletter
\renewcommand*{\makeletterclosing}{
\@closing\\% <===================================================
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%
{\color{color2}\itshape\enclname: \@enclosure}}%
\vfil}
\makeatother
%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------
\firstname{John} % Your first name
\familyname{Lennon} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{CV}
\address{\textifsymbol{18} Champ Elisee}{12345, Dubai}
\mobile{+1234566789}
\email{[email protected]}
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% COVER LETTER
%----------------------------------------------------------------------------------------
\clearpage
\recipient{Department of Mechatronics \rlap{and Robotics}}{Prof.\\YXCE 45\\987667 Baltimore} % Letter recipient
\date{Dubai, \today} % Letter date
\opening{} % Opening greeting
\closing{Sincerely,} % Closing phrase
\makelettertitle % Print letter title
\textbf{Letter of presentation}
\lipsum
\makeletterclosing % Print letter signature
\newpage
\end{document}
及其结果: