Graphics, Figures & TablesTables and Figures in Appendix

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Iqarius
Posts: 1
Joined: Fri Jul 07, 2023 12:58 am

Tables and Figures in Appendix

Post by Iqarius »

Hello Latex Community,
i am relatively new to Latex and was wondering if its possible to have tables and figures in the Appendix, but instead of the normal number in the caption it would be a letter and a number. For example it would read as: "Figure A1: example caption" or "Tables A1: example caption" ans so on. And is it possible if I want to reference something in the Appendix in my normal text i would also show up as A1?

Kind regards and thanks for any help :)
-Iqarius

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Tables and Figures in Appendix

Post by rais »

Given the right class, that is, one that supports chapters like book or report, what you want is almost what you'd get, anyway:

Code: Select all

\documentclass{report}
\renewcommand*\thefigure{\thechapter\arabic{figure}}
\begin{document}
\chapter{foo}
see \ref{fig:sample}
\appendix
\chapter{Figures and such}
\begin{figure}
\centering
\fbox{sample}
\caption{sample fig}
\label{fig:sample}
\end{figure}
\end{document}
If you leave out the line with the \renewcommand you'll see the default (A.1 instead of A1)

KR
Rainer
Post Reply