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
Org-ref citation support #5710
Comments
What's your pandoc version? |
pandoc 2.7.3 |
@tarleb is the expert on this and might be able to comment. |
The problem stems from the semicolon between the citations: pandoc seems to mishandle the fullwidth semicolon (U+FF1B) in your text. It works if one uses a normal semicolon (U+003B) instead. We could consider to treat more punctuation characters as "special characters" in the parser, which would resolve this. I will take a look into this. |
Yes, if it's a common thing in Asian languages to use the full-width semicolon. Otherwise I don't think we should get into the hole of considering similar unicode chars for all the chars in our syntax. |
Full width punctuation is very common at least within the Chinese and Japanese context, partly because words in these two languages are not separated by spaces. For example:
Adding a full-stop at the back of the syntax also breaks the code. |
From what I can tell, org-ref cites are special in that they do not conform to the usual emphasis conditions checked by org-mode. Here are some examples and how they are translated to LaTeX by org-ref:
output \cite{陳鼓應YiChuanYuDaoJiaSiXiang1994}
\cite{陳鼓應YiChuanYuDaoJiaSiXiang1994}
;\citep{陳鼓應YiChuanYuDaoJiaSiXiang1994}
\#\citep{陳鼓應YiChuanYuDaoJiaSiXiang1994}
\$citep:陳鼓應YiChuanYuDaoJiaSiXiang1994
\%citep:陳鼓應YiChuanYuDaoJiaSiXiang1994 Seems like it is mostly breaking at word boundaries, although I'm a bit confused about |
Citations with locator also didn't resolve well.
This one got interpreted as a simple link: |
Another weird bug that might be a separate issue:
If we use the same Add the following
|
Should be superceded by #7329? |
Does Pandoc currently support the rendering of Org-Ref style citations?
The documentation over here seems to suggest it does; but I was not able to get it working correctly.
Org Citations
(saved as
citation_issues.org
)To be rendered as:
CSL:
https://gist.github.com/sati-bodhi/31dd24dd280c88d51908
Bibtex:
(saved as
thesis.bib
)Pandoc:
Result:
Native Pandoc syntax works but org-ref syntax doesn't.
The text was updated successfully, but these errors were encountered: