I'm trying to add a new line inside a cv entry in class moderncv
, but when I use \newline
the compiler just ignores it:
\item{\cventry{2011--2014}%
{Extensive additional courses in Physics \newline Quantum Mechanics, Analytical Mechanics, Modern Physics}%
{B.Sc. in Geophysics}%
{}{\textit{}}{}%
}
The result is:
I want the "Quantum Mechanics .. " to be in a new line
Best Answer
Class
moderncv
has a fixed definition of command\cventry
, for example for stylebanking
with the resulting command in the cv:
After a look into the definition you can see that you can only place text with more than one line in the
minipage
, filled with argument#7
(Description). The other parts are realized as tabular, where you can not simply use\newline
or\\
to get a new line ...Therefore you should rewrite your entry to (see the numbers corresponding to
#2
etc. in the definition):Based on my answer to a question with
\item
beforecventry
the following MWE can solve your problem:and the resulting pdf: