moderncv(\cvlanguage) の \newline

moderncv(\cvlanguage) の \newline

\cvlanguage 環境内に改行を入れたいのですが、以前は問題なく実行できましたが、今は機能しません (cvtheme で casual から classic に変更しましたが、関連があるかどうかはわかりません)。

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 
\usepackage[utf8]{inputenc}                   % replace by the encoding you are using
\usepackage[scale=0.8]{geometry}
\firstname{John }
\familyname{Doe}
\mobile{    6666666666      }                    % optional, remove the line if not wanted
\social[linkedin][es.linkedin.com/in/johndoe]{John Doe}
\email{[email protected]         }                      % optional, remove the line if not wanted
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother
\begin{document}
\maketitle
\section{Idiomas}
\cvlanguage{Ingl\'es}{Alto. Nivel: C2* \newline  \footnotesize{T\'itulo superior de ingl\'es. Escuela Oficial de Idiomas de Alicante  2000-2005.}}{}
\cvlanguage{Catal\'an}{Alto. Nivel: C2* \newline  \footnotesize{T\'itulo Mitj\`a de Valenci\`a. Junta Qualificadora de Coneixements de Valenci\`a 2004.}}{}
\cvlanguage{Alem\'an}{Intermedio. Nivel: B2* \newline  \footnotesize{T\'itulo Intermedio de Alem\'an. Escuela Oficial de Idiomas de Alicante 2009.}}{}
\cvlanguage{Franc\'es}{Pre-intermedio. Nivel: A2* \newline \footnotesize{Escuela Oficial de Idiomas de Madrid 2017.} 
\newline \newline\emph{*Common European Framework of Reference(CEF) level.}}{}
\end{document}

よろしくお願いいたします。

イグナシオ

答え1

2 番目の引数を複数行に分割できる新しいコマンドを定義できます。

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}

\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

\newcommand{\cvlanguagesplit}[3]{%
  \cvlanguage{#1}{\parbox[t]{\maincolumnwidth}{#2}}{#3}%
}

\firstname{John}
\familyname{Doe}
\mobile{6666666666}
\social[linkedin][es.linkedin.com/in/johndoe]{John Doe}
\email{[email protected]}

\begin{document}

\makecvtitle

\section{Idiomas}
\cvlanguagesplit{Ingl\'es}{%
  Alto. Nivel: C2* \\
  \footnotesize T\'itulo superior de ingl\'es. 
  Escuela Oficial de Idiomas de Alicante  2000-2005.%
}{}
\cvlanguagesplit{Catal\'an}{%
  Alto. Nivel: C2* \\
  \footnotesize T\'itulo Mitj\`a de Valenci\`a. 
  Junta Qualificadora de Coneixements de Valenci\`a 2004.%
}{}
\cvlanguagesplit{Alem\'an}{%
  Intermedio. Nivel: B2* \\
  \footnotesize T\'itulo Intermedio de Alem\'an. 
  Escuela Oficial de Idiomas de Alicante 2009.%
}{}
\cvlanguagesplit{Franc\'es}{%
  Pre-intermedio. Nivel: A2* \\
  \footnotesize Escuela Oficial de Idiomas de Madrid 2017. 
  \emph{*Common European Framework of Reference(CEF) level.}%
}{}
\end{document}

ここに画像の説明を入力してください

答え2

あまりスマートではない解決策を見つけましたが、うまく機能します。

念のため、興味のある方のために: \cventry コマンドでも同様の結果が得られ、\newline コマンドはうまく機能します (実際には、余分なドットを削除するという新しい問題が見つかりますが、この Web にあるいくつかのヘルプを使用して簡単に削除できます)。

関連情報