Skip to content

ifmmode #10915

@jgm

Description

@jgm

Discussed in #10909

Originally posted by jtwspoon1 June 14, 2025
I am trying to use pandoc on a LaTeX document that uses ifmmode, but the resulting html file shows that pandoc did not process ifmmode properly.
In LaTeX source: \newcommand{\sig} {\ifmmode\sigma\else\mbox{$\sigma$}\fi}
in html output: wherever \sig is referenced, pandoc simply displays the source command in red rather than interpreting it properly .
Any idea why and/or how to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions