Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error on argument to LaTeX \vskip #10212

Closed
logological opened this issue Sep 24, 2024 · 1 comment
Closed

Parsing error on argument to LaTeX \vskip #10212

logological opened this issue Sep 24, 2024 · 1 comment
Labels

Comments

@logological
Copy link

Pandoc's LaTeX parser doesn't seem to understand \vskip. It chokes as soon as it gets to the length argument, regardless whether it's positive or negative, bare or surrounded by braces. Here's a minimal example:

\documentclass{article}
\begin{document}
\vskip-1.5em foo
\end{document}

And here's the command-line output:

$ pandoc --to=docx test.tex > test.docx
Error at "test.tex" (line 3, column 7):
unexpected -
\vskip-1.5em foo
      ^

Again, line 3 could have been written as \vskip1.5em, \vskip{-1.5em}, etc.; Pandoc will emit a similar error regardless.

The problem occurs with Pandoc 3.4 (using try pandoc) and with Pandoc 3.3 on openSUSE Tumbleweed.

@jgm
Copy link
Owner

jgm commented Sep 24, 2024

Looks like we are just missing em as a possible unit for dimension arguments -- as well as ex and px!

@jgm jgm closed this as completed in 56fc7d5 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants