w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

counters.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void setCounter (char *s, int d)
 
int getCounter (char *s)
 
void incrementCounter (char *s)
 

Function Documentation

◆ getCounter()

int getCounter ( char *  s)

purpose: retrieves a named TeX counter

Definition at line 108 of file counters.c.

References Counters, existsCounter(), fprintf, i, and s.

Referenced by CmdCaption(), CmdCounter(), CmdEquation(), CmdSection(), CmdSlashSlash(), expandTheorem(), FinishRtfEquation(), FormatUnitNumber(), SaveEquationAsFile(), and WritePageSize().

◆ incrementCounter()

void incrementCounter ( char *  s)

purpose: increments a TeX counter (or initializes to 1)

Definition at line 78 of file counters.c.

References Counters, existsCounter(), i, newCounter(), and s.

Referenced by CmdCaption(), CmdSection(), CmdSlashSlash(), expandTheorem(), and FinishRtfEquation().

◆ setCounter()

void setCounter ( char *  s,
int  n 
)

purpose: allocates (if necessary) and sets a named TeX counter

Definition at line 93 of file counters.c.

References Counters, existsCounter(), i, n, newCounter(), and s.

Referenced by CmdCounter(), CmdEquation(), CmdSection(), InitializeLatexLengths(), newTheorem(), and resetTheoremCounter().