Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The information that I want to provide isn't fitting into one line. I am working with

\cventry{}{}{}{}...

I want to put information into a new line, still positioned to what is in the line above. I tried to put \ or newline into/between the brackets but it was not working.

Thanks for the help.

share|improve this question
    
I managed to do what I was looking for: I just put \newline{} and into the brackets what I wanted to have in that new line. –  maad Jul 2 '12 at 21:09
add comment

1 Answer

I tested with moderncv.cls 2012/03/26 v1.0, and \newline works and generates a line break in every argument. This can be easily tested with template.tex which is distributed with the moderncv documentation - just a crazy test of line breaks:

\section{Education}
\cventry{2010\newline -- 2012}{Master of Science\newline (honoris causa)}
  {University of TeXas\newline TeX committee}
  {Austin\newline (``Keep Austin Weird'')}
  {Supported by\newline the local TUG}
  {Awarded for writing\newline the thesis in \LaTeX}

cv example section

Indeed \\ doesn't work, but \newline does. And, in such and similar cases, you could use \parbox. Within that, even \\ works.

The first argument is an exception: within that, \\ works and gives properly right aligned lines, in contrast to \newline:

\cventry{2010\\ -- 2012}...
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.