我正在尝试制作简历 CV 文档,使用各种软件包来完成某些任务。我不确定我是否没有注意到这些软件包中的冲突,或者我在边距或表格方面很愚蠢,但我无法摆脱这个令人恼火的差距!
您可以在这里看到该文档的示例。
以下是代码:
\documentclass[a4paper,11pt]{article}
%Packages
\usepackage[a4paper, margin={2.5cm,0cm}]{geometry} %To make it printable
\usepackage{kantlipsum} %For verbose garbage
\usepackage{enumitem} %For the enumerated lists
\usepackage[letterspace=100]{microtype} %For letter spacing
\usepackage[small,compact]{titlesec} %For customising section headings
\usepackage{color}
%Preamble
\pagestyle{empty}
\linespread{1.2} %increasing line spacing
\titleformat{\part}[display]{\rmfamily \centering \Huge \sc \lsstyle}{}{}{}[]
\titlespacing{\part}{0pt}{0pt}{0pt}{}
\titleformat{\section}[display]{\rmfamily \Large \sc \lsstyle}{}{}{}[\color{grey}{\titlerule}\vspace{1ex}]
\definecolor{grey}{gray}{0.7}
\renewcommand*{\familydefault}{\sfdefault}
\newenvironment{coverletter}{\newgeometry{margin=5cm} \rmfamily}{\restoregeometry \newpage}
\begin{document}
\begin{coverletter}
Dear Sir or Madam,
\\
Here goes a cover letter.
\
\begin{flushright}
Kind Regards,
\end{flushright}
\end{coverletter}
%Name title
\part*{kant}
\begin{center}
Address
\\
Email
\end{center}
%Profile
\section*{Profile}
\noindent
\kant[2]
%Education
\section*{Qualifications}
\begin{flushright}
\begin{tabular}{@{}rp{0.75\textwidth}@{}}
Kant &\kant[1]
\\
\end{tabular}
\end{flushright}
%Work Experience
\section*{Experience}
\begin{flushright}
\begin{tabular}{@{}rp{0.75\textwidth}@{}}
Kant &\kant[1]
\\
\end{tabular}
\end{flushright}
%Skills
\section*{Key Skills}
\kant
\end{document}
答案1
我增加了顶部边距,以便文本刚好停留在页面上,并使用列表而不是表格以便更好地分页
\documentclass[a4paper,11pt]{article}
%Packages
\usepackage[a4paper, margin={2.5cm,.5cm}]{geometry} %To make it printable
\usepackage{kantlipsum} %For verbose garbage
\usepackage{enumitem} %For the enumerated lists
\usepackage[letterspace=100]{microtype} %For letter spacing
\usepackage[small,compact]{titlesec} %For customising section headings
\usepackage{color}
%Preamble
\pagestyle{empty}
\linespread{1.2} %increasing line spacing
\titleformat{\part}[display]{\rmfamily \centering \Huge \sc \lsstyle}{}{}{}[]
\titlespacing{\part}{0pt}{0pt}{0pt}{}
\titleformat{\section}[display]{\rmfamily \Large \sc \lsstyle}{}{}{}[\color{grey}{\titlerule}\vspace{1ex}]
\definecolor{grey}{gray}{0.7}
\renewcommand*{\familydefault}{\sfdefault}
\newenvironment{coverletter}{\newgeometry{margin=5cm} \rmfamily}{\restoregeometry \newpage}
\begin{document}
\begin{coverletter}
Dear Sir or Madam,
% dont use \\
Here goes a cover letter.
% dont use \\
\begin{flushright}
Kind Regards,
\end{flushright}
\end{coverletter}
%Name title
\part*{kant}
\begin{center}
Address\\% if you must
Email
\end{center}
%Profile
\section*{Profile}
% \noindent not needed
\kant[2]
%Education
\section*{Qualifications}
\begin{description}% list not table
\item[Kant]
\kant[1]
\end{description}
%Work Experience
\section*{Experience}
\begin{description}% list not table
\item[Kant]
\kant[1]
\end{description}
%Skills
\section*{Key Skills}
\kant
\end{document}