页码被标题页打乱

页码被标题页打乱

我正在写硕士论文,必须使用预定义的标题页,但我认为它会阻止第一页的页码。我试过了

\thispagestyle{plain}

\setcounter{page}{1}

但它不起作用。有人能帮我解决这个问题吗?

这是我的代码:

\documentclass[11pt,a4paper]{report}    
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[pdftex]{graphicx}
\usepackage{color}
\definecolor{UCLblue}{cmyk}{1.00,0.68,0.00,0.54}
\definecolor{EPLblue}{cmyk}{0.70,0.30,0.00,0.00}
\usepackage[top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent

\begin{document}
%% Title page
\begin{titlepage}
\newgeometry{top=1.25cm,bottom=1.25cm,left=1.25cm,right=1.25cm}
\begin{center}
    \includegraphics[scale=1]{EPL_TFEbanner.jpg}
\end{center}
\vspace{9pt}
\begin{flushright}
    \color{UCLblue} \fontfamily{phv} \selectfont
    {\huge title} \\
    \vspace{12pt}
    \large Dissertation presented by \\
    \textbf{nameone}
    \textbf{, nametwo}  
    \\
    \vspace{12pt} 
    for obtaining the Master's degree in \\
    \textbf{speciality} \\
    \vspace{12pt}
    Supervisor(s)\\
    \textbf{supervisor} 
    \textbf{, cosupervisor}     % Uncomment if necessary
    \\
    \vspace{12pt}
    Reader(s) \\
    \textbf{readerone, readertwo}
    \\
    \vspace{12pt}
    Academic year years \\
\end{flushright}
\vspace{9pt}
\color{EPLblue}{\rule{18.5cm}{8.25cm}}
\end{titlepage}

%% Dissertation
\chapter{Aerodynamics}
lala

% Back cover page
\newpage
\thispagestyle{empty}       % To suppress header and footer on the back of the cover page
\newgeometry{top=1.25cm,bottom=1.25cm,left=1.25cm,right=1.25cm}
\vspace*{17.75cm}
\noindent \footnotesize \color{UCLblue} \fontfamily{phv} \selectfont Rue Archim\`{e}de, 1 bte L6.11.01, 1348 Louvain-la-Neuve ~ ~ \color{EPLblue} \textbf{www.uclouvain.be/epl} \\
%\vspace*{6pt}
\color{EPLblue}{\rule{18.5cm}{8.25cm}}

\end{document}

要进行编译,您需要使用这个图片

答案1

只需\restoregeometry在`titlepage后添加:

\documentclass[11pt,a4paper, openright]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{color}
\definecolor{UCLblue}{cmyk}{1.00,0.68,0.00,0.54}
\definecolor{EPLblue}{cmyk}{0.70,0.30,0.00,0.00}
\usepackage[top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{lipsum}

\begin{document}
%% Title page
\begin{titlepage}
\newgeometry{top=1.25cm,bottom=1.25cm,left=1.25cm,right=1.25cm}
\begin{center}
 \includegraphics[scale=1]{EPL_TFE2.jpg}
\end{center}
\vspace{9pt}
\begin{flushright}
 \color{UCLblue} \fontfamily{phv} \selectfont
 {\huge title} \\
 \vspace{12pt}
 \large Dissertation presented by \\
 \textbf{nameone}
 \textbf{, nametwo}
 \\
 \vspace{12pt}
 for obtaining the Master's degree in \\
 \textbf{speciality} \\
 \vspace{12pt}
 Supervisor(s)\\
 \textbf{supervisor}
 \textbf{, cosupervisor} % Uncomment if necessary
 \\
 \vspace{12pt}
 Reader(s) \\
 \textbf{readerone, readertwo}
 \\
 \vspace{12pt}
 Academic year years \\
\end{flushright}
\vspace{9pt}
\color{EPLblue}{\rule{18.5cm}{8.25cm}}
\end{titlepage}

\restoregeometry
\chapter{Aerodynamics}
lala

% Back cover page
\newpage
\thispagestyle{empty} % To suppress header and footer on the back of the cover page
\newgeometry{top=1.25cm,bottom=1.25cm,left=1.25cm,right=1.25cm}
\vspace*{17.75cm}
\noindent \footnotesize \color{UCLblue} \fontfamily{phv} \selectfont Rue Archim\`{e}de, 1 bte L6.11.01, 1348 Louvain-la-Neuve ~ ~ \color{EPLblue} \textbf{www.uclouvain.be/epl} \\
%\vspace*{6pt}
\color{EPLblue}{\rule{18.5cm}{8.25cm}}

\end{document} 

在此处输入图片描述

相关内容