8

How can I extend quote's width in moderncv? I want the quote element to be wider so it would occupy less amount of lines. Here is my minimal working example:

\documentclass[11pt,a4paper,sans,english]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage{lipsum}
\usepackage[scale=0.8,a4paper]{geometry}
\usepackage{xltxtra}
\usepackage{xunicode}
\setmainfont[Mapping=tex-text]{Times New Roman}
\setsansfont[Mapping=tex-text]{Calibri}
\newfontfamily{\cyrillicfonttt}{Courier New}
\usepackage{polyglossia}
\setmainlanguage{english}
\firstname{John}
\familyname{Doe}
\title{Software Developer}
\mobile{mobile number}
\quote{\lipsum[11]}
\begin{document}
\makecvtitle
\end{document}

mwe

10
\documentclass[11pt,a4paper,sans,english]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage{lipsum}
\usepackage[scale=0.8,a4paper]{geometry}
\usepackage{xltxtra}
\usepackage{xunicode}
\setmainfont[Mapping=tex-text]{Times New Roman}
\setsansfont[Mapping=tex-text]{Calibri}
\newfontfamily{\cyrillicfonttt}{Courier New}
\usepackage{polyglossia}
\setmainlanguage{english}
\firstname{John}
\familyname{Doe}
\title{Software Developer}
\mobile{mobile number}
\quote{\lipsum[11]}

\usepackage{etoolbox}
\patchcmd{\recomputecvlengths}{%
  \setlength{\quotewidth}{0.65\textwidth}%
}{%
  \setlength{\quotewidth}{0.8\textwidth}%
}{}{}

\begin{document}
\makecvtitle
\end{document}

enter image description here

6

Lockstep didn´t worked for me.I am running Windows 7, Miktex and Texmaker.

This worked for me:

\let\originalrecomputecvlengths\recomputecvlengths
\renewcommand*{\recomputecvlengths}{%
\originalrecomputecvlengths%
\setlength{\quotewidth}{0.8\textwidth}}

i found that on https://answers.launchpad.net/moderncv/+question/210616

  • Welcome to TeX.SE. Answers provided on this site tend to be more helpful if the code that's provided is not just a code snippet but a compilable minimum working example (MWE). Please consider modifying editing your posting to create such an MWE. – Mico May 28 '15 at 18:50

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.