1use pretty::{Pretty, RcAllocator, RcDoc};
2
3use crate::PrettyPrint;
4
5pub fn tex_inline_macro<'a, D>(cmd: &'a str, inner: D) -> PrettyPrint<'a>
6where
7 D: Pretty<'a, RcAllocator, ()>,
8{
9 RcDoc::text("\\").append(cmd).append("{").append(inner).append(RcDoc::text("}"))
10}