Class UnitsOfLength
java.lang.Object
ch.stegmaier.java2tex.commands.registry.UnitsOfLength
TeX and LaTeX know about these units both inside and outside of math mode.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ch.stegmaier.java2tex.core.BaseCommandcm()Centimeter, 10 mmstatic ch.stegmaier.java2tex.core.BaseCommandem()Similarly em, traditionally the width of the capital letter M, is often used for horizontal lengths.static ch.stegmaier.java2tex.core.BaseCommandex()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.BaseCommandin()Inch, 72.27 ptstatic ch.stegmaier.java2tex.core.BaseCommandmm()Millimeter, 2.845 ptstatic ch.stegmaier.java2tex.core.BaseCommandpt()Point, 1/72.27 inch.
-
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.
-