Class UnitsOfLength

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

public class UnitsOfLength extends Object
TeX and LaTeX know about these units both inside and outside of math mode.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static ch.stegmaier.java2tex.core.BaseCommand
    cm()
    Centimeter, 10 mm
    static ch.stegmaier.java2tex.core.BaseCommand
    em()
    Similarly em, traditionally the width of the capital letter M, is often used for horizontal lengths.
    static ch.stegmaier.java2tex.core.BaseCommand
    ex()
    The x-height of the current font ex, traditionally the height of the lowercase letter x, is often used for vertical lengths.
    static ch.stegmaier.java2tex.core.BaseCommand
    in()
    Inch, 72.27 pt
    static ch.stegmaier.java2tex.core.BaseCommand
    mm()
    Millimeter, 2.845 pt
    static ch.stegmaier.java2tex.core.BaseCommand
    pt()
    Point, 1/72.27 inch.

    Methods inherited from class java.lang.Object

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

    • pt

      public static ch.stegmaier.java2tex.core.BaseCommand pt()
      Point, 1/72.27 inch. The (approximate) conversion to metric units is 1point = .35146mm = .035146cm.
    • in

      public static ch.stegmaier.java2tex.core.BaseCommand in()
      Inch, 72.27 pt
    • mm

      public static ch.stegmaier.java2tex.core.BaseCommand mm()
      Millimeter, 2.845 pt
    • cm

      public static ch.stegmaier.java2tex.core.BaseCommand cm()
      Centimeter, 10 mm
    • ex

      public static ch.stegmaier.java2tex.core.BaseCommand ex()
      The x-height of the current font ex, traditionally the height of the lowercase letter x, is often used for vertical lengths.
    • em

      public static ch.stegmaier.java2tex.core.BaseCommand em()
      Similarly em, traditionally the width of the capital letter M, is often used for horizontal lengths. This is also often the size of the current font, e.g., a nominal 10pt font will have 1em = 10pt.