Document Classescustomised float numbering

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
c0nny
Posts: 10
Joined: Sat Jun 28, 2008 12:28 pm

customised float numbering

Post by c0nny »

Hi,

I defined a float

\newfloat{sentences}{th}{los}[chapter]

and I want to change its numbering in the Appendix like I did for figures and tables

\renewcommand\thefigure{B-\arabic{figure}}
\renewcommand\thetable{B-\arabic{table}}

How does that work for customised floats?


Conny

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

customised float numbering

Post by Stefan Kottwitz »

Hi Conny,

try

Code: Select all

\renewcommand\thesentences{B-\arabic{sentences}}
because sentences should be the name of the corresponding counter.

Stefan
LaTeX.org admin
c0nny
Posts: 10
Joined: Sat Jun 28, 2008 12:28 pm

Re: customised float numbering

Post by c0nny »

that works! :)


thank you!
Post Reply