Klasse moderncv - \cvitem Einzug ab der zweiten Zeile

Klasse moderncv - \cvitem Einzug ab der zweiten Zeile

Klasse moderncv, Stil bankinghat die Einrückung für \cvitemwie folgt eingerichtet:

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

Ich möchte, dass die zweite Zeile ein wenig eingerückt wird, etwa so:

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

Ich möchte, dass dies eine globale Änderung ist, ohne dass ich bei jedem Hinzufügen eines neuen Eintrags die Einrückung genau angeben muss \cvitem.

Hier ist ein 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}

Antwort1

Sie haben beispielsweise die Möglichkeit, die „sehr lange Beschreibung ...“ einzurücken, um

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

Wenn Sie das bekommen möchten, folgen Sie bittemeine Antwort hier. Der Vorteil hierbei ist, dass jedes Mal \mycvitemdie Länge des angegebenen eingerückt wird Title:.

Wenn Sie – wie in Ihrer Frage gezeigt – den gesamten Absatz nur einen kleinen Einzug machen möchten, können Sie die folgende Lösung verwenden:

\newcommand*{\mycvitem}[3][.25em]{%
  \begin{description}
    \item[\ifthenelse{\equal{#2}{}}{}{\hintstyle{#2}: }] #3
  \end{description}% 
  \par\addvspace{#1}}

Anschließend können Sie den Befehl in Ihrem Lebenslauf verwenden, \mycvitemum das Gewünschte zu erhalten, etwa:

\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}

mit dem Ergebnis:

resultierender Lebenslauf

verwandte Informationen