我已经开始使用自己的模板,我是这方面的新手。到目前为止,代码非常基础,我想删除标题页之前的空白页和底部的页码。
\documentclass[10 pt, a4paper, leqno, oneside]{report}
\usepackage{lscape}
\usepackage{caption}
\usepackage{subfig}
\usepackage[section]{placeins}
\usepackage{listings}
\usepackage{url}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage[swedish, english]{babel}
\begin{document}
\include{titlepage}
\end{document}
并且titlepage.tex
是
%titlepage
\thispagestyle{empty}
\begin{center}
\begin{minipage}{0.75\linewidth}
\centering
%University logo
\includegraphics[width=0.5\linewidth]{SU_logo.png}
% \rule{0.4\linewidth}{0.15\linewidth}\par
\par
\vspace{3cm}
%Thesis title
{\uppercase{\Large the title of my thesis project which may span multiple lines\par}}
\vspace{2cm}
%Author's name
{\Large Author\par}
\vspace{5cm}
%Degree
{\Large A thesis submitted for the degree of Doctor of Philosophy\par}
\vspace{2cm}
{\Large Examinor \par}
\vspace{3cm}
%Date
{\Large May 2015}
\end{minipage}
\end{center}
%\clearpage
答案1
这几个\vspace
命令看起来很奇怪,但是,这里有一个解决方案\newgeometry
——随意改变实际间距。
\documentclass[10 pt, a4paper, demo,leqno, oneside]{report}
\usepackage{lscape}
\usepackage{caption}
\usepackage{subfig}
\usepackage[section]{placeins}
\usepackage{listings}
\usepackage{url}
\usepackage{longtable}
\usepackage{multirow}
\usepackage[demo]{graphicx}
\usepackage[table]{xcolor}
\usepackage[tmargin=1cm]{geometry}
\usepackage[swedish, english]{babel}
\usepackage{blindtext}
\begin{document}
\input{titlepage}
\newgeometry{tmargin=2cm}
\blindtext[5]
\end{document}
titlepage.tex
:
\thispagestyle{empty}
\begingroup
\centering
% University logo
\includegraphics[width=0.5\linewidth]{SU_logo.png}%
% \rule{0.4\linewidth}{0.15\linewidth}\par
\vspace{3cm}
%Thesis title
{\MakeUppercase{\Large the title of my thesis project which may span multiple lines}}
\vspace{2cm}
% Author's name
{\Large Author}
\vspace{5cm}
% Degree
{\Large A thesis submitted for the degree of Doctor of Philosophy}
\vspace{2cm}
{\Large Examinor}
\vspace{3cm}
% Date
{\Large May 2015}% % Do not delete the empty line!
\endgroup