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.

I've been working with the moderncv package and have hit the limit of my LaTeX skills. I've been trying to shrink the top and bottom margins enough to accomodate about two extra lines, but have had no luck.

\documentclass[11pt,a4paper]{moderncv}

% moderncv themes
\moderncvtheme[blue]{casual}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)

\usepackage[utf8]{inputenc}                   % replace by the encoding you are using

\usepackage[scale=0.8]{geometry}
\recomputelengths                             % required when changes are made to page layout lengths

% personal data
\firstname{first}
\familyname{last}
%\quote{}               % optional, remove the line if not wanted
\address{123 First St}{Somewhere, CA 90210}    % optional, remove the line if not wanted
\mobile{555.555.5555}                    % optional, remove the line if not wanted
\email{me@me.com}                      % optional, remove the line if not wanted
\extrainfo{info} % optional, remove the line if not wanted

\begin{document}
\maketitle

\section{Summary}
\cvline{}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vehicula, justo adipiscing consectetur blandit, leo justo consequat purus, quis consectetur lectus velit in elit. Mauris iaculis dolor at justo commodo porttitor. Aliquam ipsum sem, hendrerit eu laoreet nec, ornare eu lorem. Aenean et mauris magna, at cursus magna. Morbi nisi orci, hendrerit id feugiat in, ornare sed nulla. Suspendisse metus mauris, pharetra sit amet scelerisque nec, tincidunt et magna. Etiam mollis massa et urna laoreet feugiat. Donec vestibulum massa quis massa euismod bibendum. Nam accumsan ullamcorper nulla a sodales. Mauris lorem massa, consectetur at luctus sit amet, tempor ac eros. Sed molestie, quam eu gravida luctus, urna lacus laoreet eros, vitae euismod orci velit eget enim. Integer aliquam pharetra erat ut blandit.}

\section{Technical Skills}
\cvline{A great skill}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vehicula, justo adipiscing consectetur blandit, leo justo consequat purus, quis consectetur lectus velit in elit. Mauris iaculis dolor at justo commodo porttitor. Aliquam ipsum sem, hendrerit eu laoreet nec, ornare eu lorem. Aenean et mauris magna, at cursus magna. Morbi nisi orci, hendrerit id feugiat in, ornare sed nulla. Suspendisse metus mauris, pharetra sit amet scelerisque nec, tincidunt et magna. Etiam mollis massa et urna laoreet feugiat. Donec vestibulum massa quis massa euismod bibendum. Nam accumsan ullamcorper nulla a sodales. Mauris lorem massa, consectetur at luctus sit amet, tempor ac eros. Sed molestie, quam eu gravida luctus, urna lacus laoreet eros, vitae euismod orci velit eget enim. Integer aliquam pharetra erat ut blandit.]}

\section{Experience}
\cventry{2000--present}{Space occupier}{freelance}{San Francisco}{}{%
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vehicula, justo adipiscing consectetur blandit, leo justo consequat purus, quis consectetur lectus velit in elit. Mauris iaculis dolor at justo commodo porttitor. Aliquam ipsum sem, hendrerit eu laoreet nec, ornare eu lorem. Aenean et mauris magna, at cursus magna. Morbi nisi orci, hendrerit id feugiat in, ornare sed nulla. Suspendisse metus mauris, pharetra sit amet scelerisque nec, tincidunt et magna. Etiam mollis massa et urna laoreet feugiat. Donec vestibulum massa quis massa euismod bibendum. Nam accumsan ullamcorper nulla a sodales. Mauris lorem massa, consectetur at luctus sit amet, tempor ac eros. Sed molestie, quam eu gravida luctus, urna lacus laoreet eros, vitae euismod orci velit eget enim. Integer aliquam pharetra erat ut blandit.}

\closesection{}                   % needed to renewcommands
\renewcommand{\listitemsymbol}{-} % change the symbol for lists

\end{document}

I have tried half a dozen things, including \addtolength with \topmargin, which seems to move the footer up when I subtract length.

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

If you only want to fit the text on one page than I recommend the simple pragmatic approach of adjusting the spaces manually using some \vspace* with a negative value, normally a factor of \baselineskip.

The following fits the last two lines on the page which are just too much to fit otherwise:

\documentclass[11pt,a4paper]{moderncv}

% moderncv themes
\moderncvtheme[blue]{casual}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)

\usepackage[utf8]{inputenc}                   % replace by the encoding you are using

\usepackage[scale=0.8]{geometry}
\recomputelengths                             % required when changes are made to page layout lengths

% personal data
\firstname{first}
\familyname{last}
%\quote{}               % optional, remove the line if not wanted
\address{123 First St}{Somewhere, CA 90210}    % optional, remove the line if not wanted
\mobile{555.555.5555}                    % optional, remove the line if not wanted
\email{me@me.com}                      % optional, remove the line if not wanted
\extrainfo{info} % optional, remove the line if not wanted

\usepackage{lipsum}
\begin{document}
\vspace*{-2\baselineskip}
\maketitle
\vspace{-1.5\baselineskip}
\section{Summary}
\cvline{}{\lipsum[1-2]}

\section{Technical Skills}
\cvline{A great skill}{\lipsum[3]}

\section{Experience}
\cventry{2000--present}{Space occupier}{freelance}{San Francisco}{}{%
\lipsum[5]
two more lines two more lines two more lines two more lines two more lines two more
two more lines two more lines two more lines two more lines two more lines two more
}

\closesection{}                   % needed to renewcommands
\renewcommand{\listitemsymbol}{-} % change the symbol for lists

\end{document}
share|improve this answer
    
Can't thank you enough--I've spent about two hours on this; you rock! –  Cev Mar 8 '11 at 23:26
    
@Cev So maybe you could vote up @Martin's response, to thank him again? :-) –  chl Mar 8 '11 at 23:46
    
@chl: He needs 15rep for voting up, but only has 13 yet. –  Martin Scharrer Mar 8 '11 at 23:48
    
My fault -- was thinking the limit was 10 rep. Now he can. @Cev Sorry about that! –  chl Mar 8 '11 at 23:52
add comment

If you want to change the page margins, you simply need to change the line

\usepackage[scale=0.8]{geometry}

by adding optional arguments defining the top and bottom margin, e.g.

\usepackage[scale=0.8, top=2cm, bottom=1cm]{geometry}

Use \vspace*{} between sections if you want to manually adjust the spacing.

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.