我怎样才能使每个元素cventry
填满可用空间,而不会因为当前页面上的空间不足而被推到下一页。在下图中(我删除了一些私人项目),当当前页面上有足够的空间至少容纳标题时,高级数字科学中心的整个条目已被移动到下一页。
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[croatian]{babel}
\usepackage{footmisc}
\usepackage{hyphenat}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[scale=0.75]{geometry}
\setlength{\hintscolumnwidth}{3.6cm}
\recomputelengths
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[RE,LO]{\footnotesize }
% personal datas
\firstname{Haziq}
\familyname{Razali}
\address{Bukit Batok West Ave 6 \\ Block 189 \#15-27 \\ Singapore 650189 \\}{}
\mobile{(+65) 9172-2319}
%\email{ha\_haziq\[email protected]}
\extrainfo{ \\ ha\_haziq\[email protected]\\
}
}
\photo[84pt]{Haziq.jpg}
\AtBeginDocument{
\hypersetup{
colorlinks=false,
urlbordercolor=red,
pdfborder = {0 0 1}
}
}
\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%\usepackage{lmodern}
\usepackage[rm={lining,proportional},sf={lining,proportional},tt={lining,tabular,monowidth}]{cfr-lm}
\global\let\bfseries\sbweight
%----------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
%Section
\section{Education}
\cventry{Aug 2013 -- Oct 2016}{Nanyang Technological University, Singapore}{}{}{}{\normalsize{B.Eng. Electrical and Electronics Engineering, 1st Class Honours} \newline{}}
\cventry{Jul 2014 -- Dec 2014}{University of Western Ontario, Canada}{}{}{}{\normalsize{Exchange Student} \newline{}}
%----------------------------------------------------------------------------------
% EXPERIENCE
%----------------------------------------------------------------------------------
\section{Relevant Experience}
%
\cventry{Aug 2016 -- Aug 2017}{\href{http://www.ipal.cnrs.fr/}
{Image \& Pervasive Access Lab} (Centre national de la recherche scientifique)}{\textnormal{Research Engineer}}{\textit{Object Detection in RGBD images} \vspace{2mm}}{}{
\begin{itemize}
\item AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \vspace{3mm}
\item AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
\vspace{4mm}
\end{itemize}}
\cventry{May 2016 -- Jul 2016}{\href{http://www.i2r.a-star.edu.sg/department/vc/index.html}
{Institute for Infocomm Research}}{\textnormal{Intern}}{\textit{Object Detection for Mobility Safety Applications} \vspace{2mm}}{}{
\begin{itemize}
\item Conducted a survey of Deep Learning methods for object detection and recognition and developed an end-to-end CNN for pedestrian detection in RGB-Thermal images \vspace{4mm}
\end{itemize}
}
\cventry{Aug 2015 -- Apr 2016}{\href{http://adsc.illinois.edu/}
{Advanced Digital Sciences Centre} (University of Illinois at Urbana Champaign)}{\textnormal{Junior Research Assistant}}{\textit{Real Time Automated Analysis of Soccer Videos}\vspace{2mm}}{}{
\begin{itemize}
\item Designed algorithms that enhanced the ball tracker by utilizing the rules and \textit{a-priori} knowledge of soccer and implemented height estimation techniques based on the epipolar geometry of stereo vision \vspace{3mm}
\item Designed an algorithm for unsupervised learning of player-team based on k-means clustering and improved the kalman-filtering based player tracker with an occlusion handler that employed an adaptive template \vspace{3mm}
\item Worked on camera calibration and homography for the mapping of objects onto a common coordinate system for object fusion and analysis in world coordinates \vspace{4mm}
\end{itemize}
}
\cventry{Jan 2015 -- May 2015}{Nanyang Technological University}{}{\textit{Face Recognition - Undergraduate Research Opportunities Program} \vspace{2mm}}{}{
\begin{itemize}
\item Conducted a detailed survey of existing techniques on 2D Face Recognition and implemented PCA and LDA on Matlab for performance evaluation \vspace{5mm}
\end{itemize}{}}
%----------------------------------------------------------------------------------------
% AWARDS
%----------------------------------------------------------------------------------------
\section{Awards}
\cventry{2014 -- 2016}{\mdseries{Yayasan Mendaki - Institution of Engineers (Singapore) Scholarship}}{}{}{}{\footnotesize{The scholarship is awarded to \normalsize{\textbf{one Malay student}} per year across all engineering disciplines by nomination from NUS/NTU/SIT/SUTD\newline{}}}
%----------------------------------------------------------------------------------------
% COMPUTER SKILLS
%----------------------------------------------------------------------------------------
\section{Relevant Skills \normalsize\color{black}(Proficient, \color{gray}Basic)}
\cvitem{Languages}{C++, Matlab, \color{gray} Python}
\cvitem{Libraries}{OpenCV, Point Cloud Library, OpenMP, MatConvNet, \color{gray} Caffe\newline{}}
%\cvitem{Others}{LaTeX\newline{}}
%----------------------------------------------------------------------------------------
% SERVICE
%----------------------------------------------------------------------------------------
\section{References}
\renewcommand{\listitemsymbol}{}
\cventry{}{Dr. Nizar Ouarti}{}{}{}{\normalsize{Associate Professor}\newline Image and Pervasive Access Lab / Université Pierre et Marie Curie \newline [email protected] \newline}
\cventry{}{Dr. Lu Shijian}{}{}{}{\normalsize{Scientist II / Adjunct Assistant Professor}\newline Institute for Infocomm Research / Nanyang Technological University \newline [email protected] \newline}
\cventry{}{Dr. Stefan Winkler}{}{}{}{\normalsize{Principal Research Scientist}\newline Advanced Digital Sciences Center / U. of Illinois at Urbana-Champaign \newline [email protected] \newline}
\closesection{} % needed to renewcommands
\end{document}
答案1
你的问题有几个问题,首先你给出的代码不是导致您向我们展示的图像。第二类有moderncv
一些您几乎无法绕过的限制......
如果您想要控制新页面的开始位置,只需在代码中 添加命令\clearpage
或。然后分页符将出现在您编写命令的位置。\newpage
课程moderncv
有时无法自动创建“良好”的分页符,原因在于课程的构建类型。克服此问题的最佳方法是完全自行创建分页符!
或者使用更适合您需要的其他课程......
您的代码(我只添加了showframe
显示使用的打字区域和边距的选项)
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[croatian]{babel}
\usepackage{footmisc}
\usepackage{hyphenat}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[%
scale=0.75,
showframe, % <=======================================================
]{geometry}
\setlength{\hintscolumnwidth}{3.6cm}
\recomputelengths
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[RE,LO]{\footnotesize }
% personal datas
\firstname{Haziq}
\familyname{Razali}
\address{Bukit Batok West Ave 6 \\ Block 189 \#15-27 \\ Singapore 650189 \\}{}
\mobile{(+65) 9172-2319}
%\email{ha\_haziq\[email protected]}
\extrainfo{\\ ha\_haziq\[email protected]\\}
\photo[84pt]{example-image-a.jpg}% Haziq.jpg
\AtBeginDocument{
\hypersetup{
colorlinks=false,
urlbordercolor=red,
pdfborder = {0 0 1}
}
}
\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%\usepackage{lmodern}
\usepackage[rm={lining,proportional},sf={lining,proportional},tt={lining,tabular,monowidth}]{cfr-lm}
\global\let\bfseries\sbweight
%----------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
%Section
\section{Education}
\cventry{Aug 2013 -- Oct 2016}{Nanyang Technological University, Singapore}{}{}{}{\normalsize{B.Eng. Electrical and Electronics Engineering, 1st Class Honours} \newline{}}
\cventry{Jul 2014 -- Dec 2014}{University of Western Ontario, Canada}{}{}{}{\normalsize{Exchange Student} \newline{}}
%----------------------------------------------------------------------------------
% EXPERIENCE
%----------------------------------------------------------------------------------
\section{Relevant Experience}
%
\cventry{Aug 2016 -- Aug 2017}%
{\href{http://www.ipal.cnrs.fr/}{Image \& Pervasive Access Lab} (Centre national de la recherche scientifique)}%
{\textnormal{Research Engineer}}%
{\textit{Object Detection in RGBD images} \vspace{2mm}}{}{%
\begin{itemize}
\item AAAAAAAAAAAAA AAAAAAAAAAAAA AAAAA AAAAA AAAAAAAAA AAAAAAAAAAAAAA \vspace{3mm}
\item AAAAAAAAAAAAAAA AAAAAAAAAAA AAAAAA AAAAA AAAAAAAAAAA AAAAAAAAAAA
\vspace{4mm}
\end{itemize}}
\cventry{May 2016 -- Jul 2016}{\href{http://www.i2r.a-star.edu.sg/department/vc/index.html}
{Institute for Infocomm Research}}{\textnormal{Intern}}{\textit{Object Detection for Mobility Safety Applications} \vspace{2mm}}{}{
\begin{itemize}
\item Conducted a survey of Deep Learning methods for object detection and recognition and developed an end-to-end CNN for pedestrian detection in RGB-Thermal images \vspace{4mm}
\end{itemize}
}
\cventry{Aug 2015 -- Apr 2016}{\href{http://adsc.illinois.edu/}
{Advanced Digital Sciences Centre} (University of Illinois at Urbana Champaign)}{\textnormal{Junior Research Assistant}}{\textit{Real Time Automated Analysis of Soccer Videos}\vspace{2mm}}{}{
\begin{itemize}
\item Designed algorithms that enhanced the ball tracker by utilizing the rules and \textit{a-priori} knowledge of soccer and implemented height estimation techniques based on the epipolar geometry of stereo vision \vspace{3mm}
\item Designed an algorithm for unsupervised learning of player-team based on k-means clustering and improved the kalman-filtering based player tracker with an occlusion handler that employed an adaptive template \vspace{3mm}
\item Worked on camera calibration and homography for the mapping of objects onto a common coordinate system for object fusion and analysis in world coordinates \vspace{4mm}
\end{itemize}
}
\cventry{Jan 2015 -- May 2015}{Nanyang Technological University}{}{\textit{Face Recognition - Undergraduate Research Opportunities Program} \vspace{2mm}}{}{
\begin{itemize}
\item Conducted a detailed survey of existing techniques on 2D Face Recognition and implemented PCA and LDA on Matlab for performance evaluation \vspace{5mm}
\end{itemize}{}}
%----------------------------------------------------------------------------------------
% AWARDS
%----------------------------------------------------------------------------------------
\section{Awards}
\cventry{2014 -- 2016}{\mdseries{Yayasan Mendaki - Institution of Engineers (Singapore) Scholarship}}{}{}{}{\footnotesize{The scholarship is awarded to \normalsize{\textbf{one Malay student}} per year across all engineering disciplines by nomination from NUS/NTU/SIT/SUTD\newline{}}}
%----------------------------------------------------------------------------------------
% COMPUTER SKILLS
%----------------------------------------------------------------------------------------
\section{Relevant Skills \normalsize\color{black}(Proficient, \color{gray}Basic)}
\cvitem{Languages}{C++, Matlab, \color{gray} Python}
\cvitem{Libraries}{OpenCV, Point Cloud Library, OpenMP, MatConvNet, \color{gray} Caffe\newline{}}
%\cvitem{Others}{LaTeX\newline{}}
%----------------------------------------------------------------------------------------
% SERVICE
%----------------------------------------------------------------------------------------
\section{References}
\renewcommand{\listitemsymbol}{}
\cventry{}{Dr. Nizar Ouarti}{}{}{}{\normalsize{Associate Professor}\newline Image and Pervasive Access Lab / Université Pierre et Marie Curie \newline [email protected] \newline}
\cventry{}{Dr. Lu Shijian}{}{}{}{\normalsize{Scientist II / Adjunct Assistant Professor}\newline Institute for Infocomm Research / Nanyang Technological University \newline [email protected] \newline}
\cventry{}{Dr. Stefan Winkler}{}{}{}{\normalsize{Principal Research Scientist}\newline Advanced Digital Sciences Center / U. of Illinois at Urbana-Champaign \newline [email protected] \newline}
\closesection{} % needed to renewcommands
\end{document}
为我提供了通常的和(使用该代码)想要的结果: