我正在写简历,我用 分隔每个部分\subsection*{}
。问题是,在写完第一和第二小节后,第三小节的内容无法容纳在第一页剩余的空间中,因此它会将第三部分的所有内容移动到新的一页。我希望第三小节在第二小节结束后立即开始,然后将第一页放不下的行移动到第二页。
这是我的代码:
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{color}
\usepackage{hyperref}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\usepackage{fullpage}
\pagestyle{plain}
\parindent 0pt
\parskip \baselineskip
\newcommand{\place}[1]{{\sc #1}}
\newcommand{\header}[1]{\underline{\large\sc #1}}
\newcommand{\entry}[2]{{\emph{#1}}&{ #2 }\\[0.22cm]}
\begin{document}
\vspace{-2cm}
\begin{center}{\Large \bf \sc My name}\\[.18cm] {\it \today} \\[.3cm]
Phone: (111) 111-1111
\hfill College of Computer and Information Science \\
Email: {\tt [email protected]}
\hfill \place{xxx University}, Boston MA \\[-2cm]
\end{center}\hrulefill
\def\todo#1{{\color{red}[TODO: #1]}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-.9cm}
\subsection*{Research interests}
\begin{itemize}
\vspace{-.5cm}
\item Statistical ...\\
\vspace{-.75cm}
\item R-based ...
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-1cm}
\subsection*{Education}
\vspace{-.25cm}
\begin{tabular}{@{}p{1.5cm}p{14.5cm}}
\entry{2016-current} {PhD candidate, My Field, \place{My University}, Country
\newline Advisor: Y. XXX}
\entry{2014}{MS, My Field, \place{My University}, Country
\newline Thesis: {\it ``My thesis"}
\newline Advisor: O. UUU
}
\entry{2010}{BS. My Field, \place{My University}, Country.
\newline Diploma: {\it ``My diploma title"}
\newline Advisor: S. DDD
}
\end{tabular}
\vspace{-0.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection*{Experience}
\vspace{-0.5cm}
\begin{tabular}{@{}p{1.5cm}p{14.5cm}}
\entry{06/2017-present}{First Experience. \place{My University}, Country.
\begin{itemize}
\vspace{-0.25cm}
\item MS course ``Name of Course". Grading, Office hours.
\end{itemize}
\vspace{-0.25cm}
}
\entry{06/2017-09/2017}{Internship. \place{Name of Company}, Country
\begin{itemize}
\vspace{-0.25cm}
\item Causal inference in networks inferred from noisy bio-molecular measurements.
\end{itemize}
\vspace{-0.25cm}
}
\entry{01/2017-04/2016}{Internship. \place{Name of Company}, Country
\begin{itemize}
\vspace{-0.25cm}
\item Causal inference in networks inferred from noisy bio-molecular measurements.
\end{itemize}
\vspace{-0.25cm}
}
\entry{01/2017-04/2016}{Internship. \place{Name of Company}, Country
\begin{itemize}
\vspace{-0.25cm}
\item Causal inference in networks inferred from noisy bio-molecular measurements.
\end{itemize}
\vspace{-0.25cm}
}
\entry{02/2016-09/2016}{First Experience. \place{My University}, Country.
\begin{itemize}
\vspace{-0.25cm}
\item MS course ``Name of Course". Grading, Office hours.
\end{itemize}
\vspace{-0.25cm}
}
\entry{02/2009-09/2010}{First Experience. \place{My University}, Country.
\begin{itemize}
\vspace{-0.25cm}
\item MS course ``Name of Course". Grading, Office hours.
\end{itemize}
\vspace{-0.25cm}
}
\entry{09/2009-11/2009}{First Experience. \place{My University}, Country.
\begin{itemize}
\vspace{-0.25cm}
\item MS course ``Name of Course". Grading, Office hours.
\end{itemize}
\vspace{-0.25cm}
}
\entry{02/2009-09/2012}{First Experience. \place{My University}, Country.
\begin{itemize}
\vspace{-0.25cm}
\item MS course ``Name of Course". Grading, Office hours.
\end{itemize}
\vspace{-0.25cm}
}
\end{tabular}
\end{document}
\end{document}
下面是在 LaTeX 中运行代码的结果图:
你有什么建议吗?
答案1
您的部分内容位于tabular
不允许分页符的环境中。要在表格中启用分页符,您需要例如包longtable
。要在您的案例中使用它,请添加\usepackage{longtable}
您的序言并分别用和替换\begin{tabular}
和。\end{tabular}
\begin{longtable}
\end{longtable}