Replies: 1 comment
-
Closing in favour of: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
As far as I can tell this is actually a LaTeX problem of nesting a
\marginpar{}
inside a\caption{}
, as per this Stack Exchange question. I was able to hack around it by changing\marginpar{}
to\marginnote{}
in the LaTeX file with the following R-script hack (then building PDF from LaTeX myself); I also needed to make sure the figure had a short caption (figure-scap
) in addition to the one with a caption in it.This is arguably not Quarto's fault, but it might bite someone else, and might be solvable by substituting
marginnote
formarginpar
in appropriate places?(I don't know if this should be an issue rather than a discussion.)
R hack code
This could probably be done in one line of Perl, or a multi-line
sed
substitution, or ...reproducible example
with a bib file
test.bib
:Running
quarto render test.qmd --to latex; pdflatex test
givesThe offending LaTeX code is
citation-location: margin
or (2) leave @boxScience1976b out of the caption or (3) as above, changemarginpar
tomarginnote
in the LaTeX file and make sure that a short caption is specifiedThis is on PopOS! (ubuntu derivative) 22.04, with Quarto 1.2.335 and pandoc 3.1.7.
Beta Was this translation helpful? Give feedback.
All reactions