I have a problem concerning the list of figures and list of tables. When I place
\listoffigures
and \listoftables
after the \tableofcontents
the tables and figures won't appear. Nevertheless, when I place the \listoffigures
and \listoftables
first, the figures and tables appear. Is there anyway to solve this? Here is my code:Code: Select all
\documentclass[11pt,a4paper,oneside,notitlepage]{book}
\usepackage[english]{babel}
\usepackage{gensymb}
\usepackage{amsmath}
\usepackage{tabto}
\newenvironment{Arial}{\fontfamily{phv}\selectfont}{\par}
\usepackage{xr}
\usepackage{titlesec}
\makeatletter
\newcommand*{\addFileDependency}[1]{% argument=file name and extension
\typeout{(#1)}
\@addtofilelist{#1}
\IfFileExists{#1}{}{\typeout{No file #1.}}
}
\makeatother
\newcommand*{\myexternaldocument}[1]{%
\externaldocument{#1}%
\addFileDependency{#1.tex}%
\addFileDependency{#1.aux}%
}
\usepackage{subfiles}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{graphicx,caption}
\usepackage[colorlinks]{hyperref}
\hypersetup{citecolor = black}
\graphicspath{{Images/}}
\usepackage{gensymb}
\usepackage{subcaption}
\usepackage[
backend=biber,
style=apa,
citestyle=authoryear
]{biblatex}
%for the references at the end
\usepackage{csquotes}
\addbibresource{referenties.bib}
\usepackage[toc,page]{appendix}
\titlespacing{\section}{0pt}{2.5em}{2em}
\titlespacing{\subsection}{0pt}{2em}{1.5em}
\begin{document}
\pagestyle{empty}
\subfile{begin/overzicht}
\frontmatter
\tableofcontents
\newpage
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\newpage
\pagestyle{plain}
\mainmatter
\subfile{sections/chapter1}
\subfile{sections/chapter2}
\subfile{sections/chapter3}
\subfile{sections/chapter4}
\subfile{sections/chapter5}
\subfile{sections/chapter6}
\subfile{sections/Appendix}
\printbibliography
\backmatter
\null\newpage
\end{document}