chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

Table in subfigure environment triggers a LaTeX error #132

Open chrismgraham opened 2 years ago

chrismgraham commented 2 years ago

Had this issue with an academic's beamer slides. Works fine on local Chirun build, but not on public builder / LTI. Minimal example:

\begin{figure}
    \begin{subfigure}{0.85\textwidth}
        \begin{table}
            \begin{tabular}{c|c}
            1 & 3 \\
            2 & 4
            \end{tabular}
        \end{table}
     \end{subfigure}
\end{figure}

Returns the LaTeX error

Package caption Error: table inside subfigure.