As @egreg notes in this answer to Can't compile XeLaTeX document with biblatex and gb4e together, the package gb4e
makes _
and ^
active to be able to use subscripts and superscripts in ordinary text without having to switch to math mode. Unsurprisingly, this can cause problems, which is why the package gb4e
has a way of turning this behavior off with \noautomath
.
Given this, the following MWE does not compile unless \noautomath
is uncommented.
\documentclass{article}
\usepackage{mwe}
\usepackage{graphicx}
\usepackage{gb4e}
%\noautomath
\begin{document}
\begin{figure}
\centering
\includegraphics{example-image-a}
\caption[$F_{0}$]{$F_{0}$}
\end{figure}
\end{document}
Although, another way to make the MWE compile while leaving \noautomath
commented is to change the \caption
line to something like \caption[No subscript here]{F$_{0}$}
.
My question is thus: why does making _
active break its usage in \caption
?