\def\table{\def\figurename{Table}\figure}
\let\endtable\endfigure
Should put all figures and tables in the same sequence and write Table for table captions.
The list of figures will still say list of figures, if you want to change that add
\renewcommand\listfigurename{List of Figures and Tables}
Right before the appendix, I redefine \addcontentsline
to intercept {figure}
and {table}
calls and excise them, as follows (requires ifthen
package):
\let\svaddcontentsline\addcontentsline
\renewcommand\addcontentsline[3]{%
\ifthenelse{\equal{#1}{lof}}{}%
{\ifthenelse{\equal{#1}{lot}}{}{\svaddcontentsline{#1}{#2}{#3}}}}
Here is my MWE (note: I added a body figure and table to demonstrate ability to discern report body from appendix)
\documentclass[a4paper,12pt,icelandic]{report}
\usepackage[toc,page]{appendix}
\usepackage{graphicx,ifthen}
\begin{document}
\tableofcontents
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables
\addcontentsline{toc}{chapter}{List of tables}
\chapter{Chapter 1}
\section{Section 1, chapter 1}
\begin{figure} % DO WANT THIS TO APPEAR IN LIST OF FIGURES
\centering
\includegraphics[width=1\linewidth]{example-image}
\caption{Body figure}
\end{figure}
\begin{table} % DO WANT THIS TO APPEAR IN LIST OF TABLES
\begin{tabular}{|c|c|}
\hline One & Two \\
\hline Three & Four \\
\hline
\end{tabular}
\caption{Body table}
\end{table}
\section{Section 2, chapter 1}
\let\svaddcontentsline\addcontentsline
\renewcommand\addcontentsline[3]{%
\ifthenelse{\equal{#1}{lof}}{}%
{\ifthenelse{\equal{#1}{lot}}{}{\svaddcontentsline{#1}{#2}{#3}}}}
\appendix
\addcontentsline{toc}{chapter}{Appendices}
\chapter{First appendix}
\section{Section 1}
\begin{figure} % DON'T WANT THIS TO APPEAR IN LIST OF FIGURES
\centering
\includegraphics[width=1\linewidth]{example-image}
\caption{Caption of figure}
\label{Label of figure}
\end{figure}
\begin{table} % DON'T WANT THIS TO APPEAR IN LIST OF TABLES
\begin{tabular}{|c|c|}
\hline One & Two \\
\hline Three & Four \\
\hline
\end{tabular}
\caption{Caption of table}
\label{Label of table}
\end{table}
\end{document}


ADDENDUM
A version of the redefinition that does not require the ifthen
package:
\let\svaddcontentsline\addcontentsline
\renewcommand\addcontentsline[3]{%
\edef\qtest{#1}%
\def\qmatch{lof}%
\ifx\qmatch\qtest\else%
\def\qmatch{lot}%
\ifx\qmatch\qtest\else%
\svaddcontentsline{#1}{#2}{#3}%
\fi\fi%
}
Best Answer
This solution uses the
tocloft
package.The way that your list of tables and list of figures appear are defined by the commands\cftfigfont
and\cfttabfont
. Write the following code in your preamble.