I am co-writing a paper in linguistics on Overleaf. When I download the tex-file and try to compile it locally on the computer (Editor Winedt), I get an error mistake that is not present in Overleaf, where everything compiles correctly. It is clearly related to an equation
environment inside a figure
. I do not manage to find a solution.
Here's a relatively minimal working example. The error message is :
! Missing $ inserted.
<inserted text>
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[normalem]{ulem}
\usepackage{booktabs}
\usepackage{amsmath}
\begin{document}
Some text
\begin{figure} \centering
\caption{A feature bundle on C$^0$}
\vspace{0,5cm}
\label{lex}
\begin{equation*}
\left ( \begin{array}{lll} \textrm{C$^0$[Fin], [EPP]} & [Focus] & [Topic] \\ & [Contrastive] & [Contrastive] \\ & [Mirative] & [Shifting] \\ & [\ldots] & [\ldots]
\end{array}
\right )
\end{equation*}
\vspace{0,5cm}
\end{figure}
\end{document}
C$^0$
instead of$C^0$
?