章节第一页以外的页面的页码不显示

章节第一页以外的页面的页码不显示

我正在用自己创建的模板撰写硕士论文,除了页码之外,一切似乎都很好。我使用两种不同的格式,罗马数字和阿拉伯数字。问题是,在论文正文中,页码只出现在新章节的第一页。同一章的后续页面没有编号。到目前为止,我写的所有章节都是这种情况。

在序言中,我使用了命令“\pagenumbering{arabic}当我介绍第一章时,我指定从该页开始编号必须是阿拉伯数字,并将计数器设置为 1。计数器工作正常,目录显示页面时也是如此。但是当使用 pdflatex 进行编译时,页码不会显示在每个章节的第一页以外的页面。我在这里复制了我的代码,以便您可以查看。最后你会看到一张图片,说明了我在抱怨什么。

在每个章节的文件中,我什么都没修改。我只是编写章节、小节和文本。

我也尝试过修改页面布局和边距,但这似乎不是问题,因为底部边距为 25 毫米,应该足够大。

我查看了以前的答案、手册和其他教程页面,例如 ShareLaTeX,但我找到的解决方案都无法解决这个问题。实际上,我甚至尝试过不使用阿拉伯数字和计数器,但问题仍然存在。

如果有人能告诉我问题是什么以及如何解决它会非常高兴。

谢谢您的回答。

\documentclass[oneside,11pt,bibtotoc]{report}


    %%%%------------------PREAMBLE----------------%%%%
    %%----------------------------------------------%%

    %%%%%-------------------PACKAGES-----------------%%%%% 

\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{hyperref}
\usepackage[toc,page]{appendix}
\usepackage[final]{pdfpages}
\usepackage{soul}
\usepackage{paralist}    
\usepackage{sectsty}
\sectionfont{\fontsize{14}{15}\selectfont}

\usepackage{tabularx}
\usepackage{booktabs}       %Use this package for making nice tables
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}

\usepackage{array}
\usepackage{caption}
\usepackage{supertabular}
\usepackage{fancyhdr}  %Uncomment it if you want to include headers
\renewcommand{\headrulewidth}{0.0pt}    % Default \headrulewidth is 0.4pt
\renewcommand{\footrulewidth}{0.4pt}    % Default \footrulewidth is 0pt
\usepackage{indentfirst}
\usepackage{setspace}

\graphicspath{{images/}}    %Direction where LaTeX will look for the images.
\DeclareGraphicsExtensions{.pdf,.png,.jpg,.mps}

\usepackage[backend=bibtex,style=ieee,citestyle=numeric-comp]{biblatex}
\addbibresource{references.bib}     %Imports bibliography file

\pagenumbering{arabic}

\captionsetup{font=small}   %required by the style guide, from Scharlemann


    %%%------------------END OF THE PREAMBLE-----------------%%%
    %%--------------------------------------------------------%%

    %------------------------DOCUMENT-----------------------------%

\begin{document}

    %----------------------------FRONT MATTER---------------------%

\input{frontmatter/titlepage}

\input{frontmatter/declaration}

\input{frontmatter/quote}

\pagenumbering{Roman}

\chapter*{Abstract}
    \input{frontmatter/abstract}
    \setcounter{page}{1}

\normalsize

        %%------------------------TABLE OF CONTENTS AND LISTS-------------------%%
        %%----------------------------------------------------------------------%%

\tableofcontents\thispagestyle{fancy}

\chapter*{List of Symbols}
    \addcontentsline{toc}{chapter}{List of Symbols}
    \input{frontmatter/symbols}

\listoffigures \thispagestyle{fancy}
    \addcontentsline{toc}{chapter}{List of Figures}

\listoftables\thispagestyle{fancy}
    \addcontentsline{toc}{chapter}{List of Tables}

        %--------------------BODY OF THE THESIS--------------------------%
        %%--------------------------------------------------------------%%

\cleardoublepage
\begin{singlespacing}  %Sets all the spacing between to 1.5 lines. Requires package {setspace}

\chapter{Introduction}
    \pagenumbering{arabic}
    \setcounter{page}{1}
    \input{chapters/chapter01}

\chapter{Theoretical background}
    \input{chapters/chapter02}

\chapter{Experimental Setup}
    \input{chapters/chapter03}

\chapter{Conclusion}
    \input{chapters/conclusion}

\end{singlespacing}

\end{document}

第 2 章及下一页的示例

此 PDF 是以下代码的输出。这只是我编写其余章节的示例。内容毫无意义。我没有修改章节内的任何页面布局,也没有修改编号。然而,问题仍然存在。

\section{Introduction}

\begin{figure}[h]
    \centering
    \includegraphics[width=0.5\textwidth]{universe}
    \caption{Artistic view of the Milky Way}
    \label{fig:uni}
\end{figure}

\begin{table}
    \begin{center}
    \caption{Random numbers in a table}
    \begin{tabular}{ c c c }
     cell1 & cell2 & cell3 \\ 
     cell4 & cell5 & cell6 \\  
     cell7 & cell8 & cell9    
    \end{tabular}
    \label{table:1}
    \end{center}
\end{table}

\subsection{Lipsum}

In ancient manuscripts, another means to divide sentences in into paragraphs was a line break (newline) followed by an initial at the beginning of the next paragraph. An initial is an oversize capital letter, sometimes outdented beyond the margin of text. This style can be seen, for example, in the original Old English manuscript of Beowulf. Typography, though not commonly.[4] Modern English typography usually indicates a new paragraph by indenting the first line. This style can be seen in the (handwritten). Table \ref{table:2} is an example of referenced \LaTeX elements. United States Constitution from 1787. For additional ornamentation, a hedera leaf or other symbol can be added to the inter-paragraph whitespace, or put in the indentation space.

\begin{table}[ht]
    \centering
    \caption{Table to test captions and labels}
    \begin{tabular}{||c c c c||} 
     \hline
     Col1 & Col2 & Col2 & Col3 \\ [0.5ex] 
    \hline\hline
     1 & 6 & 87837 & 787 \\ 
     2 & 7 & 78 & 5415 \\
     3 & 545 & 778 & 7507 \\
     4 & 545 & 18744 & 7560 \\
     5 & 88 & 788 & 6344 \\ [1ex] 
     \hline
    \end{tabular}
    \label{table:2}
\end{table}

\subsection{Paragraph description}
In ancient manuscripts, another means to divide sentences in into paragraphs was a line break (newline) followed by an initial at the beginning of the next paragraph \cite{jahn1996physics}. An initial is an oversize capital letter, sometimes outdented beyond the margin of text. This style can be seen, for example, in the original Old English manuscript of Beowulf. Outdenting is still used in English typography, though not commonly.[4] Modern English typography usually indicates a new paragraph by indenting the first line. This style can be seen in the (handwritten) United States Constitution from 1787. For additional ornamentation, a hedera leaf or other symbol can be added to the inter-paragraph whitespace, or put in the indentation space.

Cum vitae nulla scelerisque nulla erat ullamcorper id id at placerat volutpat hac vestibulum interdum posuere imperdiet a parturient ullamcorper risus sit montes. Amet ut himenaeos dapibus volutpat feugiat luctus consequat magna netus eu mi congue accumsan a dui a pulvinar. Porta a cubilia nisi arcu a class egestas fermentum consectetur magna venenatis et ullamcorper dolor habitant malesuada porta scelerisque ac sed platea a. Blandit mus mi imperdiet augue condimentum fames blandit feugiat eros nisi blandit scelerisque ut cum imperdiet auctor adipiscing pretium adipiscing vel consequat curae primis malesuada dignissim. Penatibus consequat mi ullamcorper platea senectus leo suspendisse a nulla nibh gravida scelerisque ac convallis platea neque at vestibulum vel. 

Elit nisi in nec consequat placerat euismod per mus nullam aliquam a in at ad lobortis netus tellus pharetra sociis ante adipiscing aliquam a. Gravida parturient nullam blandit scelerisque at dapibus eleifend convallis ad dolor natoque eget turpis rutrum non parturient in nibh aenean. Molestie adipiscing platea odio curabitur ullamcorper nisi ad dui vitae parturient ornare turpis odio eu vitae condimentum porta morbi vestibulum pharetra nullam. Tempor a quisque vestibulum at pretium ullamcorper vestibulum habitasse inceptos nascetur lacus sodales bibendum montes imperdiet ullamcorper a lorem eu netus. Leo adipiscing hendrerit leo scelerisque lectus laoreet vivamus a a mi placerat aliquam cursus nisi in a parturient consectetur vestibulum proin sagittis a consectetur elementum. 

Condimentum parturient nisl nullam ullamcorper vel ullamcorper sagittis parturient a dis a commodo nisl habitasse parturient proin. Mus suspendisse amet aliquet ornare ut elementum parturient eu lorem sodales fames vestibulum eu consectetur duis consectetur. Nunc ad suspendisse sagittis per quam lobortis hac fringilla proin ullamcorper vestibulum ullamcorper in torquent ac suspendisse sagittis sodales parturient torquent arcu inceptos penatibus. Aliquet ante sem ante gravida venenatis a suspendisse metus sem quis porttitor a parturient convallis vestibulum condimentum sed. Suspendisse condimentum nunc conubia duis a venenatis scelerisque ad vehicula mi habitant nec ad senectus bibendum malesuada a natoque a fringilla. Ultricies massa a ac penatibus nec a porttitor parturient consequat leo erat luctus magnis suscipit vestibulum a. 

A himenaeos turpis consectetur a platea id velit nisl dui justo fringilla semper tristique parturient. Vehicula ante aliquam quisque at suspendisse habitant a facilisi interdum sociosqu a feugiat aenean habitasse nostra ut. A arcu tristique duis parturient suspendisse donec mi ac mus venenatis in ullamcorper tristique massa lacus eget parturient torquent est rutrum vitae a. 

Vestibulum parturient litora pharetra cursus a duis adipiscing pulvinar at a pulvinar sed a condimentum per erat adipiscing ullamcorper condimentum augue ad euismod aenean enim dignissim dictum. A leo lacus tellus elit non vulputate hac a massa condimentum sed dis platea scelerisque. Parturient pharetra morbi quis vestibulum maecenas penatibus hac id nam leo consectetur turpis maecenas adipiscing suspendisse a lacus leo tincidunt parturient eu accumsan phasellus curae. Est habitasse adipiscing est ridiculus porttitor nostra at faucibus vestibulum luctus lacus vestibulum nisl cursus duis. Ullamcorper blandit platea fringilla et ullamcorper suspendisse dignissim in vel adipiscing parturient nisi volutpat a arcu curabitur eget tempor natoque nec rhoncus a. Fames fringilla suspendisse ac leo suscipit condimentum a a sed pulvinar scelerisque nostra adipiscing egestas. 

Hac potenti etiam porta vestibulum consectetur mus feugiat a parturient cum mi adipiscing parturient duis. A ipsum inceptos ad mollis nibh mauris parturient convallis augue parturient et malesuada a eros augue interdum sed proin himenaeos egestas ante ipsum id magna adipiscing a a. Ligula tellus consectetur a a ultricies class condimentum justo in rutrum orci nascetur sociosqu augue tempor habitant in. Fusce integer adipiscing integer scelerisque aliquet consectetur nam a magna ullamcorper a primis orci hac aenean lobortis a donec ac aptent nunc dapibus class adipiscing pulvinar nulla duis imperdiet. Arcu bibendum ac vehicula mollis condimentum ullamcorper mauris ac maecenas tempus a porta condimentum maecenas suscipit volutpat est tincidunt libero ut laoreet posuere dis. Mus ultricies pharetra suspendisse sem tempus interdum volutpat a ornare id et placerat venenatis rutrum ullamcorper habitant placerat vestibulum in.

相关内容