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).
User avatar
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 »

Since i have made some comments on the code your provided previously:

Code: Select all

\documentclass[11pt]{scrreprt}%JB: using a flexible class
%\usepackage{geometry}%JB: Only use it if really needed
\usepackage[square,  comma, sort&compress]{natbib}
%\usepackage{amsmath}
%\usepackage{amsthm}
%\usepackage{amssymb}
%\usepackage{amsfonts}
\usepackage{mathtools}%JB
%\usepackage{delarray}
%\usepackage{fancybox}
%\usepackage{framed}
%\usepackage{multicol}
%\usepackage{listings}
\usepackage{graphicx}
%\usepackage{geometry}%be careful, do not load packages twice
%\usepackage{rotating}
%\usepackage{wrapfig}
%\usepackage{float}
\usepackage{subfig}
\captionsetup{lofdepth=2}
%JB: if you want the subsections in the lof
\usepackage{hyperref}
\hypersetup{urlcolor=blue, colorlinks=true,citecolor=blue}

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

\chapter{My First Chapter} %
%\label{Chapter1}%JB: Your labels should be some kond of mnemonic
%JB: A number might change
\label{chap:basics}%JB <- for example
\section{Indian Ocean Dipole}
\label{indianOceanDipole}

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
%JB: I prefer to have short lines
\begin{figure}%[H]%JB: let the figure float to the best suited
%	position to get the best result.
	\centering
	\subfloat[I am the list entry][EOF1 for SSH from \cite{Vinayachandran2009}\label{eof_ssh}]{
	\includegraphics[width=0.45\textwidth]{example-image-a}}
	\subfloat[propagating kelvin and Rossby wave
	\cite{Vinayachandran2009}\label{fig:kelvinRosbyWave}]{
%		\label{propagating kelvin and Rossby wave
%		\cite{Vinayachandran2009}} %JB: This is not a
%		proper label 
	\includegraphics[width=0.45\textwidth]{example-image-b}}
	%JB: the width now is stated as 45 % of the textwidth
	\caption{I am the caption for both images.}
\end{figure}%.%JB: I gues you put that in by mistake 

Be careful with cites, they will be put in the list of figures if
you do not use the optional argument.
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

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

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 a lot, it is working now. I am trying to guess what was the problem.
Thanks again.
Post Reply