Class TeXConstants


  • public class TeXConstants
    extends java.lang.Object
    The collection of constants that can be used in the methods of the classes of this package.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGN_BOTTOM
      Alignment constant: extra space will be added above the formula
      static int ALIGN_CENTER
      Alignment constant: the formula will be centered in the middle.
      static int ALIGN_LEFT
      Alignment constant: extra space will be added to the right of the formula
      static int ALIGN_NONE
      Alignment constant: none
      static int ALIGN_RIGHT
      Alignment constant: extra space will be added to the left of the formula
      static int ALIGN_TOP
      Alignment constant: extra space will be added under the formula
      static int DELIM_BRACE
      Delimiter type constant for putting delimiters over and under formula's: brace
      static int DELIM_BRACKET
      Delimiter type constant for putting delimiters over and under formula's: parenthesis
      static int DELIM_DOUBLE_LEFT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left
      static int DELIM_DOUBLE_LEFT_RIGHT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left and to the right
      static int DELIM_DOUBLE_LINE
      Delimiter type constant for putting delimiters over and under formula's: underline twice
      static int DELIM_DOUBLE_RIGHT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the right
      static int DELIM_LEFT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left
      static int DELIM_LEFT_RIGHT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left and to the right
      static int DELIM_RIGHT_ARROW
      Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the right
      static int DELIM_SINGLE_LINE
      Delimiter type constant for putting delimiters over and under formula's: underline once
      static int DELIM_SQUARE_BRACKET
      Delimiter type constant for putting delimiters over and under formula's: square bracket
      static int MEDMUSKIP  
      static int NEGMEDMUSKIP  
      static int NEGTHICKMUSKIP  
      static int NEGTHINMUSKIP  
      static int QUAD  
      static int SCRIPT_LIMITS  
      static int SCRIPT_NOLIMITS  
      static int SCRIPT_NORMAL  
      static int STYLE_DISPLAY
      TeX style: display style.
      static int STYLE_SCRIPT
      TeX style: script style.
      static int STYLE_SCRIPT_SCRIPT
      TeX style: script_script style.
      static int STYLE_TEXT
      TeX style: text style.
      static int THICKMUSKIP  
      static int THINMUSKIP  
      static int TYPE_ACCENT
      Symbol type: accent, e.g.
      static int TYPE_BIG_OPERATOR
      Symbol/Atom type: big operator (= large operator), e.g.
      static int TYPE_BINARY_OPERATOR
      Symbol/Atom type: binary operator, e.g.
      static int TYPE_CLOSING
      Symbol/Atom type: closing symbol, e.g.
      static int TYPE_HLINE  
      static int TYPE_INNER
      Atom type: inner atom (NOT FOR SYMBOLS!!!)
      static int TYPE_INTERTEXT  
      static int TYPE_MULTICOLUMN  
      static int TYPE_OPENING
      Symbol/Atom type: opening symbol, e.g.
      static int TYPE_ORDINARY
      Symbol/Atom type: ordinary symbol, e.g.
      static int TYPE_PUNCTUATION
      Symbol/Atom type: punctuation symbol, e.g.
      static int TYPE_RELATION
      Symbol/Atom type: relation, e.g.
      static int UNIT_CC
      Unit constant: in
      static int UNIT_CM
      Unit constant: cm
      static int UNIT_DD
      Unit constant: in
      static int UNIT_EM
      Unit constant: em
      static int UNIT_EX
      Unit constant: ex
      static int UNIT_IN
      Unit constant: in
      static int UNIT_MM
      Unit constant: mm
      static int UNIT_MU
      Unit constant: math unit (mu)
      static int UNIT_PICA
      Unit constant: pica
      static int UNIT_PIXEL
      Unit constant: pixel
      static int UNIT_POINT
      Unit constant: postscript point
      static int UNIT_PT
      Unit constant: in
      static int UNIT_SP
      Unit constant: sp
    • Constructor Summary

      Constructors 
      Constructor Description
      TeXConstants()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ALIGN_LEFT

        public static final int ALIGN_LEFT
        Alignment constant: extra space will be added to the right of the formula
        See Also:
        Constant Field Values
      • ALIGN_RIGHT

        public static final int ALIGN_RIGHT
        Alignment constant: extra space will be added to the left of the formula
        See Also:
        Constant Field Values
      • ALIGN_CENTER

        public static final int ALIGN_CENTER
        Alignment constant: the formula will be centered in the middle. This constant can be used for both horizontal and vertical alignment.
        See Also:
        Constant Field Values
      • ALIGN_TOP

        public static final int ALIGN_TOP
        Alignment constant: extra space will be added under the formula
        See Also:
        Constant Field Values
      • ALIGN_BOTTOM

        public static final int ALIGN_BOTTOM
        Alignment constant: extra space will be added above the formula
        See Also:
        Constant Field Values
      • ALIGN_NONE

        public static final int ALIGN_NONE
        Alignment constant: none
        See Also:
        Constant Field Values
      • TYPE_ORDINARY

        public static final int TYPE_ORDINARY
        Symbol/Atom type: ordinary symbol, e.g. "slash"
        See Also:
        Constant Field Values
      • TYPE_BIG_OPERATOR

        public static final int TYPE_BIG_OPERATOR
        Symbol/Atom type: big operator (= large operator), e.g. "sum"
        See Also:
        Constant Field Values
      • TYPE_BINARY_OPERATOR

        public static final int TYPE_BINARY_OPERATOR
        Symbol/Atom type: binary operator, e.g. "plus"
        See Also:
        Constant Field Values
      • TYPE_RELATION

        public static final int TYPE_RELATION
        Symbol/Atom type: relation, e.g. "equals"
        See Also:
        Constant Field Values
      • TYPE_OPENING

        public static final int TYPE_OPENING
        Symbol/Atom type: opening symbol, e.g. "lbrace"
        See Also:
        Constant Field Values
      • TYPE_CLOSING

        public static final int TYPE_CLOSING
        Symbol/Atom type: closing symbol, e.g. "rbrace"
        See Also:
        Constant Field Values
      • TYPE_PUNCTUATION

        public static final int TYPE_PUNCTUATION
        Symbol/Atom type: punctuation symbol, e.g. "comma"
        See Also:
        Constant Field Values
      • TYPE_INNER

        public static final int TYPE_INNER
        Atom type: inner atom (NOT FOR SYMBOLS!!!)
        See Also:
        Constant Field Values
      • TYPE_ACCENT

        public static final int TYPE_ACCENT
        Symbol type: accent, e.g. "hat"
        See Also:
        Constant Field Values
      • DELIM_BRACE

        public static final int DELIM_BRACE
        Delimiter type constant for putting delimiters over and under formula's: brace
        See Also:
        Constant Field Values
      • DELIM_SQUARE_BRACKET

        public static final int DELIM_SQUARE_BRACKET
        Delimiter type constant for putting delimiters over and under formula's: square bracket
        See Also:
        Constant Field Values
      • DELIM_BRACKET

        public static final int DELIM_BRACKET
        Delimiter type constant for putting delimiters over and under formula's: parenthesis
        See Also:
        Constant Field Values
      • DELIM_LEFT_ARROW

        public static final int DELIM_LEFT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left
        See Also:
        Constant Field Values
      • DELIM_RIGHT_ARROW

        public static final int DELIM_RIGHT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the right
        See Also:
        Constant Field Values
      • DELIM_LEFT_RIGHT_ARROW

        public static final int DELIM_LEFT_RIGHT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left and to the right
        See Also:
        Constant Field Values
      • DELIM_DOUBLE_LEFT_ARROW

        public static final int DELIM_DOUBLE_LEFT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left
        See Also:
        Constant Field Values
      • DELIM_DOUBLE_RIGHT_ARROW

        public static final int DELIM_DOUBLE_RIGHT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the right
        See Also:
        Constant Field Values
      • DELIM_DOUBLE_LEFT_RIGHT_ARROW

        public static final int DELIM_DOUBLE_LEFT_RIGHT_ARROW
        Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left and to the right
        See Also:
        Constant Field Values
      • DELIM_SINGLE_LINE

        public static final int DELIM_SINGLE_LINE
        Delimiter type constant for putting delimiters over and under formula's: underline once
        See Also:
        Constant Field Values
      • DELIM_DOUBLE_LINE

        public static final int DELIM_DOUBLE_LINE
        Delimiter type constant for putting delimiters over and under formula's: underline twice
        See Also:
        Constant Field Values
      • STYLE_DISPLAY

        public static final int STYLE_DISPLAY
        TeX style: display style.

        The large versions of big operators are used and limits are placed under and over these operators (default). Symbols are rendered in the largest size.

        See Also:
        Constant Field Values
      • STYLE_TEXT

        public static final int STYLE_TEXT
        TeX style: text style.

        The small versions of big operators are used and limits are attached to these operators as scripts (default). The same size as in the display style is used to render symbols.

        See Also:
        Constant Field Values
      • STYLE_SCRIPT

        public static final int STYLE_SCRIPT
        TeX style: script style.

        The same as the text style, but symbols are rendered in a smaller size.

        See Also:
        Constant Field Values
      • STYLE_SCRIPT_SCRIPT

        public static final int STYLE_SCRIPT_SCRIPT
        TeX style: script_script style.

        The same as the script style, but symbols are rendered in a smaller size.

        See Also:
        Constant Field Values
      • UNIT_EM

        public static final int UNIT_EM
        Unit constant: em

        1 em = the width of the capital 'M' in the current font

        See Also:
        Constant Field Values
      • UNIT_EX

        public static final int UNIT_EX
        Unit constant: ex

        1 ex = the height of the character 'x' in the current font

        See Also:
        Constant Field Values
      • UNIT_POINT

        public static final int UNIT_POINT
        Unit constant: postscript point
        See Also:
        Constant Field Values
      • UNIT_PICA

        public static final int UNIT_PICA
        Unit constant: pica

        1 pica = 12 point

        See Also:
        Constant Field Values
      • UNIT_MU

        public static final int UNIT_MU
        Unit constant: math unit (mu)

        1 mu = 1/18 em (em taken from the "mufont")

        See Also:
        Constant Field Values
      • UNIT_CM

        public static final int UNIT_CM
        Unit constant: cm

        1 cm = 28.346456693 point

        See Also:
        Constant Field Values
      • UNIT_MM

        public static final int UNIT_MM
        Unit constant: mm

        1 mm = 2.8346456693 point

        See Also:
        Constant Field Values
      • UNIT_IN

        public static final int UNIT_IN
        Unit constant: in

        1 in = 72 point

        See Also:
        Constant Field Values
      • UNIT_SP

        public static final int UNIT_SP
        Unit constant: sp

        1 sp = 65536 point

        See Also:
        Constant Field Values
      • UNIT_PT

        public static final int UNIT_PT
        Unit constant: in

        1 in = 72.27 pt

        See Also:
        Constant Field Values
      • UNIT_DD

        public static final int UNIT_DD
        Unit constant: in

        1 in = 72 point

        See Also:
        Constant Field Values
      • UNIT_CC

        public static final int UNIT_CC
        Unit constant: in

        1 in = 72 point

        See Also:
        Constant Field Values
    • Constructor Detail

      • TeXConstants

        public TeXConstants()