Graphics, Figures & Tableschanging numbering subfigure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
henry7849
Posts: 2
Joined: Thu Aug 25, 2011 9:29 pm

changing numbering subfigure

Post by henry7849 »

The following code does almost what I want. It changes
the reference, in the text, from 1a) to 1a and 2a) to 2a etc.
The problem is at the subfigure. This code puts 1a and 2a.
I would rather have just a. I realize this may be easy to
fix for some. But, the ending 4 lines are greek to me.

thanks,
henry


\renewcommand{\thesubfigure}{\thefigure\alph{subfigure}}
\makeatletter
\renewcommand{\@thesubfigure}{\thesubfigure:\space}
\renewcommand{\p@subfigure}{}
\makeatother

Recommended reading 2024:

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

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

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

changing numbering subfigure

Post by sommerfee »

Try this one instead:

Code: Select all

\renewcommand{\thesubfigure}{\alph{subfigure}}
   \makeatletter
     \renewcommand{\@thesubfigure}{\thesubfigure:\space}
     \renewcommand{\p@subfigure}{\thefigure}
   \makeatother
Unfortunately you did not provide a sample document (just a code snipped instead), and furthermore you did not even told us which package or document class you use to typeset your sub-figures, so the above code snipped of mine is just an untested guess, not more.
Post Reply