Text Formatting ⇒ float creation and numbering
float creation and numbering
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 ?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
float creation and numbering
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}.