クラスmoderncv
、スタイルには、次のように設定するbanking
ためのインデントがあります。\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
2 行目を次のように少しだけインデントしたいと思います。
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
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
次に、次のように CV でコマンドを使用して、必要なものを取得できます。
\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}
結果: