为什么我的页码排在标题页之后的第二页?

为什么我的页码排在标题页之后的第二页?

它不应该是第一页吗?我使用的是 titlepage 环境,应该可以这样。但是,它显示为第二页。是的,这是我下载的模板。任何帮助我都会很感激!

\documentclass[12pt, twoside]{article}

\usepackage[margin=1in] {geometry} %1 inch margin on all sides
 %\usepackage{setspace} %Allows changing line spacing

\begin{document}

    \begin{titlepage}

    \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command     for the horizontal lines, change thickness here

    \begin{center} % Center everything on the page

%----------------------------------------------------------------------------------------
%   HEADING SECTIONS
%----------------------------------------------------------------------------------------
    \textsc{\LARGE Lebanon High School}\\[1.5cm] % Name of your   university/college
    \textsc{\Large Global Issues Since The Fall Of The Wall}\\[0.5cm] % Major heading such as course name
    %\textsc{\large Minor Heading}\\[0.5cm] % Minor heading such as course title

%----------------------------------------------------------------------------------------
%   TITLE SECTION
%----------------------------------------------------------------------------------------

    \HRule \\[0.4cm]
    {\huge \bfseries Venice: Soon To Be Atlantis?}\\[0.4cm] % Title of your document
    \HRule \\[1.5cm]

%----------------------------------------------------------------------------------------
%   AUTHOR SECTION
%----------------------------------------------------------------------------------------

        \begin{minipage}{0.4\textwidth}
            \begin{flushleft} \large
            \emph{Author:}\\
            sadf \textsc{asdf} % Your name
            \end{flushleft}
        \end{minipage}
        ~
        \begin{minipage}{0.4\textwidth}
            \begin{flushright} \large
            \emph{Supervisor:} \\
            asdf \textsc{asdf} % Supervisor's Name
            \end{flushright}
        \end{minipage}\\[4cm]

% If you don't want a supervisor, uncomment the two lines below and remove the section above
%\Large \emph{Author:}\\
%John \textsc{Smith}\\[3cm] % Your name

%----------------------------------------------------------------------------------------
%   DATE SECTION
%----------------------------------------------------------------------------------------
    {\large \today}\\[3cm] % Date, change the \today to a set date if you want to be precise

%----------------------------------------------------------------------------------------
%   LOGO SECTION
%----------------------------------------------------------------------------------------

%\includegraphics{Logo}\\[1cm] % Include a department/university logo - this will require the graphicx package

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

    \vfill % Fill the rest of the page with whitespace
    \end{center}
    \end{titlepage}


 \input{Introduction} %Add in introuction file

\end{document}

答案1

在您的示例中,标题页是 1。

若要在标题页后以 1 开始页码编号,请在内容之前添加以下内容\input

\pagenumbering{arabic}

支持的参数有:

  • 阿拉伯:阿拉伯数字
  • 罗马:小写罗马数字
  • 罗马:大写罗马数字
  • 阿尔法: 小写字母
  • 阿尔夫: 大写字母

文档中可以有多种编号样式。例如,首页(包含摘要和目录)可以使用小写罗马数字,而文档的其余部分可以使用阿拉伯页码。

\documentclass[12pt, twoside]{article}

\usepackage[margin=1in] {geometry} %1 inch margin on all sides
 %\usepackage{setspace} %Allows changing line spacing

\usepackage{blindtext}
\usepackage{showframe} % Draw a page-layout diagram

\begin{document}

    \begin{titlepage}

    \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command     for the horizontal lines, change thickness here

    \begin{center} % Center everything on the page

%----------------------------------------------------------------------------------------
%   HEADING SECTIONS
%----------------------------------------------------------------------------------------
    \textsc{\LARGE Lebanon High School}\\[1.5cm] % Name of your   university/college
    \textsc{\Large Global Issues Since The Fall Of The Wall}\\[0.5cm] % Major heading such as course name
    %\textsc{\large Minor Heading}\\[0.5cm] % Minor heading such as course title

%----------------------------------------------------------------------------------------
%   TITLE SECTION
%----------------------------------------------------------------------------------------

    \HRule \\[0.4cm]
    {\huge \bfseries Venice: Soon To Be Atlantis?}\\[0.4cm] % Title of your document
    \HRule \\[1.5cm]

%----------------------------------------------------------------------------------------
%   AUTHOR SECTION
%----------------------------------------------------------------------------------------

        \begin{minipage}{0.4\textwidth}
            \begin{flushleft} \large
            \emph{Author:}\\
            sadf \textsc{asdf} % Your name
            \end{flushleft}
        \end{minipage}
        ~
        \begin{minipage}{0.4\textwidth}
            \begin{flushright} \large
            \emph{Supervisor:} \\
            asdf \textsc{asdf} % Supervisor's Name
            \end{flushright}
        \end{minipage}\\[4cm]

% If you don't want a supervisor, uncomment the two lines below and remove the section above
%\Large \emph{Author:}\\
%John \textsc{Smith}\\[3cm] % Your name

%----------------------------------------------------------------------------------------
%   DATE SECTION
%----------------------------------------------------------------------------------------
    {\large \today}\\[3cm] % Date, change the \today to a set date if you want to be precise

%----------------------------------------------------------------------------------------
%   LOGO SECTION
%----------------------------------------------------------------------------------------

%\includegraphics{Logo}\\[1cm] % Include a department/university logo - this will require the graphicx package

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

    \vfill % Fill the rest of the page with whitespace
    \end{center}
    \end{titlepage}
    \thispagestyle{empty} % no page numbers

    \cleardoublepage
    \pagenumbering{roman} % page numbering: lowercase roman
    \tableofcontents

    \begin{abstract}    
        \blindtext[3]
    \end{abstract}

% \input{Introduction} %Add in introuction file
    \cleardoublepage
    \pagenumbering{arabic} % page numbering: arabic
    \Blinddocument

\end{document}

相关内容