Graphics, Figures & Tables ⇒ How to remove \numberwithn?
How to remove \numberwithn?
I have a appendix in my document which contains figures and I wanted them to be numbered like: Fig. A.1, Fig. A.2 etc., where A is from appendix. To achieve that I used:
\appendix
\numberwithin{figure}{section}
\section{Appendix}
but after appendix I have other sections with figures inside and I don't want them to be numbered with section number like: Fig. 1.1, Fig. 1.2 etc. but just Fig 1, Fig. 2. My question is how can I unbind figure and section counters? I'll appreciate any help.
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
How to remove \numberwithn?
However, there are plenty of options. One option would be to load the chngcntr package which defines a pair of commands
Code: Select all
\counterwithin{figure}{section}
Code: Select all
\counterwithout{figure}{section}
Finally you could use
Code: Select all
\renewcommand{\thefigure}{\arabic{figure}}
Re: How to remove \numberwithn?

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to remove \numberwithn?
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10