You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+-------+-----------------------+
| text | this is a text |
+=======+=======================+
| image |![caption](./png.png)|||||| this force a para |
+-------+-----------------------+
Version: pandoc 1.19.1, and pandoc-nightly with commit 685788c, both on macOS platform.
Diagnosis
The problem only occur when the table cell containing the image is a "Para" cell. If the line "this force a para" is removed, it will be ok.
By comparing the TeX output with and without the "this force a para" line, the only difference is how the minipage ends:
\begin{minipage}[t]{0.48\columnwidth}\raggedright\strut
image\strut\end{minipage} & \begin{minipage}[t]{0.48\columnwidth}\raggedright\strut\begin{figure}
\centering\includegraphics{./png.png}
\caption{caption}
\end{figure}
this force a para\strut\end{minipage}
And LaTeX doesn't like the extra line between the \end{figure} and \end{minipage}.
MWE
source: test3.zip
which contain a markdown with a dummy image:
Command used:
pandoc test3.md -o test3.pdf
Error:
Version: pandoc 1.19.1, and pandoc-nightly with commit 685788c, both on macOS platform.
Diagnosis
The problem only occur when the table cell containing the image is a "Para" cell. If the line "this force a para" is removed, it will be ok.
By comparing the TeX output with and without the "this force a para" line, the only difference is how the minipage ends:
And LaTeX doesn't like the extra line between the
\end{figure}
and\end{minipage}
.Note: this traced from an issue in ickc/pantable#20
The text was updated successfully, but these errors were encountered: