Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

TeXunits

Translate TeX Units of Measurement


Description

Translates units of measurement known to TeX and LaTeX.

Usage

TeXunits(from, to, from.unit = NULL)

Arguments

from

Typically character, such as "1in". When numeric, from.unit needs to be specified.

to

character

from.unit

character

Details

Available units are centimetre (cm), inch (in), point (pt), pica (pc), big point(bp), millimetre (mm), Didot points (dd) and Cicero (cc).

See Chapter 10 of the TeXbook for details.

Value

numeric

Author(s)

Enrico Schumann

References

Donald E. Knuth. The TeXbook. Addison Wesley, 1986 (with corrections made in 1996).

Examples

TeXunits("1in",
         c("in", "mm", "pt", "in"))
TeXunits(c("1in", "2in"),
         "cm")

textutils

Utilities for Handling Strings and Text

v0.2-1
GPL-3
Authors
Enrico Schumann [aut, cre] (<https://orcid.org/0000-0001-7601-6576>)
Initial release
2021-04-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.