Graphics, Figures & Tablescounter in subfloat

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
meenaksh
Posts: 1
Joined: Mon Sep 13, 2010 12:42 pm

counter in subfloat

Post by meenaksh »

Hi,

I would like the counters in subfloats to begin with Roman numerals instead of the default alphabetical numbering. I am newbie so can someone throw some light on how to do this.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

counter in subfloat

Post by gmedina »

Hi,

redefine the corresponding counters:

Code: Select all

\documentclass{article}
\usepackage{subfig}

\renewcommand\thesubfigure{\roman{subfigure}}

\begin{document}

\begin{figure}[!ht]
  \subfloat[]{\rule{4cm}{3cm}\label{sub1}}\quad
  \subfloat[]{\rule{4cm}{3cm}\label{sub2}}
\end{figure}

\ref{sub1}\ref{sub2}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply