Class moderncv
、stylebanking
的缩进\cvitem
设置为:
Title: very long description that runs to the next line very long description
that runs to the next line very long description that runs to the next line
very long description that runs to the next line
我希望第二行稍微缩进一点,就像这样:
Title: very long description that runs to the next line very long description
that runs to the next line very long description that runs to the next line
very long description that runs to the next line
我希望这是一个全局修改,而不必每次添加新内容时都具体说明缩进\cvitem
。
以下是 MWE:
\documentclass[11pt, letterpaper, sans]{moderncv}
\moderncvstyle{banking}
\usepackage[scale=0.75]{geometry}
\name{first}{last}
\begin{document}
\makecvtitle
\section{Publications}
\cvitem{Title}{very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line}
\end{document}
答案1
你有一个可能性是缩进“非常长的描述......”以获得
Title: very long description that runs to the next line very long description
that runs to the next line very long description that runs to the next
line very long description that runs to the next line
如果你想获得关注,请我的答案在这里。这里的优点是每个\mycvitem
缩进的长度都给定了Title:
。
如果您 - 正如您的问题所示 - 只想将整个段落缩进一个小段落,您可以使用以下解决方案:
\newcommand*{\mycvitem}[3][.25em]{%
\begin{description}
\item[\ifthenelse{\equal{#2}{}}{}{\hintstyle{#2}: }] #3
\end{description}%
\par\addvspace{#1}}
然后,您可以使用\mycvitem
简历中的命令来获取您想要的内容,例如:
\documentclass[11pt, letterpaper, sans]{moderncv}
\moderncvstyle{banking}
\usepackage[scale=0.75]{geometry}
\name{first}{last}
\newcommand*{\mycvitem}[3][.25em]{%
\begin{description}
\item[\ifthenelse{\equal{#2}{}}{}{\hintstyle{#2}: }] #3
\end{description}%
\par\addvspace{#1}}
\begin{document}
\makecvtitle
\section{Publications}
\cvitem{Title}{very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line}
\mycvitem{Title}{very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line}
\cvitem{Title}{very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line very long description that runs to the next line}
\end{document}
结果如下: