![在包含多个文件的文档中重新开始编号](https://linux22.com/image/439541/%E5%9C%A8%E5%8C%85%E5%90%AB%E5%A4%9A%E4%B8%AA%E6%96%87%E4%BB%B6%E7%9A%84%E6%96%87%E6%A1%A3%E4%B8%AD%E9%87%8D%E6%96%B0%E5%BC%80%E5%A7%8B%E7%BC%96%E5%8F%B7.png)
我正在为我的论文处理一个包含多个文件的文档。每个文件的页码和脚注编号都从 1 重新开始。除了手动重置之外,有没有其他方法可以让页码和引文在文件中继续显示?
主文件的 MWE:
\documentclass[12pt,a4paper]{report}
\usepackage{scrextend}
%%%%language settings%%%%%%%%
\usepackage{xltxtra}
\usepackage{polyglossia}
\setmainlanguage[spelling=new,babelshorthands=true]{german}
%\usepackage{fancyhdr}
%%%%Fonts%%%%%%%
\usepackage{fontspec}
\usepackage{lmodern}\setmainfont[SmallCapsFont={Linux Libertine O C}]{Linux Libertine O}
%%%%%%%pagesetup%%%%%%%%%
%\usepackage{parskip}
\linespread{1.3}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
%\setlength\parindent{8pt}
%%set space between main text and footnote ruler
\setlength{\skip\footins}{6mm} %<------------ add this
\def\footnoterule{
\kern-3mm \hrule width 2in \kern -.4pt
\kern 3mm}
%%%no paragraph break %%
%\widowpenalties 1 10000
%\raggedbottom
%%noindent for footnotes%%
%searching .....
\usepackage[flushmargin,hang]{footmisc}
%%%%biblatex%%%%%%
\usepackage{csquotes}
\MakeAutoQuote{»}{«}
\usepackage[backend=biber,notes, isbn=false,doi=false]{biblatex-chicago}
\addbibresource{literatur/Doktorarbeit.bib}
%%%Bookmarks%%%%
\usepackage[hidelinks,colorlinks=false,linkcolor=false,urlcolor=false,bookmarksopen=true]{hyperref}
\usepackage{bookmark}
\usepackage{multicol}
%%%%%%%%%%%%%%%%%
%footnote margin%
\usepackage{xpatch}
\deffootnote[0em]{0em}{0em}{\textsuperscript{\thefootnotemark}\,}
\makeatletter
\if@titlepage\else
\xpretocmd{\@maketitle}
{\deffootnote[0em]{0em}{0em}{\textsuperscript{\thefootnotemark}\,}}
{}{\PatchFailed}
\fi
\makeatother
%%%%%%%%%%%%%%%%%
%toc bibliography&&
%grafics%%
%\usepackage{color}
%\usepackage{transparent}
%\graphicspath{{grafik/}}
%increase toc depth&
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\usepackage{subfiles}
\begin{document}
\input{titelblatt/title.tex}
\tableofcontents
\include{einleitung/einleitung}
\include{kap1/kap1}
\clearpage
\printbibliography[heading=bibintoc]
\end{document}
答案1
脚注的编号是根据评论中@daleif 的建议解决的(添加\counterwithout{footnote} {chapter}
到序言中),页码的问题在于我,因为我\pagenumbering{arabic}
在每个文件的开头都使用了命令。