我的简历模板如下,我想删除两个教育领域之间的空格(两个大学条目之间的空格,这会导致我的简历转到第二页)。我使用的代码如下:
\documentclass[a4paper,20pt]{article}
\usepackage[total={6.5in,8.75in}, top=1.2in, left=0.9in]{geometry}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{parcolumns}
\pagestyle{fancy}
% Remove page numbers
\fancyfoot{}
\setlength{\headheight}{28pt}
\chead{%
\fontsize{20.74pt}{24pt}\selectfont{}%
Name\\%
\fontsize{8pt}{9.6pt}\selectfont{}%
Address, Phone Number, etc.; %
\href{mailto:[email protected]}{\nolinkurl{[email protected]}}; %
\href{http://www.google.com}{WWW}%
}
\renewcommand{\headrulewidth}{0.4pt}
\begin{document}
\begin{parcolumns}[nofirstindent, colwidths={1=.15\linewidth}]{2}
\colchunk[1]{%
EDUCATION\\*
\\*
\\*
\\*
}
\colchunk[2]{%
\textbf{University of XXX, XXX}\hfill 2011 - 2013 (Expected)\\*
Master of Science, Computer Science, 4.0/4.0\\*
\\*
\textbf{University of YYY, YYY}\hfill 2005 - 2009\\*
Bachelor of Technology, Computer Science, 10.0/10.0
}
\end{parcolumns}
\end{document}
生成以下 pdf:
我尝试在两所大学之间输入\vspace{<some-num>mm}
以缩小差距,但\vspace
没有效果。
有人可以帮我吗?
谢谢!
答案1
有更好的方法来获取输出。但是,我假设您已经有一个设置,现在更改它可能没有意义。因此,考虑使用在条目之间\\*[<len>]
进行固定长度的垂直跳过:<len>
\documentclass[a4paper]{article}
\usepackage[total={6.5in,8.75in}, top=1.2in, left=0.9in]{geometry}% http://ctan.org/pkg/geometry
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\usepackage{parcolumns}% http://ctan.org/pkg/parcolumns
\pagestyle{fancy}
% Remove page numbers
\fancyfoot{}
\setlength{\headheight}{28pt}
\chead{%
\fontsize{20.74pt}{24pt}\selectfont{}%
Name\\%
\fontsize{8pt}{9.6pt}\selectfont{}%
Address, Phone Number, etc.; %
\href{mailto:[email protected]}{\nolinkurl{[email protected]}}; %
\href{http://www.google.com}{WWW}%
}
\renewcommand{\headrulewidth}{0.4pt}
\begin{document}
\begin{parcolumns}[nofirstindent, colwidths={1=.15\linewidth}]{2}
\colchunk[1]{%
EDUCATION\\*
\\*[.5\baselineskip]
\\*
}
\colchunk[2]{%
\textbf{University of XXX, XXX}\hfill 2011 - 2013 (Expected)\\*
Master of Science, Computer Science, 4.0/4.0\\*[.5\baselineskip]
\textbf{University of YYY, YYY}\hfill 2005 - 2009\\*
Bachelor of Technology, Computer Science, 10.0/10.0
}
\end{parcolumns}
\end{document}
在上面的例子中,项目之间的跳过是.5\baselineskip
(跳过半行)。请根据自己的喜好进行修改。
答案2
检查一下:
\documentclass[a4paper,20pt]{article}
\usepackage[total={6.5in,8.75in}, top=1.2in, left=0.9in]{geometry}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{parcolumns}
\pagestyle{fancy}
% Remove page numbers
\fancyfoot{}
\setlength{\headheight}{28pt}
\chead{%
\fontsize{20.74pt}{24pt}\selectfont{}%
Name\\%
\fontsize{8pt}{9.6pt}\selectfont{}%
Address, Phone Number, etc.; %
\href{mailto:[email protected]}{\nolinkurl{[email protected]}}; %
\href{http://www.google.com}{WWW}%
}
\renewcommand{\headrulewidth}{0.4pt}
\begin{document}
\begin{parcolumns}[nofirstindent, colwidths={1=.15\linewidth}]{2}
\colchunk[1]{%
EDUCATION\vspace*{6pt}\\*
\\*
\\*
}
\colchunk[2]{%
\textbf{University of XXX, XXX}\hfill 2011 - 2013 (Expected)\\*
Master of Science, Computer Science, 4.0/4.0\vspace*{-6pt}\\*
\\*
\textbf{University of YYY, YYY}\hfill 2005 - 2009\\*
Bachelor of Technology, Computer Science, 10.0/10.0
}
\end{parcolumns}
\end{document}