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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ch.stegmaier.java2tex.core.GenericCommand
    newcounter(String countername)
    Globally defines a new counter named countername and initialize it to zero.
    static ch.stegmaier.java2tex.core.GenericCommand
    setcounter(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.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Counters

      public Counters()
  • Method Details

    • setcounter

      public static ch.stegmaier.java2tex.core.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 ch.stegmaier.java2tex.core.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 ch.stegmaier.java2tex.core.GenericCommand newcounter(String countername)
      Globally defines a new counter named countername and initialize it to zero.
      See Also: