This question already has an answer here:
- Automatically numbering constants 2 answers
I am writing a maths paper where I have a lot of constants. I am indexing them to differenciate them. Basically my text looks like
blabla $c_1$ blablabla $c_2$ blabla $c_3$ blabla $c_1$ blabla $c_4$ blabla $c_5$ ...
I would like to have a commande, let say "\constant" such that each time I call it prints $c_i$ where $i$ is an increasing index. Also I would like to be able to use labels, like in my example above where $c_1$ appears more then one time.
Any idea of a good way to do it?