I am currently writing a CV on LaTeX. I want to have a quote on the head of my modernCV, but latex puts ONE word into a second line. Can I make LaTeX put all the quote into one line?

\title{\textcolor{red}{\textsc{Curriculum Vit\ae}}} 

\quote{\glqq quote \grqq \begin{flushright} -authorname- \end{flushright}}

And I don't mean that the authorname is in a second line (as a matter of fact of \flushright) but that the quote is one word too long to fit into one line.

  • 1
    flushright is a new environment that always starts a new line. if the author name is only one line, just use \hfill between the quote and the name. – barbara beeton Aug 5 '12 at 12:08
  • The problem is, that the quote itself is split up into 2 lines. I want to have the author in a different line, that is why I put \flushright – maad Aug 5 '12 at 12:28

This TeX code should do the trick (meant to replace quote in your code above):

\hbox to 0pt{\hss quote\hss}

FYI, it puts your quote in a zero-width horizontal box, with infinitely stretchable and shrinkable glue on both sides.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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