页面计数器在每个包含的文件处重置

页面计数器在每个包含的文件处重置

我正在写一篇论文,它由 4 个独立的文档组成,这些文档合并到不同章节的主文档中,\input。为此,我使用独立包。问题是,页面和目录中的每个章节/输入的页码都从 1 重新开始。知道如何修复这个问题吗?主文档如下所示:

\documentclass[12pt,a4paper,oneside]{book}
\usepackage[top=1in,bottom=1.5in,left=1in,right=1in]{geometry}
\usepackage{standalone}% Need standalone package

\usepackage{lipsum}
\newcommand\abstractname{Abstract}  %%% here
\makeatletter
\if@titlepage
\newenvironment{abstract}{%
    \titlepage
    \null\vfil
    \@beginparpenalty\@lowpenalty
    \begin{center}%
        \bfseries \abstractname
        \@endparpenalty\@M
    \end{center}}%
    {\par\vfil\null\endtitlepage}
    \else
    \newenvironment{abstract}{%
        \if@twocolumn
        \section*{\abstractname}%
        \else
        \small
        \begin{center}%
            {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
        \end{center}%
        \quotation
        \fi}
    {\if@twocolumn\else\endquotation\fi}
    \fi
    \makeatother

\usepackage{natbib}
\bibliographystyle{agsm}
\usepackage[perpage]{footmisc}
\usepackage{bigints}
\usepackage{hyperref}
\usepackage{verbatim}
\usepackage{natbib}
\usepackage{amssymb,amsmath}
\usepackage{setspace} 
\usepackage{float}
\usepackage{multirow}
\usepackage{ragged2e}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[table]{xcolor}
\usepackage{booktabs}
\usepackage{authblk}

\hypersetup{
    colorlinks,
    citecolor=black,
    linkcolor=black
}

\title{Title}


\begin{document}
    \maketitle  
\tableofcontents


\chapter*{Non-Technical Summary}
\markboth{Non-Technical Summary}{Non-Technical Summary}
\addcontentsline{toc}{chapter}{Non-Technical Summary}  
\addcontentsline{toc}{section}{1}  
\addcontentsline{toc}{section}{2} 
\addcontentsline{toc}{section}{3} 

\input{Summary.tex}

\chapter{1}
\input{"1"}

\chapter{2}
\input{"2"}

\chapter{3}
\input{"3"}

\bibliography{bibl}


\end{document}

编辑:“Summary.tex”如下,其他文件具有类似的结构:

\documentclass[12pt,a4paper]{article}
\usepackage[top=1in,bottom=1.5in,left=1in,right=1in]{geometry}

\usepackage{natbib}
\bibliographystyle{agsm}

\usepackage{titlesec}

\titleformat{\section}
{\normalfont\fontsize{15}{15}\bfseries}{\thesection}{1em}{}

\renewcommand{\thesection}{\Roman{section}} 

\usepackage{bigints}
\usepackage{hyperref}
\usepackage{verbatim}
\usepackage{amssymb,amsmath}
\usepackage{setspace} 
\usepackage{float}
\usepackage{multirow}
\usepackage{ragged2e}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[table]{xcolor}
\usepackage{booktabs}
\usepackage{authblk}

\hypersetup{
    colorlinks,
    citecolor=black,
    linkcolor=black
}

\title{T}

\begin{document}
    \maketitle
    \newpage
    \section*{Abstract}
    \newpage
    \section*{A}
    \newpage
    \section{B}
\end{document}

相关内容