-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
UTF-8 quotation marks (lower-99/„) aren’t recognized, leading also to wrong citation conversion #6869
Comments
By doing
we can see that this is indeed a potential problem with the LaTeX reader:
You can get slightly different output with |
Thank you for this first direction! However, I’m not familiar enough with the pandoc code to be able to solve the issue myself now … 🙈 By the way, using csquotes is a pain compared to just typing UTF-8 quotes. Still, I tried that. It leads to bloated output, because it now includes language-specific marks. Even though it does recognize those marks, when exporting to DOCX, it doesn’t put lower-99-upper-66 quotation marks as I would expect when the language is set so explicitly. – Instead, upper 66-99-quotation marks, also inside the explicitly German parts. — Even with that resolved, using % !TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage[ngerman,british]{babel}
\usepackage[autostyle,german=quotes,english=british]{csquotes}
\usepackage[style=footnote-dw]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{my_article,
author = {Doe, John},
journal = {The Pandoc Journal},
number = {3},
pages = {393–396},
title = {A Bibliographer’s \TeX nic Inquiry},
volume = {25},
year = {1989}}
\end{filecontents}
\addbibresource{\jobname.bib}
\setlength\parindent{0pt}
\begin{document}
Using csquotes, it works: \enquote{english-style} csquotes, also \foreignlanguage{ngerman}{\enquote{deutsche} Anführungszeichen}.
This works: \foreignlanguage{ngerman}{Und nochmal mit Anführungszeichen.}\cite[Vgl.][394. In English: \enquote{And again, with quotation marks.}]{my_article}
Also now with German quotation marks.\cite[Vgl.][394. In German: \foreignlanguage{ngerman}{\enquote{Jetzt auch mit deutschen Anführungszeichen.}}]{my_article}
\end{document} Example line from the output in Markdown: Also now with German quotation marks.[Vgl. @my_article 394. In German:
["Jetzt auch mit deutschen Anführungszeichen."]{lang="de-DE"}] Example line from the DOCX-output:
|
More minimal:
In the German case the citationSuffix includes the brackets. |
Even more minimal:
|
Thank you! 😃 Looking forward to the nightly build … 😎 |
Hi, I am using pandoc 2.11.2 and have also tried the nightly build with the same output under on a Mac running Big Sur 11.0.1 (20B29).
I think, pandoc (including citeproc) doesn’t recognize German UTF-8 opening quotes (lower-99/„). Or is there a still more explicit way of setting the language? Still, I could be using different languages in one document …
I am just offering the example as a LaTeX → MD conversion for simplicity; usually, I am exporting to DOCX. I would just like to get rid of the extra
\[\]
in the output. In DOCX, the quotation marks aren’t converted to straight inch characters (") anyway, so you can’t notice it there.Consider this MWE in LaTeX:
This is the output I get from the command mentioned in the generated PDF,
pandoc filename.tex -C –bibliography= filename.bib –verbose -o filename.md
:This is what I would expect:
The text was updated successfully, but these errors were encountered: