Generaltable of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Hwarang3001
Posts: 5
Joined: Sat Dec 23, 2023 11:55 pm

table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

Post by Hwarang3001 »

Hi, i am almost done with my thesis but my table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'. Can someone please help me. I think it might have something to do with the command \subfigure.

Thanks you in advance!

My main code is:

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,oneside]{report} %openright
\input{Setup/Statics.tex}
\input{Setup/Preamble.tex}
\input{Setup/Settings.tex}
% change number for line spacing
\renewcommand{\baselinestretch}{1.25}
\begin{document}
\pagenumbering{roman}
\input{Frontmatter/Frontpage.tex}
\pagecolor{white}
\newgeometry{top=2.75cm, bottom=2.75cm, outer=2.5cm, inner=2.5cm}
\pagestyle{empty}
\cleardoublepage
\input{Frontmatter/Copyright.tex}
\clearpage
\pagestyle{main}
\input{Frontmatter/Approval.tex}
\clearpage
\input{Frontmatter/Abstract.tex}
\clearpage
\input{Frontmatter/Sammenfatning.tex}
\clearpage
\input{Frontmatter/Acknowledgements.tex}
\clearpage
\tableofcontents
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE HEADING
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\fancyhead[R]{National Department Aquatic Resources}
\fancyhead[L]{\chaptername\ \thechapter\ --\ \leftmark}
\renewcommand{\headrulewidth}{0.4pt}
\pagenumbering{arabic}
\input{Chapters/00_Abbreviation}
\cleardoublepage
\input{Chapters/01_Introduction}
\cleardoublepage
\input{Chapters/02_Theory}
\cleardoublepage
\input{Chapters/03_Method}
\cleardoublepage
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
My settings are:

Code: Select all

Code, edit and compile here:
% Colours!
\newcommand{\targetcolourmodel}{cmyk} % rgb for a digital version, cmyk for a printed version. Only use lowercase
\selectcolormodel{\targetcolourmodel}
% Define colours from https://www.designguide.dtu.dk/
\definecolor{dtured} {rgb/cmyk}{0.6,0,0 / 0,0.91,0.72,0.23}
\definecolor{blue} {rgb/cmyk}{0.1843,0.2431,0.9176 / 0.88,0.76,0,0}
\definecolor{brightgreen}{rgb/cmyk}{0.1216,0.8157,0.5098 / 0.69,0,0.66,0}
\definecolor{navyblue} {rgb/cmyk}{0.0118,0.0588,0.3098 / 1,0.9,0,0.6}
\definecolor{yellow} {rgb/cmyk}{0.9647,0.8157,0.3019 / 0.05,0.17,0.82,0}
\definecolor{orange} {rgb/cmyk}{0.9882,0.4627,0.2039 / 0,0.65,0.86,0}
\definecolor{pink} {rgb/cmyk}{0.9686,0.7333,0.6941 / 0,0.35,0.26,0}
\definecolor{grey} {rgb/cmyk}{0.8549,0.8549,0.8549 / 0,0,0,0.2}
\definecolor{red} {rgb/cmyk}{0.9098,0.2471,0.2824 / 0,0.86,0.65,0}
\definecolor{green} {rgb/cmyk}{0,0.5333,0.2078 / 0.89,0.05,1,0.17}
\definecolor{purple} {rgb/cmyk}{0.4745,0.1373,0.5569 / 0.67,0.96,0,0}
\definecolor{Aquamarine}{rgb/cmyk}{127,255,212 / 0.5,0,0.17,0}
\definecolor{beaublue}{rgb}{0.74, 0.83, 0.9}
\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}
\newcommand{\dtulogocolour}{white} % Colour of the DTU logo: white, black or dtured
\newcommand{\frontpagetextcolour}{white} % front page text colour: white or black
\colorlet{frontbackcolor}{babyblueeyes} % Set the background colour of the front- and back page. Choose the colour so it matches the main colour of front page picture
% DTU colours for diagrams
% You might want to make the front/back page background colour the first colour in the plot cycle list.
\pgfplotscreateplotcyclelist{DTU}{%
dtured, fill=dtured, \\%
blue, fill=blue, \\%
brightgreen, fill=brightgreen \\%
navyblue, fill=navyblue \\%
yellow, fill=yellow \\%
orange, fill=orange \\%
grey, fill=grey \\%
red, fill=red \\%
green, fill=green \\%
purple, fill=purple \\%
}
% Font
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by Stefan Kottwitz on Thu Jan 04, 2024 6:49 pm, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

Post by Stefan Kottwitz »

Were you able to solve the issue, or do you still need help? If yes, can you post the .log file here as an attachment? The attachment link is below the text edit field when writing a post.

Stefan
LaTeX.org admin
Hwarang3001
Posts: 5
Joined: Sat Dec 23, 2023 11:55 pm

table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

Post by Hwarang3001 »

Hi again, no i stille have the same problem. i have attached the entire .loc file down below.

Best regards
Attachments
BSc Thesis latex source.zip
(53.44 KiB) Downloaded 440 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

Post by Stefan Kottwitz »

Hi, that's a zip file, not a .log file, and there's no .log file in it.

There are errors in it (the \thesissubtitle command is undefined, for example); at the end, there is some error, and it stops. Perhaps because \end{lstlisting} is missing at the end of the Appendix.tex file. Add it and try again.

I get a table of contents after I did it:
contents.png
contents.png (113.88 KiB) Viewed 48874 times
Stefan
LaTeX.org admin
Hwarang3001
Posts: 5
Joined: Sat Dec 23, 2023 11:55 pm

table of contents suddenly went blank and isnt showing any of my section and only the header 'Contents'

Post by Hwarang3001 »

IT WORKED!!!!! Thank you so much!
Post Reply