Hi,
I created in my document a new float called "Image" by using float.sty. I would like to change the counter of "Image" from arabic to roman. Apparently the counter \theImage is not created when I create "Image".
How to create such a counter ?
Text Formatting ⇒ float creation and numbering
float creation and numbering
Last edited by gwada74 on Sun Feb 06, 2011 12:17 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

float creation and numbering
Hmm. The following:
worked just fine for me.
If something similar doesn't work for you, could you post a minimal working example showing the misbehavior?
Code: Select all
\documentclass{article}
\usepackage{float}
\newfloat{Image}{htb}{ige}
\renewcommand{\theImage}{\roman{Image}}
\begin{document}
\begin{Image}
\rule{2in}{2in}
\caption{Something}
\end{Image}
\end{document}
If something similar doesn't work for you, could you post a minimal working example showing the misbehavior?
float creation and numbering
That's not true:gwada74 wrote:Apparently the counter \theImage is not created when I create "Image".
Code: Select all
\documentclass{article}
\usepackage{float}
\newfloat{Image}{tbp}{loi}
\show\theImage
\begin{document}
\end{document}
Code: Select all
> \theImage=macro:
->\arabic {Image}.
Re: float creation and numbering
Thanks a lot this is working perfectly !