Class Counters
java.lang.Object
ch.stegmaier.java2tex.commands.registry.Counters
Everything LaTeX numbers for you has a counter associated with it.
The name of the counter is often the same as the name of the environment or command associated with the number, except that the counter’s name has no backslash \.
Thus, associated with the \chapter command is the chapter counter that keeps track of the chapter number.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ch.stegmaier.java2tex.core.GenericCommandnewcounter(String countername) Globally defines a new counter named countername and initialize it to zero.static ch.stegmaier.java2tex.core.GenericCommandsetcounter(String counter) Globally set the counter counter to have the value of the value argument, which must be an integer.static ch.stegmaier.java2tex.core.GenericCommandusecounter(String counter) Used in the second argument of the list environment (see list), this declares that list items will be numbered by counter.
-
Constructor Details
-
Counters
public Counters()
-
-
Method Details
-
setcounter
Globally set the counter counter to have the value of the value argument, which must be an integer. Thus, you can set a counter’s value as \setcounter{section}{5}. Note that the counter name does not start with a backslash.- See Also:
-
usecounter
Used in the second argument of the list environment (see list), this declares that list items will be numbered by counter.- See Also:
-
newcounter
Globally defines a new counter named countername and initialize it to zero.- See Also:
-