Am I missing something?! Argument of \@caption has an extra }.
<inserted text>
\par
l.19 ... these two symbols to overlap $\overlap$.}
mwe:
Code: Select all
\documentclass{article}
\usepackage{stackengine,scalerel}
\def\useanchorwidth{F}
\def\stackalignment{r}%
\newcommand\overlap{\scalerel*{\hspace{.5mm}\stackinset{c}{-1.5pt}{c}{}{$O$}{$L$}}{+}}
\begin{document}
%works if this is the only \overlap in the document
This is some text with the $\overlap$ symbols.
\begin{figure}[t]
\begin{center}
figure
\end{center}
\caption{I want these two symbols to overlap $\overlap$.} %doesn't work
\end{figure}
\end{document}