-
Notifications
You must be signed in to change notification settings - Fork 17
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
"?" at end of title produces a "?`" ligature (upside-down question mark) in latex with "lang: de" #54
Comments
Are you perhaps using a custom template (maybe in your user data directory)? With With
|
Or does your input (above) already contain the U+2060? |
Indeed it does! My mistake, sorry. That's the trouble with invisible characters: They are easily overlooked. I changed my opening post and deleted the U+2060 after the question mark. So the original issue stands. And no, I am quite sure that I am not using a custom template (the corresponding subdirectory of my user data directory is empty). |
Odd, there's code in the LaTeX writer that should be inserting a |
OK, I see why it isn't working (the escape routine only looks at things in the same element).
|
One option suggested here is
|
Another option would be for us to generate curly quotes instead of You can already force that to happen by specifying |
These are often triggered by accident in languagegs that use ` `` ` for end quote (e.g. German). See jgm/citeproc#54.
Actually I think the best approach is to have pandoc automatically disable |
This is to prevent accidental creation of ligatures like `` ?` `` and `` !` `` (especially in languages with quotations like German), and similar ligature issues. See jgm/citeproc#54.
For the full stop issue: the problem lies with |
That works, great! As always, thank you so much for your time and effort. Pandoc makes my life better, end filing an issue for it is always a pleasure thanks to you (even if I often open it in the wrong repo…). (By the way, if anyone else like me is confused by being unable to find a "latex-smart" output type in the manual: "latex-smart" is a notation for "output type 'latex' without (minus) the extension 'smart'.) |
Apart from ligatures, the pandoc manual says this about the
Isn't this a drawback? |
That's only for Markdown input, not LaTeX output. |
No objections then! |
This has been fixed by changes in pandoc. |
With the new citeproc, if I have a title ending with a question mark ("?") in the bibliography and I am setting
lang
to German in the YAML metadata block (I testedde
,de-DE
orde-DE-1996
), this gets set as "?``" in latex together with the closing double quotes, which gets interpreted as a "?`" ligature (upside-down question mark "¿") plus closing single quotes in pdf.Example:
Command to compile to pdf:
pandoc --output="temp.pdf" --citeproc "temp.md"
Output pdf: temp.pdf
Depending on the CSL used, the same happens in citations within the text. It does not happen with
lang: en
.Background / non-working workaround
This issue is somewhat similar to jgm/pandoc#5407. Back then a viable workaround was for me to insert an invisible space ("word joiner", unicode U+2060) after the "?". This time (and on a different computer), however, this doesn't work for me. With pdflatex, it leads to an error:
With xelatex, it leads to a warning and faulty output because the font doesn't have the U+2060 character and replaces it by a fullstop ("."):
Apart from the default font, I tried
mainfont: Linux Libertine O
andmainfont: Noto Serif
. The latter got rid of the warning message, but still lead to the unwanted fullstop in the output.The text was updated successfully, but these errors were encountered: