这份简历中的分页符位置不对。我希望 Latex 能够自动将分页符放在正确的位置。
编辑 我希望项目被分页符截断并在下一页继续。我的问题是,现在发生的情况是,如果分页符位于某个部分的中间,则显示适合该页面的项目,而不适合该页面的项目则根本不显示。下一页从下一节开始。这就是我的问题。
我不想手动告诉 latex 分页符放在哪里,因为我的简历会随着时间而变化,我有很多不同的版本,我不想每次都指定它。文档已附上。
\documentclass{article}
%\usepackage{fullpage}
%\usepackage{amsmath}
%\usepackage{amssymb}
\usepackage{multicol}
\usepackage{comment}
\usepackage{color}
\usepackage{enumerate}
%\usepackage{python}
\ifx\UseOption\undefined
\def\UseOption{optb}
\fi
\textheight=10in
\pagestyle{empty}
%\raggedbottom
\raggedright
% \renewcommand{\encodingdefault}{cg}
%\renewcommand{\rmdefault}{lgrcmr}
\def\bull{\vrule height 0.8ex width .7ex depth -.1ex }
% DEFINITIONS FOR RESUME
\newcommand{\area}[2]{\vspace*{-9pt} \begin{verse}\textbf{#1} #2 \end{verse} }
\newcommand{\lineunder}{\vspace*{-8pt} \\ \hspace*{-18pt} \hrulefill \\}
\newcommand{\header}[1]{{\hspace*{-15pt}\vspace*{6pt} \textsc{#1}} \vspace*{-6pt} \lineunder}
\newcommand{\employer}[3]{{ \textbf{#1} (#2)\\ \underline{\textbf{\emph{#3}}}\\ }}
\newcommand{\contact}[3]{
\vspace*{-8pt}
\begin{center}
{\LARGE \scshape {#1}}
\lineunder
#2 \\
#3
\end{center}
\vspace*{-8pt}
}
\newenvironment{achievements}{\begin{list}{$\bullet$}{\topsep 0pt \itemsep -2pt}}{\vspace*{4pt}\end{list}}
\newcommand{\schoolwithcourses}[4]{
\textbf{#1} #2 $\bullet$ #3\\
%#4 $\bullet$ Selected Coursework:\\
\vspace*{5pt}
}
\newcommand{\school}[4]{
\textbf{#1} #2 $\bullet$ #3\\
#4 \\
}
% END RESUME DEFINITIONS
\begin{document}
\small
\smallskip
\vspace*{-44pt}
\contact{Awesome person}
{Awesome home}
{Awesome phone number $\bullet$ Awesome email}
% $\bullet$ Awesome website}
\header{Education}
\textbf{Masters of Awesome} \hfill 2011\\
Awesome University \\
\hspace*{-5pt}
\\
\textbf{Honours Awsomeness} \hfill 2006\\
Awesome University
\hspace*{-5pt}
\\
\header{Honors and Awards}
\begin{achievements}
\item Major Awesomeness, 2007-2009
\item Total Awesomenewss, 2002
\item The Awesome Award
\end{achievements}
\header{Skills}
\renewcommand{\labelitemi}{$\vcenter{\hbox{\tiny$\bullet$}}$}
\begin{verse}
\textbf{Awesome Skills}
\begin{multicols}{2}
\begin{itemize}
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\item Awesome
\end{itemize}
\end{multicols}
\end{verse}
\renewcommand{\labelitemi}{$\vcenter{\hbox{$\bullet$}}$}
\header{Job Experience}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\end{document}
答案1
一个解决方案是将您不想剪切的元素放在一个minipage
环境中的两个页面上。例如:
\begin{minipage}{\linewidth}
\employer{Awesome Centre}{2008-2011}{Awesome analyst}
Dr. Awesome, Awesome Centre
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
\item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
\end{itemize}
\end{minipage}