Skip to content

LaTeX reader: \hspace and \vspace do not parse decimal point. #259

@mcourteaux

Description

@mcourteaux

Explain the problem.

pandoc -f latex -t typst --verbose
$A\hspace{0.4em}B$
^D

yields:

[WARNING] Could not convert TeX math A\hspace{0.4em}B, rendering as TeX:
  A\hspace{0.4em}B
            ^
  unexpected "."
  expecting digit, "em", "pt", "in" or "cm"
\$A\\hspace{0.4em}B\$

Note that using integers does work: using 1em yields quad in the Typst output.

Pandoc version?
3.6.3 / Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions