現代cv中的\換行(\cv語言)

現代cv中的\換行(\cv語言)

我想在 \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

您可以定義一個新命令,允許將第二個參數跨行分割。

\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 命令運行良好(實際上您會發現刪除多餘點的新問題,但可以透過此網路中找到的一些幫助輕鬆刪除) )。

相關內容