我一直在使用该moderncv
软件包,但已经达到了我的 LaTeX 技能的极限。我一直试图缩小顶部和底部边距,以便容纳大约两行额外的内容,但没有成功。
\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{[email protected]} % 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}
我已经尝试了六种方法,包括\addtolength
,\topmargin
当我减去长度时,它似乎会将页脚向上移动。
答案1
如果您只想将文本放在一页上,那么我建议采用简单实用的方法,使用一些\vspace*
负值(通常是 的一个因子)手动调整空格\baselineskip
。
以下内容适合页面上的最后两行,否则太多了,无法容纳:
\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{[email protected]} % 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}
答案2
如果你想改变页边距,你只需要改变行
\usepackage[scale=0.8]{geometry}
通过添加定义顶部和底部边距的可选参数,例如
\usepackage[scale=0.8, top=2cm, bottom=1cm]{geometry}
\vspace*{}
如果您想手动调整间距,请在各节之间使用。