Page Layout ⇒ table of content,figure, and table are all gone
-
- Posts: 43
- Joined: Wed Oct 27, 2010 10:25 pm
table of content,figure, and table are all gone
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
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
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?
-
- Posts: 43
- Joined: Wed Oct 27, 2010 10:25 pm
table of content,figure, and table are all gone
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}
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 (66.15 KiB) Viewed 9760 times
-
- ssh_eof.png (118.65 KiB) Viewed 9760 times
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
table of content,figure, and table are all gone
- removing
\usepackage{hyperref,url}
- and adding
\usepackage{hyperref}
at the end of your preamble.
Stefan
-
- Posts: 43
- Joined: Wed Oct 27, 2010 10:25 pm
table of content,figure, and table are all gone
Code: Select all
\usepackage{hyperref}
Code: Select all
\begin{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
Re: table of content,figure, and table are all gone
Stefan
-
- Posts: 43
- Joined: Wed Oct 27, 2010 10:25 pm
Re: table of content,figure, and table are all gone
Thanks in advance
- Attachments
-
- main.log
- (28.36 KiB) Downloaded 500 times
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
table of content,figure, and table are all gone
\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
-
- Posts: 43
- Joined: Wed Oct 27, 2010 10:25 pm
Re: table of content,figure, and table are all gone
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 498 times
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
Re: table of content,figure, and table are all gone
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