我在 itemize 部分创建换行符时遇到了一些问题,不幸的是 \newline \parbox \par 或 \\ 不起作用

我在 itemize 部分创建换行符时遇到了一些问题,不幸的是 \newline \parbox \par 或 \\ 不起作用
\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{banking}                           
\moderncvcolor{blue}                             


\usepackage[utf8]{inputenc}                      
\usepackage[scale=0.75]{geometry}
\usepackage{import}    

\begin(document) 

\begin{itemize}

\item{\cventry{2007--2011}{7 GCSEs}{Turk Maarif College}{Nicosia/Cyprus}{\textit{A* to B Including Maths, Physics and English/ 4 A'Levels, Physics-A*, Turkish-A*, \newline Biology A*, Maths-A*}}{}}

\end{itemize}
\end{document}

答案1

您不应该将其放入环境\cventryitemize,但主要错误在于参数的顺序:

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{banking}                           
\moderncvcolor{blue}                             

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}                      
\usepackage[scale=0.75]{geometry}
\usepackage{import}    

\firstname{Arthur}\familyname{Uthor}
\address{42, Some Street}{Sometown, Somestate}
\mobile{+1-615-555-1212}\email{[email protected]}

\begin{document}

\maketitle

\section{Summary}

\cventry{2007--2011}
  {7 GCSEs}
  {Turk Maarif College}
  {Nicosia/Cyprus}
  {}
  {\textit{A* to B Including Maths, Physics and English/ 4 A'Levels, Physics-A*, 
   Turkish-A*, Biology A*, Maths-A*}}

\end{document}

在此处输入图片描述

相关内容