![\newline в moderncv(\cvlanguage)](https://rvso.com/image/348609/%5Cnewline%20%D0%B2%20moderncv(%5Ccvlanguage).png)
Я хотел бы иметь новую строку внутри среды \cvlanguage. Раньше я делал это без проблем, но теперь это не работает (я изменил с casual на classic в cvtheme, не знаю, связано ли это).
\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 работает хорошо (на самом деле вы найдете новую проблему удаления лишних точек, но ее можно легко устранить с помощью некоторой помощи, найденной в этом вебе).