Класс 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}
с результатом: