采用现代简历休闲风格的缩进字母

采用现代简历休闲风格的缩进字母

我正在尝试缩进模板封面信中每一段的第一行moderncv。到目前为止,我已将其添加到 .tex 的开头以使其对齐,但我还没有找到缩进的方法。

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{casual} % 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{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makelettertitle}% <cmd>
    {\raggedright \@opening}% <search>
    {\@opening}% <replace>
    {}{}% <success><failure>
\makeatother

我可以在其中添加任何内容来缩进吗?还是我应该做其他事情?

- 编辑 -

这是代码中的字母部分

 \clearpage

 \recipient{Empresa contratante}{A coruña, España} % Letter recipient
 \date{\today} % Letter date
 \opening{Estimados Srs,} % Opening greeting
 \closing{Atentamente,} % Closing phrase
 \enclosure[Adjunto]{Curriculum vit\ae{}} % List of enclosed documents

 \makelettertitle % Print letter title

 This is the part where I write my letter and I want it to be indented

 \end{adjustwidth}

 \makeletterclosing % Print letter signature

答案1

由于您已经修补\makelettertitle,您可以在那里添加设置:

\makeatletter
% patch \makelettertitle to use justification and normal indentation
\patchcmd{\makelettertitle}% <cmd>
  {\raggedright \@opening}% <search>
  {\parindent=11pt % or what you think best
   \parskip=0pt plus 0.1pt % remove the blank lines between paragraphs
   \@opening}% <replace>
  {}{}% <success><failure>

% patch \makeletterclosing to have the closing flush left
\patchcmd{\makeletterclosing}
  {\@closing}
  {\vspace{1.5em}\noindent\@closing}% the same vertical space as at the start
  {}{}
\makeatother

在此处输入图片描述

答案2

对于moderncv文档,我通常使用这个技巧来强制缩进,将它放在我想要缩进的部分的开头:

\leftskip 0.1in
\parindent -0.2in 

然后恢复正常,在本节末尾:

\leftskip 0in
\parindent 0in 

答案3

我只是{\hskip 0.5em}在每个段落的开头添加。可能不像其他答案那样系统化,但对我来说这很好。

相关内容