function latex(strs) {
// ...
}
let doc = latex`
\newcommand{\fun}{\textbf{Fun!}}
\newcommand{\unicode}{\textbf{Unicode!}}
\newcommand{\xerxes}{\textbf{King!}}
Breve over the h goes \u{h}ere
`;
function latex(strs) {
// ...
}
let doc = latex`
\newcommand{\fun}{\textbf{Fun!}}
`;
function tag(strs) {
strs[0] === "\\unicode and U"
strs.raw[0] === "\\unicode and \\u{55}";
}
tag`\unicode and \u{55}`
function tag(strs) {
strs[0] === undefined
strs.raw[0] === "\\unicode and \\u{55}";
}
tag`\unicode and \u{55}`