Page Layouttable of content,figure, and table are all gone

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

table of content,figure, and table are all gone

Post by ahmedlasheen »

Hello
I am using Latex template from http://www.latextemplates.com/template/ ... ral-thesis for my thesis, while i am working, I found suddenly that the list of table , list of figure, list of table are all disappeared. I don't know exactly what kind of change that cause such behavior, any suggestion or ideas to now what cause that or solve the problem.

thanks in advance

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

table of content,figure, and table are all gone

Post by Johannes_B »

You are not the first user coming here with problems with a template. There is a reason for that, most templates are bad, really bad. With this one, there are several issues as well which are not considered good (or even standard) style.

My advice to you would be to get youself an introduction, invest 2 or 3 days in reading and start with a modern, flexible and customizable class like scrreprt.

Back to your problem: Impossible to say, i am not psychic ;-)
You might have commented these commands out or deleted them by accident. Can you prepare a minimal working example to show us?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

table of content,figure, and table are all gone

Post by ahmedlasheen »

Thanks a lot for you answer, I work with you advise and I build something fast my own. Actually, I don't won't more surprises in the future with template.

I build somehow minimal working example, and during building that one I discovered the problem. If I remove the image included, the TOC, LOF appears or If if removed the following three lines

Code: Select all

\usepackage[square,  comma, sort&compress]{natbib} 
\usepackage{hyperref,url}
\hypersetup{urlcolor=blue, colorlinks=true,citecolor=blue} 
Any solution

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage{geometry}
\usepackage[square,  comma, sort&compress]{natbib} 
\usepackage{hyperref,url}
\hypersetup{urlcolor=blue, colorlinks=true,citecolor=blue} 
\usepackage{amsmath,amsthm,amssymb,amsfonts,delarray}
\usepackage{fancybox,framed,multicol,listings}
\usepackage{graphicx,geometry,rotating,wrapfig,float,subfig}

\begin{document}
\title{My thesis work title}
\maketitle
\tableofcontents % Write out the Table of Contents
\listoffigures

\chapter{My First Chapter} % 
\label{Chapter1} 
\section{Indian Ocean Dipole}
Strong anti-cyclone south of Sumatra island strengthen by the influence of southeasterly wind at Java and easterly wind in TIO can transfer momentum to southern TIO forcing downwelling rossby wave which moves westward deepening the thermocline leading to warming in the western IO so strengthening the IOD
\begin{figure}[H]
\centering
\subfloat[EOF1 for SSH from \cite{Vinayachandran2009}]{\label{eof_ssh} \includegraphics[scale=0.35]{ssh_eof.png}}
\subfloat[propagating kelvin and Rossby wave \cite{Vinayachandran2009}]{\label{propagating kelvin and Rossby wave \cite{Vinayachandran2009}} \includegraphics[scale=0.5]{rossbykelvin.png}}
\end{figure}.

\end{document}
Attachments
rossbykelvin.png
rossbykelvin.png (66.15 KiB) Viewed 9750 times
ssh_eof.png
ssh_eof.png (118.65 KiB) Viewed 9750 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

table of content,figure, and table are all gone

Post by Stefan Kottwitz »

hyperref interferes with other packages for hyperlinking. So it should be loaded at last, with exceptions. Don't load url in addition. So, try
  • removing \usepackage{hyperref,url}
  • and adding \usepackage{hyperref} at the end of your preamble.
In case of any remaining problem, please post your .log file as attachment.

Stefan
LaTeX.org admin
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

table of content,figure, and table are all gone

Post by ahmedlasheen »

Thanks for your answer, I add

Code: Select all

\usepackage{hyperref}
just before the

Code: Select all

\begin{document}
and it didnot work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: table of content,figure, and table are all gone

Post by Stefan Kottwitz »

So you could post your .log file as said, to check for errors and warnings.

Stefan
LaTeX.org admin
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Re: table of content,figure, and table are all gone

Post by ahmedlasheen »

Ok, I attached the log.
Thanks in advance
Attachments
main.log
(28.36 KiB) Downloaded 500 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

table of content,figure, and table are all gone

Post by Stefan Kottwitz »

Move also the \hypersetup command, after loading hyperref. Remove the .toc, .lof and .lot files, and compile two times to recreate all. How is it then? Again, if it's not working, post the new .log file again.

Stefan
LaTeX.org admin
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Re: table of content,figure, and table are all gone

Post by ahmedlasheen »

Thanks
when I compile it twice, the table of content appears, but when I recompile it for the third time, the table of content disappear, and in all case the list of figures is not exist.
I have attached the log file after compilation #3, in which the table of content disappear.
Thanks in advance
Attachments
main.log
(27.89 KiB) Downloaded 497 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: table of content,figure, and table are all gone

Post by Stefan Kottwitz »

There are still errors, you can see if you read the .log file.

We can help fixing for sure, we just need to see the code which produces the error. Can you post a reduced example, which still is relevant and shows the problem? I.e. a copy where irrelevant content is removed, but the same problem still occurs.

Stefan
LaTeX.org admin
Post Reply