databio / sciquill

Author academic documents in markdown
http://sciquill.databio.org
12 stars 5 forks source link

Nested figure environments are broken after pandoc upgrade #9

Open nsheff opened 1 year ago

nsheff commented 1 year ago

When updating to later versions of pandoc, figures are placed into a \begin{figure} environment and then in addition a \begin{figure*} environment. This causes LaTeX to error.

I think this is probably due to my figczar filter, which is creating the \being{figure*} environment. I am not sure what changed in pandoc between version 2 and 3, but I will need to fix this to make this filter compatible with pandoc 3 (or even pandoc 2.19, it looks like)

nsheff commented 1 year ago

I think the actual error it's showing is this:

Error producing PDF.
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.589 ...length{\columnsep}{8pt}\begin{figure*}[t]