LaTeX 文档分页到第二页

LaTeX 文档分页到第二页

LaTeX 文档分页不正确,经验部分被推到了第二页。第一条条目应该在第一页的“经验”正下方。条目列表也溢出到了第二页。

在 OverLeaf 上阅读和编辑链接

https://www.overleaf.com/5903423nftskg

GitHub

https://github.com/SethCalkins/Resume-LaTeX


CV-Style.cls

% -- Encoding UTF-8 without BOM

\ProvidesClass{cv-style}[2015/02/27 CV class]
\NeedsTeXFormat{LaTeX2e}

\DeclareOption{espanol}{\def\@cv@espanol{}}
\DeclareOption{print}{\def\@cv@print{}}
\DeclareOption*{%
  \PassOptionsToClass{\CurrentOption}{article}%
}
\ProcessOptions\relax
\LoadClass{article}

%----------------------------------------------------------------------------------------
% Colors %
%----------------------------------------------------------------------------------------

\RequirePackage{xcolor}

\definecolor{white}{RGB}{255,255,255}

\definecolor{darkgray}{HTML}{333333}
\definecolor{gray}{HTML}{4D4D4D}
\definecolor{lightgray}{HTML}{999999}

\definecolor{blue}{HTML}{66D9EE}
\definecolor{red}{HTML}{FA2772}
\definecolor{orange}{HTML}{FE9720}
\definecolor{green}{HTML}{A7E22E}
\definecolor{purple}{HTML}{9358FE}
\definecolor{aquamarine}{HTML}{36AF90}

\definecolor{date}{HTML}{A4A4A4}

\ifdefined\@cv@print
  \colorlet{blue}{gray}
  \colorlet{red}{gray}
  \colorlet{orange}{gray}
  \colorlet{green}{gray}
  \colorlet{purple}{gray}
  \colorlet{aquamarine}{gray}
  \colorlet{fillheader}{white}
  \colorlet{header}{gray}
\else
  \colorlet{fillheader}{gray}
  \colorlet{header}{white}
\fi
\colorlet{textcolor}{gray}
\colorlet{headercolor}{gray}

%----------------------------------------------------------------------------------------
% Fonts %
%----------------------------------------------------------------------------------------

\RequirePackage[quiet]{fontspec}
\RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math}

\newfontfamily\bodyfont{Roboto-Regular}[Path=fonts/]
\newfontfamily\bodyfontit{Roboto-LightItalic}[Path=fonts/]
\newfontfamily\thinfont{Roboto-Thin}[Path=fonts/]
\newfontfamily\headingfont{RobotoCondensed-Bold}[Path=fonts/]

\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text, Color=textcolor, Path = fonts/]{Roboto-Light}

\newcommand{\italica}[1]{%
    {\color{gray}\bodyfontit #1}%
}

%----------------------------------------------------------------------------------------
% Header %
%----------------------------------------------------------------------------------------

\RequirePackage{tikz}

\newcommand{\header}[2]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=2cm] (box) at (current page.north){};
    \node [anchor=center] (name) at (box) {%
      \fontsize{40pt}{65pt}\color{header}%
      {\thinfont #1}{\bodyfont  #2}
    };
  \end{tikzpicture}
  \vspace{1cm}
  \vspace{-2\parskip}
}

%----------------------------------------------------------------------------------------
%   Last updated command %
%----------------------------------------------------------------------------------------

\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{polyglossia}

\newcommand{\sethyphenation}[3][]{%
  \sbox0{\begin{otherlanguage}[#1]{#2}
    \hyphenation{#3}\end{otherlanguage}}}
%\sethyphenation[<options>]{<language>}{<list of words separated by spaces>}

\ifdefined\@cv@espanol
  \setdefaultlanguage{spanish}
  \def\lastupdatedtext{Última Actualización el}
\else
  \setdefaultlanguage[variant=british]{english}
  \def\lastupdatedtext{Last Updated on}
\fi

\setlength{\TPHorizModule}{0.01\paperwidth}
\setlength{\TPVertModule}{0.01\paperwidth}

\newcommand{\lastupdated}{ 
  \begin{textblock}{10}(11.3, 0.05)
    \raggedleft
    \fontsize{8pt}{10pt}\color{date}\thinfont 
    \lastupdatedtext{} \today
  \end{textblock}}

%----------------------------------------------------------------------------------------
% Structure %
%----------------------------------------------------------------------------------------
\RequirePackage{parskip}

\newcounter{colorCounter}
\def\@sectioncolor#1#2#3{%
  {%
    \color{%
      \ifcase\value{colorCounter}%
        blue\or%
        red\or%
        orange\or%
        green\or%
        purple\or%
        aquamarine\else%
        headercolor\fi%
    } #1#2#3%
  }%
  \stepcounter{colorCounter}%
}

\renewcommand{\section}[1]{
  {\par\vspace{\parskip}
  {%
    \LARGE\headingfont\color{headercolor}%
    \@sectioncolor #1%
  }
  \par\vspace{\parskip}}
}

\renewcommand{\subsection}[2]{
  \par\vspace{.5\parskip}%
  \Large\headingfont\color{headercolor} #2%
  \par\vspace{.25\parskip}%
}

\newcommand{\jobtitle}[1]{%
    {\color{gray}\bodyfontit #1}%
}

\pagestyle{empty}

%----------------------------------------------------------------------------------------
% List environment %
%----------------------------------------------------------------------------------------

\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
  \end{tabular*}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
  #1&\parbox[t]{12.8cm}{%
    \textbf{#2}%
    \hfill%
    {\footnotesize\addfontfeature{Color=lightgray} #3}\\%
    #4\vspace{\parsep}%
  }\\}

%----------------------------------------------------------------------------------------
% Side block %
%----------------------------------------------------------------------------------------

\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\newenvironment{aside}{%
  \let\oldsection\section
  \renewcommand{\section}[1]{
    \par\vspace{\baselineskip}{\Large\headingfont\color{headercolor} ##1}
  }
  \begin{textblock}{3.6}(1, 1.87)
  \begin{flushright}
  \obeycr
}{%
  \restorecr
  \end{flushright}
  \end{textblock}
  \let\section\oldsection
}

%----------------------------------------------------------------------------------------
% Other tweaks %
%----------------------------------------------------------------------------------------

\RequirePackage[left=5.6cm,top=1cm,right=1cm,bottom=1cm,nohead,nofoot]{geometry}
\RequirePackage{hyperref}
\hypersetup{
    pdftitle=CV/Resume \textbar{} Alejandro Pérez Londoño,
    pdfauthor=Alejandro Pérez Londoño,
    pdfsubject=CV/Resume%
    }

主文本

% -- Encoding UTF-8 without BOM
% -- XeLaTeX => PDF (BIBER)

\documentclass[]{cv-style}          % Add 'print' as an option into the square bracket to remove colours from this template for printing. 
                                    % Add 'espanol' as an option into the square bracket to change the date format of the Last Updated Text

\sethyphenation[variant=british]{english}{} % Add words between the {} to avoid them to be cut 

\begin{document}

\header{Seth M.}{Calkins}           % Your name
\lastupdated

%----------------------------------------------------------------------------------------
%   SIDEBAR SECTION  -- In the aside, each new line forces a line break


%----------------------------------------------------------------------------------------
%   SKILLS SECTION
%----------------------------------------------------------------------------------------

%\section{skills}
%  \vspace{-0.2cm}
%
%Skill 1, skill 2, skill 3, skill 4, skill 5.

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE SECTION
%----------------------------------------------------------------------------------------

\section{experience}

\begin{entrylist}
%------------------------------------------------
\entry
  {01/2015 - Now~~~~~}
  {Liquid Communications}
  {Noblesville, IN}
  {\jobtitle{IT Business Analyst}\\
  Identify new technologies, products, and equipment to support business operations, managing procurement processes, and ensuring seamless introduction of new technology and equipment into existing infrastructure.\\
\begin{itemize}
\item Develop proper planning of corporate infrastructure by prioritizing IT investments, performing risk mitigation, managing internal software development and application deployment, and providing technical project oversight.
\item Facilitate the design and implementation of new/improved process models to ensure milestones are met and results are achieved.
\item Exceptional analysis and recommendation capability; Proactively identify trends and opportunities to increase profitability, stay ahead of business, and keep the team informed, focusing on future profitability impacts.
\item Develop and incorporate pricing, sales and sales channel creation, service development, cost reduction, and technology strategies.
\item Strategically managed all aspects of company infrastructure, application, support, and security. Shaped and managed implementation of company IT strategy. Educated staff on proper use of technology through delivery of engaging and effective change management programs.
\item Provide relevant support to the senior management in order to identify strategic goals, objectives, scope, budgets, and processes for project development.
\item Utilize effective problem solving skills in developing solution documentation, analyzing solutions, and validating IT to meet business goals and objectives as well as effectively manage change requests.

\end{itemize}
}
%------------------------------------------------
\entry
  {March 2014--May 2015~~~~~~~} 
  {Creative Solutions Consulting}
  {Indianapolis, Indiana}
  {\jobtitle{System Analyst}\\
 Keen ability to leverage technology to achieve strategic goals\\
  \begin{itemize}
\item Develop viable IT solutions to reduce operational expenses and boost company's competitive edge.
\item Oversaw the effective provisioning, installation/configuration, operation, and maintenance of systems hardware and software and related infrastructure in compliance with DoD security policies.
\item Responsible for installing, configuring, monitoring, maintaining, and troubleshooting hardware and software applications, including servers, desktops, laptops, and, smart phones.
\item Initiated, planned, and supervised the design and configuration of DARPA contractors' workstations VPN site-to-site, and User VPN access, created access rules to block ports, applied web filters to users or groups, switching ISP's or static IP addresses.
\item Assisted with recruitment advertising, incorporating employment brand while recommending new sites/tools to drive timely and cost-efficient hiring with the best talent on the market.
\item Collaborated with members of the recruiting team to develop and lead recruiting efforts, effectively generate qualified leads targeted in tough-to-fill Information technology markets.
\item Ensured maintenance of network infrastructure including Internet connections, perimeter equipment, Network switches, Wireless access.
\item Orchestrated the ongoing support of the Windows server hosting infrastructure.
\item Oversaw the Active Directory and Exchange servers, including system administrator engineering and provisioning, operations and support, maintenance, and research and development to ensure continual innovation.
\item Conducted research on targeted companies and passive candidates, leveraging undocumented API's.
\item Ensured continuous research on recruitment marketing tools and resources to make first class recommendations available to the team.
  \end{itemize}}
%------------------------------------------------
% * <[email protected]> 2016-08-18T20:11:07.436Z:
%
% over printing... how to do new page?
%
% ^.
\entry
  {Oct. 2011--March 2014}
  {Indycom}
  {Noblesville, IN}
  {\jobtitle{Business Development, Strategy \& Planning}\\
Developed and lead the Business Development team in sourcing, managing, and implementing new business opportunities.\\

\begin{itemize}
\item Planned, designed and implemented, physical and logical network infrastructure based on business analysis, including, LAN Server, website deployment/design, email, desktop/mobile device management/deployment, VOIP phone system.,
\item Perform analysis and propose ways to enhance the companies digital media image (websites, social media, directory listings) on an ongoing basis, to reach more clientele by tapping into areas not formerly utilized.
\item Designed a highly effective customer database system to track leads, customers, emails, phone calls, meetings, reminders, and opportunities.
\item Designed and developed procedures for timely and appropriate record keeping, billing, data management, invoices, and information system reports.
\item Developed Social Media strategies and policies; Implemented, maintained, and analyzed marketing campaigns.
\item Exceptional analysis and recommendation capability; Proactively identify trends and opportunities to increase profitability, stay ahead of business, and keep the team informed, focusing on future profitability impacts.
\item Develop and incorporate pricing, sales and sales channel creation, service development, cost reduction, and technology strategies.
\end{itemize}}

\end{entrylist}
%------------------------------------------------


%----------------------------------------------------------------------------------------
%   EDUCATION SECTION
%----------------------------------------------------------------------------------------

\section{education}

\begin{entrylist}
%------------------------------------------------
\patchcmd\entry
{May 2014 - March 2016}
{M.Sc. {\normalfont in Economics [Grade]}}
{University}
{\vspace{-0.3cm}}
%------------------------------------------------
\entry
{2004--2009}
{B.Eng. {\normalfont in Engineering Management [Grade]}}
{University}
{(Emphasis in ...)}
%------------------------------------------------
\end{entrylist}

%----------------------------------------------------------------------------------------
%   OTHER QUALIFICATIONS SECTION
%----------------------------------------------------------------------------------------

\section{other qualifications}

\begin{entrylist}
%------------------------------------------------
\entry
{2013}
{Qualification}
{Institution}
{\vspace{-0.3cm}}
%------------------------------------------------
\entry
{2011}
{Qualification}
{Institution}
{\vspace{-0.3cm}}
%------------------------------------------------
\end{entrylist}

%----------------------------------------------------------------------------------------
%   AWARDS SECTION
%----------------------------------------------------------------------------------------

\section{awards}

\begin{entrylist}
%------------------------------------------------
\entry
{2014}
{Award name}
{Institution}
{Award description. Award description. Award description. Award description. Award description. Award description. Award description. }
%------------------------------------------------
\end{entrylist}

%----------------------------------------------------------------------------------------
%   INTERESTS SECTION
%----------------------------------------------------------------------------------------

\section{interests}
  \vspace{-0.2cm}

\textbf{professional:} professional interest 1, professional interest 2 and professional interest 3. \textbf{personal:} personal interest 1, personal interest 2, personal interest 3 and personal interest 4.

%----------------------------------------------------------------------------------------

\end{document}

答案1

尽管它的名称具有误导性,entrylist但它是一个表格而不是列表,因此它是一个牢不可破的框,并且标题不适合放在页面上方。

\newenvironment{entrylist}{%
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
  \end{tabular*}
}

最好将其定义为列表。例如description环境,允许分页。

改变你的课程文件来说

\newenvironment{entrylist}{%
}{%
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
\par
  \noindent\parbox[t]{%
    \dimexpr\textwidth-12.8cm\relax}{\raggedright #1}\parbox[t]{12.8cm}{%
    \textbf{#2}%
    \hfill%
    {\footnotesize\addfontfeature{Color=lightgray} #3}\par
    #4\vspace{\parsep}%
  }\par}

至少允许在条目之间中断。

无关但请注意警告

Underfull \hbox (badness 10000) in paragraph at lines 51--51

是由于误用,\\永远不要在段落末尾或之前使用它\begin{itemize}

在此处输入图片描述

相关内容