我对 lateX 还很陌生,从来没有遇到过任何与文章相关的真正问题,但是这个 CV 让我很头疼:编译后,它吐出的所有内容都很完美,除了两个完全没有意义的分页符:
“学校”部分和“工作经历”部分之间的第一个右侧。这特别难看,因为留下了 3/4 的空白页。
第二个分页符位于第 6 个工作区之后,并在下一页设置第 7 个工作区,从而留下一半页面空白。
这是怎么回事?我做错了什么?(我试过了,\let\clearpage\relax
但是没有成功)。
请参阅下面的代码
\documentclass[a4paper,10pt]{article}
%A Few Useful Packages
\usepackage{marvosym}
\usepackage{fontspec}
\usepackage{xunicode,xltxtra,url,parskip}
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{fullpage} %**
\usepackage{supertabular}
\usepackage{titlesec}
%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[
SmallCapsFont = Fontin-SmallCaps.otf,
BoldFont = Fontin-Bold.otf,
ItalicFont = Fontin-Italic.otf
]
{Fontin.otf}
\usepackage{pdfpages}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
\hyphenation{im-pre-se}
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{2mm}{0.65\paperheight}
\setlength{\parindent}{0pt}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{tabularx}
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
\graphicspath{ {pic/} }
\pagestyle{empty}
\font\fb=''[cmr10]''
%--------------------TITLE-------------
\par{\centering
{\Huge \textsc{name}
}\bigskip\par}
%--------------------SECTIONS-----------------------------------
%Section: Personal Data
\section{Persönliche Daten}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\begin{tabularx}{\textwidth}{RlR}
\raggedright\textsc{birthday} & 01.01.1980 &
\multirow{4}{*}{\hfill}\\
\raggedright\textsc{Citizenship} & xy \\
\raggedright\textsc{Adresse} & uyz 15, 1111 city, country\\
\raggedright\textsc{Telefon} & +1111111111\\
\raggedright\textsc{Email} & \href{mailto:[email protected]}{[email protected]}\\
\raggedright\textsc{Skype} & xyz
\end{tabularx}
\section{Universität und Schulbildung}
\begin{tabular}{rl}
\textsc{2001 -} laufend & \textsc{University of Hogwarts} \footnotesize{Bachelorstudium sourcery}\\
\textsc{2011} & \textsc{Paper:} \footnotesize{"A General Overview of how to burn whiches} \\
\textsc{2011} & \textsc{30 hous of quiddich} \footnotesize{in the university team top level}\\
\textsc{2000 - 2004} & \textsc{Highschool}, London\\
& \hyperlink{thesentence}{A-level}: average 1,0 \footnotesize{Fachbereichsarbeit}\\
\textsc{2000 - 2004} & \textsc{school}, Hometown\\
\textsc{2000 - 2004} & \textsc{school}, Hometown
\end{tabular}
\section{working experience}
\begin{tabular}{r|p{11cm}}
\textsc{10.2015 -} laufend & \textsc{1 Workplace} City, Country \\
&\emph{Wizard}\\
&\footnotesize{Head magician}
\\\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{2 Workplace}, City \\
&\emph{Wizard}\\
&\footnotesize{Head magician} \\
\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{3 Workplace}, City\\
& \emph{Wizard}\\
&\footnotesize{Head magician}\\\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{4 Workplace}, City\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{5 Workplace}, City, Country \\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{6 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing magic}\\
\multicolumn{2}{c}{} \\
\end{tabular}
\begin{tabular}{r|p{11cm}}
\textsc{01.2001-01.2001} & \textsc{7 Workplace}, City\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{8 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{9 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{10 Workplace}, City, Country \\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{11 Workplace}, City\\
&\emph{internship as Wizard}\\
&\footnotesize{learning basics of magic}
\end{tabular}
%Section: Languages
\section{Languages}
\begin{tabular}{rl}
\raggedright\textsc{Language:}\\&\footnotesize{Native}\\
\raggedright\textsc{Extra:}\\&\footnotesize{extremely good cant stop talking (C2 )}\\
\raggedright\textsc{Esperanto:}\\&\footnotesize{extremely good cant stop talking (C2 )}\\
\raggedright\textsc{Latin:}\\&\footnotesize{extremely good cant stop talking (C2 )}\\
\raggedright\textsc{Greek:}\\&\footnotesize{extremely good cant stop talking (C2 )}
\end{tabular}
\section{extra ordinarities}
\begin{itemize}
\item I can use a computer:\\ \textsc{turn it on}, turn it off, \textsc{install firefox}, \textsc{protonmail}, \textsc{i can type}, \textsc{read}, \textsc{OpenOffice}, \textsc{write}, {\fb \LaTeX}\setmainfont[SmallCapsFont=Fontin-SmallCaps.otf]{Fontin.otf}
\item Driverslicence Nimbus 2000
\end{itemize}
\section{Interests}
Wizardry, and Mikado\\
\end{document}
答案1
您有两个强制分页符(a\clearpage
和 a \newpage
),并强制将页面大小设置为大约物理页面的一半,再加上tabular
不分页的事实,所以如果它不适合整个表格,则必须转到下一页。
但是你的代码由于误用\\
和警告而产生了错误如果我修复这些问题并删除对我没有的字体和图像的引用那么我就会得到
\documentclass[a4paper,10pt]{article}
%A Few Useful Packages
\usepackage{marvosym}
\usepackage{fontspec}
\usepackage{xunicode,xltxtra,url,parskip}
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{fullpage} %**
\usepackage{supertabular}
\usepackage{titlesec}
%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{pdfpages}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
\hyphenation{im-pre-se}
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
%\textblockorigin{2mm}{0.65\paperheight}
\setlength{\parindent}{0pt}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{tabularx}
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
\graphicspath{ {pic/} }
\pagestyle{empty}
\font\fb=''[cmr10]''
%--------------------TITLE-------------
\par{\centering
{\Huge \textsc{name}
}\bigskip\par}
%--------------------SECTIONS-----------------------------------
%Section: Personal Data
\section{Persönliche Daten}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\begin{tabularx}{\textwidth}{RlR}
\raggedright\textsc{birthday} & 01.01.1980 &
\multirow{4}{*}{\hfill\includegraphics[width=0.13\textwidth]{example-image}}\\
\raggedright\textsc{Citizenship} & xy \\
\raggedright\textsc{Adresse} & uyz 15, 1111 city, country\\
\raggedright\textsc{Telefon} & +1111111111\\
\raggedright\textsc{Email} & \href{mailto:[email protected]}{[email protected]}\\
\raggedright\textsc{Skype} & xyz
\end{tabularx}
\section{Universität und Schulbildung}
\begin{tabular}{rl}
\textsc{2001 -} laufend & \textsc{University of Hogwarts} \footnotesize{Bachelorstudium sourcery}\\
\textsc{2011} & \textsc{Paper:} \footnotesize{"A General Overview of how to burn whiches} \\
\textsc{2011} & \textsc{30 hous of quiddich} \footnotesize{in the university team top level}\\
\textsc{2000 - 2004} & \textsc{Highschool}, London\\
& \hyperlink{thesentence}{A-level}: average 1,0 \footnotesize{Fachbereichsarbeit}\\
\textsc{2000 - 2004} & \textsc{school}, Hometown\\
\textsc{2000 - 2004} & \textsc{school}, Hometown
\end{tabular}
\section{working experience}
\begin{tabular}{r|p{11cm}}
\textsc{10.2015 -} laufend & \textsc{1 Workplace} City, Country \\
&\emph{Wizard}\\
&\footnotesize{Head magician}
\\\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{2 Workplace}, City \\
&\emph{Wizard}\\
&\footnotesize{Head magician} \\
\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{3 Workplace}, City\\
& \emph{Wizard}\\
&\footnotesize{Head magician}\\\multicolumn{2}{c}{} \\
\textsc{01.2001-01.2001} & \textsc{4 Workplace}, City\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{5 Workplace}, City, Country \\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{6 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing magic}\\
\multicolumn{2}{c}{} \\
\end{tabular}
\begin{tabular}{r|p{11cm}}
\textsc{01.2001-01.2001} & \textsc{7 Workplace}, City\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{8 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{9 Workplace}, City, Country\\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{10 Workplace}, City, Country \\
&\emph{Wizard}\\
&\footnotesize{doing mostly magic on a professional level}\\
\multicolumn{2}{c}{}\\
\textsc{01.2001-01.2001} & \textsc{11 Workplace}, City\\
&\emph{internship as Wizard}\\
&\footnotesize{learning basics of magic}
\end{tabular}
%Section: Languages
\section{Languages}
\begin{tabular}{rl}
\textsc{Language:}&\footnotesize{Native}\\
\textsc{Extra:}&\footnotesize{extremely good cant stop talking (C2 )}\\
\textsc{Esperanto:}&\footnotesize{extremely good cant stop talking (C2 )}\\
\textsc{Latin:}&\footnotesize{extremely good cant stop talking (C2 )}\\
\textsc{Greek:}&\footnotesize{extremely good cant stop talking (C2 )}
\end{tabular}
\section{extra ordinarities}
\begin{itemize}
\item I can use a computer:\\ \textsc{turn it on}, turn it off, \textsc{install firefox}, \textsc{protonmail}, \textsc{i can type}, \textsc{read}, \textsc{OpenOffice}, \textsc{write}, {\fb \LaTeX}
\item Driverslicence Nimbus 2000
\end{itemize}
\section{Interests}
Wizardry, and Mikado
\end{document}
答案2
在工作区 6 和工作区 7 之间,您终止表格,发出 a\newpage
并启动另一个表格。我认为这解释了第二次中断。