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

check characters in latex \label, special chars are not allowed #1007

Closed
Marwe opened this issue Oct 1, 2013 · 2 comments
Closed

check characters in latex \label, special chars are not allowed #1007

Marwe opened this issue Oct 1, 2013 · 2 comments

Comments

@Marwe
Copy link

Marwe commented Oct 1, 2013

Bug occured after upgrading pandoc from 1.9.1.1 to 1.12.0.2, most likely due to this enhancement:
#871

Pandoc to LaTeX label bug

pandoc creates a \label for each section, but should validate the label character set, limiting them to valid characters.

The following section produces a label with a german umlaut, and is invalid, but compiles

Höhe

Excerpt from latex documentation, e.g. from
http://www.personal.ceu.hu/tex/cross.htm

\label{key}
[...]
A key can consist of any sequence of letters, digits, or
punctuation characters. Upper and lowercase letters are different.

But at least the ß leads to errors, since it is expanded to \ss

Faß

! Missing \endcsname inserted.

\T1\ss
l.17 ... {\ss }}{{}{1}{Faß\relax }{section*.2}{}}

@begemotv2718
Copy link

The following diff seems to fix the issue, but I'm looking for a cleaner way to do this:
begemotv2718@1b54bc

@jgm
Copy link
Owner

jgm commented Oct 18, 2013

The cleanest approach is to use --latex-engine=xelatex.

@jgm jgm closed this as completed in 1f29f46 Oct 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants