我想稍微增加这封求职信中段落之间的间距:
%% start of file `template.tex'.
%% Copyright 2006-2013 Xavier Danaux ([email protected]).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[ngerman,english]{babel}
\usepackage[english,ngerman]{babel}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makelettertitle}% <cmd>
{\raggedright \@opening}% <search>
{\@opening}% <replace>
{}{}% <success><failure>
\makeatother
\moderncvcolor{green}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\address{X}{Y}{Z}
\phone[mobile]{+00~(000)~0000~0000}
\email{mail}
\homepage{www.infectionmetal.com}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
% recipient data
\recipient{Lee MacBride\\News Editor}{27 Hoxton Street\\London N1 6NH\\UK}
\date{May 10, 2014}
\opening{Dear Lee,}
\closing{Sincerely,}
\enclosure[Attached]{one-sheet, demo album, reviews.}
\makelettertitle
Mauris sit amet hendrerit erat. Aliquam at ullamcorper purus. Maecenas rutrum luctus felis vel dignissim. Pellentesque ut feugiat justo. Nam adipiscing eros pretium mi consectetur auctor. Ut vel quam sollicitudin, auctor lacus nec, venenatis mi. Maecenas consectetur fringilla lectus sit amet cursus.
Mauris sit amet hendrerit erat. Aliquam at ullamcorper purus. Maecenas rutrum luctus felis vel dignissim. Pellentesque ut feugiat justo. Nam adipiscing eros pretium mi consectetur auctor. Ut vel quam sollicitudin, auctor lacus nec, venenatis mi. Maecenas consectetur fringilla lectus sit amet cursus.
\makeletterclosing
\end{document}
%% end of file `template.tex'.
只是想知道,是否可以在签名后添加职位(例如:首席执行官,经理)?
是否可以在文档末尾和签名之间添加额外的空格。由于我需要在打印的文档上手动盖章签名,因此空间不够(我的签名有点垂直)。
答案1
有三个问题。
将“职位名称”置于结尾的一种方法如下(将重新定义放在示例文件中已有的
\makeatletter
...对之间):\makeatother
\renewcommand*{\makeletterclosing}{ \@closing\\[3em]% {\bfseries \@firstname~\@familyname}% \ifthenelse{\isundefined{\@jobtitle}}{}{\\\@jobtitle}% <-- added to orig. def \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% {\color{color2}\itshape\enclname: \@enclosure}}} \def\jobtitle#1{\def\@jobtitle{#1}}
然后,当你想在签名后添加“职务”时,你可以添加
\jobtitle{Manager \& CEO}
关于
\parskip
,moderncv
相关文件会定期重新定义长度。强制自定义长度的最简单(也是最不 LaTeX 风格)方法是\parskip=10pt
在 后添加 (等) ;如果您不希望长度以难以追踪的方式扩展,请将新长度夹在和对\makelettertitle
之间。\begingroup
\endgroup
为了增加发件人信息块和日期之间的间距,我们可以
\patchcmd
(再次)使用:\patchcmd{\makelettertitle}% {\end{minipage}\\[1em]}% {\end{minipage}\\[2em]}% {}{}
那么...用一个例子来概括一下:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[ngerman,english]{babel}
\usepackage[english,ngerman]{babel}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makelettertitle}% <cmd>
{\raggedright \@opening}% <search>
{\@opening}% <replace>
{}{}% <success><failure>
\patchcmd{\makelettertitle}% <-- add space before date
{\end{minipage}\\[1em]}%
{\end{minipage}\\[2em]}% (change length as needed)
{}{}
\renewcommand*{\makeletterclosing}{% <-- add an optional \jobtitle description
\@closing\\[3em]%
{\bfseries \@firstname~\@familyname}%
\ifthenelse{\isundefined{\@jobtitle}}{}{\\\@jobtitle}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfill%
{\color{color2}\itshape\enclname: \@enclosure}}}
\def\jobtitle#1{\def\@jobtitle{#1}}
\makeatother
\moderncvcolor{green}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\parskip 20pt
% personal data
\name{John}{Doe}
\jobtitle{CEO \& Manager}% <-- this is new, but not mandatory
\address{X}{Y}{Z}
\phone[mobile]{+00~(000)~0000~0000}
\email{mail}
\homepage{www.infectionmetal.com}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
% recipient data
\recipient{Lee MacBride\\News Editor}{27 Hoxton Street\\London N1 6NH\\UK}
\date{May 10, 2014}
\opening{Dear Lee,}
\closing{Sincerely,}
\enclosure[Attached]{one-sheet, demo album, reviews.}
\makelettertitle
\begingroup% <-- here we are *locally* changing the value for \parskip
\parskip 12pt
Mauris sit amet hendrerit erat. Aliquam at ullamcorper purus. Maecenas rutrum luctus felis vel dignissim. Pellentesque ut feugiat justo. Nam adipiscing eros pretium mi consectetur auctor. Ut vel quam sollicitudin, auctor lacus nec, venenatis mi. Maecenas consectetur fringilla lectus sit amet cursus.
Mauris sit amet hendrerit erat. Aliquam at ullamcorper purus. Maecenas rutrum luctus felis vel dignissim. Pellentesque ut feugiat justo. Nam adipiscing eros pretium mi consectetur auctor. Ut vel quam sollicitudin, auctor lacus nec, venenatis mi. Maecenas consectetur fringilla lectus sit amet cursus.
\the\parskip % <-- let's test the value
\endgroup
\makeletterclosing
\the\parskip % <-- let's test the value again
\end{document}