0

I am working on a document with multiple files for my thesis. With each file the page and footnotes numbering restarts from 1. Is there a way to make the numbering of pages and citation continue over the files other than resetting it manually.

MWE for the main file:

\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}
8
  • 1
    I'm guessing each "file" here is started with a chapter command. Then that's the one resetting. On modern latex you could use \counterwithout{footnote} {chapter} which removes footnote from being reset by a new chapter
    – daleif
    Commented Sep 16, 2021 at 14:03
  • @daleif Where does this command belong? in each file or in the preamble? And How about the page numbers? Commented Sep 16, 2021 at 15:02
  • 1
    In the preamble. Did not notice the page number question. You should probably make a complete example, we don't know what is in the included files
    – daleif
    Commented Sep 16, 2021 at 15:04
  • 1
    I would like to know what caused the issue with the page numbers. Not sure if subfiles is doing something it shouldn't , but we do not know as we cannot test the code
    – daleif
    Commented Sep 16, 2021 at 15:19
  • 1
    Now you know why we insist on these complete examples. Would have found that immediately
    – daleif
    Commented Sep 16, 2021 at 15:37

1 Answer 1

0

The numbering of the footnote was solved with the suggestion of @daleif in the comments, (adding \counterwithout{footnote} {chapter} to the preamble) the problem with the page numbering is on me, as I used the command \pagenumbering{arabic} in the start of each file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .