s: Insert horizontal spaces in formula

Description Usage Arguments Examples

View source: R/texcode.r

Description

The function is a wrapper around the LaTeX \mkern command. It will produce horizintal spaces with a width given as multiples of the letter m. E.g. s(2) equates the LaTeX code \mkern2em.

Usage

1
s(em = 0)

Arguments

em

Numeric. Width of inserted space in multiples of letter M. The default is 0. Negative spaces are allowed.

Examples

1
2
"$ 1 + 1 =" %_% s(2) %_% "2$"
 xx("1+1=", s(2), "2")

markheckmann/mat2tex documentation built on May 21, 2019, 12:06 p.m.