Graphics, Figures & TablesReferable, numbered Items

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gleavem
Posts: 1
Joined: Thu Aug 02, 2012 9:21 pm

Referable, numbered Items

Post by gleavem »

Basically I have several large terms and I wish to abbreviate each as a number. I then want to be able to use a \ref type command to call up that term's number elsewhere in the document. I need the numbers to appear sequentially as each term is introduced, like figures and be referable in the way a figure with a label is referable. They will likely be rearranged during the writing so I was hoping there was an auto-numbering situation for this already in LaTeX but I have not had success finding a means to do this for things that aren't figures/equations or tables.

Thanks for any insight.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re: Referable, numbered Items

Post by sommerfee »

Simply define a new counter with \newcounter{<name>} and use \refstepcounter{<name>} to increment it. By using \refstepcounter (instead of \stepcounter) \label and \ref will work automatically without the need of own extra code.

See also: http://theoval.cmp.uea.ac.uk/~nlct/late ... nters.html
Post Reply