Graphics, Figures & TablesTable Title in Appendix for each Chapter

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
caheo1294
Posts: 10
Joined: Wed Aug 18, 2021 2:10 am

Table Title in Appendix for each Chapter

Post by caheo1294 »

hello everyone,

im writing a document using the document class "book", and I am having trouble with naming the Tables in appendices for each chapter.

I begin my appendix with\section, and these are my current codes:

Code: Select all

\begin{subappendices}
\setcounter{table}{0}  
\renewcommand{\thetable}{\Alph{section}\arabic{table}}
\input{Appendices/AppendixC2}
\end{subappendices}
with these, the table titles always start with A1, A2,..., for every chapter.

What im looking for is, for example, Table A1, A2 for Chapter 1. Table B1, B2 for Chapter 2 and so on. I managed to achieve this using

Code: Select all

\renewcommand{\thetable}{\Alph{chapter}\arabic{table}}
when I started my appendix with \chapter.

However, I do not want to treat my appendices as chapters; I want to treat them as sections.

Would you please help me with these without changing appendices as chapters?

Thank you xoxo.

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

Post Reply