How to adjust the \quote{} linewidth?

Asked by Axel Holene on 2012-10-07

Hi!

I have a quote in my CV that just exceeds the linewidth for the \quote, so I would like to expand the line such that I get the quote on one line instead of two. I'm not that pro in programming LaTeX-packages (read: never done it) so I wonder where I may find the linewidth definition of the \quote{}-command?

Thanks in advance!

Regards Axel

Question information

Language:
English Edit question
Status:
Answered
For:
moderncv Edit question
Assignee:
Xavier Danaux Edit question
Last query:
2012-10-07
Last reply:
2012-10-11
Xavier Danaux (xdanaux) said : #1

Hi Axel,

You just to change \quotewidth, but due to moderncv recalculating it automatically when running \maketitle, it's a little tricky:
  \let\originalrecomputecvlengths\recomputecvlengths
  \renewcommand*{\recomputecvlengths}{%
    \originalrecomputecvlengths%
    \setlength{\quotewidth}{\textwidth}}

You can change \textwidth to whatever you like (a relative length, such as "0.95\textwidth", or an absolute one, such as "10cm").

Another option is to define your quote as such:
  \quote{\hbox to 0pt{\hss QUOTE\hss}}
(this centers the quote inside a zero width box).

Kind regards,

Xavier

Can you help with this problem?

Provide an answer of your own, or ask Axel Holene for more information if necessary.

To post a message you must log in.