Skip to contents

A generalisation of wrap_aligned() that takes an arbitrary LaTeX environment name (e.g. "aligned", "align*", "gather").

Usage

wrap_env(lines, env)

Arguments

lines

Character vector of LaTeX equation lines.

env

LaTeX environment name. Single non-empty string.

Value

A single string containing \\begin{env} ... \\end{env}.