Skip to content

Pandoc's template variables are wrong in raw mode #9

@jdutant

Description

@jdutant

Pandoc sets some template variables automatically: $math$ if there's math, $csl-refs$ if there are citeproc references, and so on. In Raw mode these are set wrong because by the time the raw blocks are imported in the master document Pandoc doesn't see the citeproc references and the maths.

Workaround: the template should include needed LaTeX code unconditionally. Downside: will load mathjax only if not needed.

Workaround 2: make our own duplicates of Pandoc's internal template variables, and pass them from sources to main?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions