Класс moderncv - \cvitem отступ от второй строки

Класс moderncv - \cvitem отступ от второй строки

Класс 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

Я бы хотел, чтобы вторая строка имела небольшой отступ, как здесь:

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}

с результатом:

полученное резюме

Связанный контент