EloyAnguianoRey / tfgtfmthesisuam

1 stars 0 forks source link

figures with _ (underscore) in names not supported #2

Open DStrelak opened 2 years ago

DStrelak commented 2 years ago

This works with many other templates:

\begin{figure}
  \includegraphics{img/my_image.png}
  \caption{my caption}
  \label{fig:my_image}
\end{figure}

But fails with this template:

! Missing $ inserted.
<inserted text> 
                $
l.187         \includegraphics{my_image.png}

Using the recommended approach also fails:

\begin{figure}[Ejemplo de uso de figure]{FIG:EJEMPLO}{Figura de ejemplo creada a partir del código}
        \image{3cm}{}{my_image.png}
\end{figure}

Trying to escape the underscore also fails:

\begin{figure}[Ejemplo de uso de figure]{FIG:EJEMPLO}{Figura de ejemplo creada a partir del código}
        \image{3cm}{}{my\_image.png}
\end{figure}

Results in _image.jpg_image.png... in the pdf.