s: Insert horizontal spaces in formula

View source: R/texcode.r

sR Documentation

Insert horizontal spaces in formula

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

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 + 1 =" %_% s(2) %_% "2$"
 xx("1+1=", s(2), "2")

markheckmann/mat2tex documentation built on July 29, 2023, 7:45 p.m.