Graphics, Figures & TablesArticle class - list of appendix elements before appendix.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
daniel135
Posts: 1
Joined: Wed Sep 01, 2021 12:29 pm

Article class - list of appendix elements before appendix.

Post by daniel135 »

Hello

This is my first post and I am not very good at Latex, so please be kind :)

I am writing my thesis in article class and i need to have an appendix at the end of my document. I am supposed to have a table of appendix elements right before the appendix which lists all the tables and figures in the appendex with their respective page numbers. I have managed to call my appendix pages A1 A2.... and the captions of the figures like "Figure A1, Figure A2, Table A1.....". then Figure B1 etc. in appendix B (which is in the same tex file). I am using the appendix package. In my table of contents I want to show Appendix A1, A2, B1.... and I do not want the figures and tables which are in the appendix to appear in the table of figures/tables, only in the list of appendix elements.


Explictly, I would like:

\begin{document}

\tableofcontents
\listoffigures
\listoftables

Section{blah}

Figures
Tables

\Appendix
Table of Appendix Elements

Figures
Figure A1xyz..................................[page number]
Figure A2
Figure B1

Tables
Table A1
Table B1
Table B2.

-----

Appendix A
Figure A1
Figure A2

Appendix B
Figure B1
Table B1
Table B2

I am hoping you can help!

Thanks in advance!




[img]appendix.png[/img]

This is contained in my tex file "appendix" which i include in my main tex file:

Code: Select all

\let\svaddcontentsline\addcontentsline
\renewcommand\addcontentsline[3]{%
  \ifthenelse{\equal{#1}{lof}}{}%
  {\ifthenelse{\equal{#1}{lot}}{}{\svaddcontentsline{#1}{#2}{#3}}}}
  
\appendix
\appendixpage
\addappheadtotoc
%\renewcommand{\thesection}{A}
%\renewcommand{\thetable}{\Alph{section}\arabic{table}}
%\renewcommand{\thefigure}{\Alph{section}\arabic{figure}}
%\fancyhead[L]{Appendix \thesubsection}
%\counterwithin{figure}{section}

\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}

\section{Appendix}

\subsection[Blah blah]{Blah Blah Blah Blah}

\begin{figure}[ht]
  \centering
  \includegraphics[width=0.95\columnwidth]{Pictures/xyz.jpeg}
  \caption{blah blah}
  \label{fig:figure_pie}
\end{figure}

\newpage
\subsection{A subsection}
\begin{figure}[ht]
  \centering
  \includegraphics[width=1\columnwidth]{Pictures/Pie.png}
  \caption[abcdef]{ABCDEF}
  \label{fig:Pies}
\end{figure}

\newpage

\renewcommand{\thesection}{B}
\setcounter{section}{0}
\fancyhead[L]{Appendix \thesubsection}
%\renewcommand{\thetable}{\Alph{section}\arabic{table}}
%\renewcommand{\thefigure}{\Alph{section}\arabic{figure}}
%\counterwithin{figure}{section}
%\counterwithin{table}{section}
\setcounter{figure}{0}
\setcounter{table}{0}
\renewcommand{\thefigure}{B\arabic{figure}}
\renewcommand{\thetable}{B\arabic{table}}



\subsection{A subssection}

\begin{figure}[h]

\centering
    \includegraphics{Tox.png}
    \caption[Toxic pies]{Lots of toxic pies}
    \label{fig:Pies_tox}

    \end{figure}[/latex]


my main document includes: 

[latex]\begin{document}

\title{Thesis}
\author{Joe Bloggs}
\date{\today}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\include{title}


\pagenumbering{roman}
\include{oath}
%\includepdf[pagecommand ={\thsipagestyle{}},pages = 1]{Declaration}


\include{acknow}

\include{summary}
\include{Zusammenfassung}
\include{abbreviations}
\include{Symbols}

\addtocontents{toc}{\protect\thispagestyle{fancy}}
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
.....

\end{document}
Attachments
appendix.PNG
appendix.PNG (45.87 KiB) Viewed 3874 times

Recommended reading 2024:

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

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

Post Reply