Class Counters

java.lang.Object
ch.stegmaier.java2tex.commands.registry.Counters

public class Counters extends Object
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 Details

    • Counters

      public Counters()
  • Method Details

    • setcounter

      public static GenericCommand setcounter(String counter)
      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

      public static GenericCommand usecounter(String counter)
      Used in the second argument of the list environment (see list), this declares that list items will be numbered by counter.
      See Also:
    • newcounter

      public static GenericCommand newcounter(String countername)
      Globally defines a new counter named countername and initialize it to zero.
      See Also: