## LaTeX forum ⇒ General ⇒ What does \c@figure mean

LaTeX specific issues not fitting into one of the other forums of this category.
cnguyen7
Posts: 2
Joined: Wed Oct 31, 2007 12:55 am

### What does \c@figure mean

Here is part of the code that confused me:

% FIGURE%\newcounter{figure}[chapter]\def\thefigure{\thechapter.\@arabic\c@figure}  % numbering for figures, they are numbered for each chapters\def\fps@figure{tbp}                           % default placement for figures

can anyone explane the job of \c@figure please?

thanks

Cuong

Tags:

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

cnguyen7
Posts: 2
Joined: Wed Oct 31, 2007 12:55 am
It seems like the two forum are one isnt it? thanks anyway

Fifis
Posts: 1
Joined: Wed Jan 08, 2014 2:29 am
Location: Paris or Moscow
At this very moment I am not asking for help, since I hope someone can restore the message from the named thread, but I keep failing to find the definition of \c@figure in latex.ltx, memoir.sty or graphicx.sty. (I need to redefine \c@figure, but where is it \def’ed?) Well, article.cls seems to define \thefigure through \c@figure, but the origin of the latter still remains obscure. Any ideas are truly appreciated!
Yours sincerely, Andreï V. Kostyrka.
————————————————————————
— I cannot rehearse too much at the present time because I am living in a flat.
— You are living in a flat? I prefer living in d sharp, is seems more commodious!

cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
\c@figure is the TeX count associated with the LaTeX counter figure. It is the count that holds the actual numeric value of the counter. Everytime you define a new counter
\newcounter{foo}

two associated commands are defined: \c@foo which holds the actual numeric value (0 at the beginning), \thefoo which is used to print the counter value and may be redefined with a suitable definition.

It should never be necessary to do anything with the internal count \c@foo. If the value of the counter needs to be reset or something there are a number of commands like \setcounter, \stepcounter, \refstepcounter, ... if the representation of the counter should be changed then \thefoo should be redefined.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim