The following code throws an error.
\documentclass{amsart}
\usepackage{accents}
\usepackage{tikz}
\usepackage{soul}
\def\ubar#1{\underaccent{\bar}{#1}}
\begin{document}
$\ubar{x}$
\hl{$\bar{x}$}
\hl{$\ubar{x}$}
\end{document}
If the line \hl{$\bar{x}$}
is commented out, it runs fine, isolating the problem to be with the interaction between the \hl
command and the \ubar
command. Is there an easy workaround for this?
tikz
do with that? It does not run through regardless of whether or not one loadstikz
. – user194703 Sep 29 '19 at 17:32ubar{x}
command is highlighted instead of being underlined. – Leo Simon Sep 30 '19 at 2:45