Skip to content

LaTeX error with CSLReferences in Pandoc >= 3.1.7 #117

@bastistician

Description

@bastistician

rmarkdown::render()ing the article template fails when using recent versions of Pandoc (>= 3.1.7), presumably due to changes in its LaTeX writer with respect to the CSLReferences environment.

With Pandoc 3.1.7, the error is (as previously reported in #113)

! Undefined control sequence.
<argument> \cslentryspacing 
                            
l.84 \setlength{\cslentryspacing}{0em}

With Pandoc 3.1.8 to 3.1.11.1 (current) the error is

! LaTeX Error: Lonely \item--perhaps a missing list environment.

In Pandoc 3.1.6.2, the LaTeX writer had produced, e.g.,

\leavevmode\vadjust pre{\hypertarget{ref-crosstalk}{}}%

to open a new bib item, whereas it now (Pandoc >= 3.1.7) produces

\bibitem[\citeproctext]{ref-crosstalk}

This is incompatible with the outdated definition of CSLReferences in RJwrapper.tex.
See the changes in Pandoc's default LaTeX template between 3.1.6.2 and 3.1.11.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions