I'm looking to change the width of the \title
environment in the moderncv
template.
As it is now, the maximum width of the title under my name goes all the way to the "address"/information box on the right.
horizontal alignmentmoderncvspacing
I'm looking to change the width of the \title
environment in the moderncv
template.
As it is now, the maximum width of the title under my name goes all the way to the "address"/information box on the right.
Best Answer
The "header" (or title) under the
classic
moderncv
style is comprised of three components: name, details, pictureEach are set in a box, but the width of the name box is calculated to fit exactly within the remaining text block if no other width is specified. So, unfortunately, there's no easy way to specify the gap between these boxes. Some options exist though:
The following patch (with the aid of
etoolbox
) of\makecvtitle
allows you to specify a length\namedetailsgap
. Add this to yourmoderncv
preamble:For example, the above patch changes this:
into this:
(For better line-spacing of multi-line titles, use
\title{<title>\endgraf}
.)Set the
\title
using\parbox[b]{\linewidth-<len>}{<title>}
where you specify the length<len>
. For example, output similar to the above is obtained via(No need for
\endgraf
or\par
here, since\parbox
does this automatically.)Manually fiddle around with the length
\makecvtitlenamewidth
. As stated in the exampletemplate.tex
,The default is
0pt
, which implies an automatic calculation of the required width to fit within the remainder of\textwidth
after the details and picture boxes have been set.