emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] HTML-export citation suffix rendering with CSL [9.6 (9.6-??-bed47b437 @ /home/romeo/.emacs.d/.local/straight/build-28.2.50/org/)]
@ 2023-01-24  2:30 Romeo Valentin
  2023-01-25 11:54 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Romeo Valentin @ 2023-01-24  2:30 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2992 bytes --]

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report? See

https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Dear maintainers,
attached is an org file which contains citations that are processed
through the CSL citation processor, and a .bib file for completeness.
The files are also included at the end of the email text.

I am trying to export the org file to HTML and point out a specific
theorem, however including a suffix in the citation breaks the HTML
rendering in two ways, as demonstrated in the files.

To reproduce, please download the .org and .bib file (place .bib in
/tmp), run org-html-export-to-html, and open the file e.g. with a browser.
Notice that the citations, in particular the suffixes, are rendered 
incorrectly.

Kind regards,
Romeo Valentin

PS: Recall the citation syntax from here [1] or here [2].
[1]: https://orgmode.org/manual/Citations.html
[2]: https://blog.tecosaur.com/tmio/2021-07-31-citations.html

Emacs  : GNU Emacs 28.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.36, cairo version 1.17.6)
  of 2023-01-07
Package: Org mode version 9.6 (9.6-??-bed47b437 @ 
/home/romeo/.emacs.d/.local/straight/build-28.2.50/org/)


*citeproc-bugreport.org:*
#+title: Citeproc Bugreport
#+bibliography: /tmp/citeproc-bugreport-references.bib
#+cite_export: csl

* Problem 1: textcite plus suffix
- Normal citation with suffix: 
[cite:@abnarQuantifyingAttentionFlow2020a, Thm. one]
- Broken (text)citation with suffix: 
[cite/t:@abnarQuantifyingAttentionFlow2020a, Thm. one]
   *This doesn't display correctly*

* Problem 2: citation with suffix and number
- Broken citation with suffix: 
[cite:@abnarQuantifyingAttentionFlow2020a, Thm. 1]
   *This doesn't display correctly*
- Notice that here a number comes last. I assume that the number is 
trying to be matched to a "locator", however there is no locator for 
"theorem".

#+print_bibliography:

*/tmp/citeproc-bugreport-references.bib:
*@article{abdarReviewUncertaintyQuantification2021,
   title = {A {{Review}} of {{Uncertainty Quantification}} in {{Deep 
Learning}}: {{Techniques}}, {{Applications}} and {{Challenges}}},
   shorttitle = {A {{Review}} of {{Uncertainty Quantification}} in 
{{Deep Learning}}},
   author = {Abdar, Moloud and Pourpanah, Farhad and Hussain, Sadiq and 
Rezazadegan, Dana and Liu, Li and Ghavamzadeh, Mohammad and Fieguth, 
Paul and Cao, Xiaochun and Khosravi, Abbas and Acharya, U. Rajendra and 
Makarenkov, Vladimir and Nahavandi, Saeid},
   date = {2021-12},
   journaltitle = {Information Fusion},
   eprint = {2011.06225},
   eprinttype = {arxiv},
   archiveprefix = {arXiv},
   keywords = {Computer Science - Artificial Intelligence,Computer 
Science - Computer Vision and Pattern Recognition,Computer Science - 
Machine Learning},
}

**

[-- Attachment #1.2: Type: text/html, Size: 3979 bytes --]

[-- Attachment #2: citeproc-bugreport.org --]
[-- Type: text/org, Size: 682 bytes --]

#+title: Citeproc Bugreport
#+bibliography: /tmp/citeproc-bugreport-references.bib
#+cite_export: csl

* Problem 1: textcite plus suffix
- Normal citation with suffix: [cite:@abnarQuantifyingAttentionFlow2020a, Thm. one]
- Broken (text)citation with suffix: [cite/t:@abnarQuantifyingAttentionFlow2020a, Thm. one]
  *This doesn't display correctly*

* Problem 2: citation with suffix and number
- Broken citation with suffix: [cite:@abnarQuantifyingAttentionFlow2020a, Thm. 1]
  *This doesn't display correctly*
- Notice that here a number comes last. I assume that the number is trying to be matched to a "locator", however there is no locator for "theorem".

#+print_bibliography:

[-- Attachment #3: citeproc-bugreport-references.bib --]
[-- Type: text/x-bibtex, Size: 1201 bytes --]

@article{abdarReviewUncertaintyQuantification2021,
  title = {A {{Review}} of {{Uncertainty Quantification}} in {{Deep Learning}}: {{Techniques}}, {{Applications}} and {{Challenges}}},
  shorttitle = {A {{Review}} of {{Uncertainty Quantification}} in {{Deep Learning}}},
  author = {Abdar, Moloud and Pourpanah, Farhad and Hussain, Sadiq and Rezazadegan, Dana and Liu, Li and Ghavamzadeh, Mohammad and Fieguth, Paul and Cao, Xiaochun and Khosravi, Abbas and Acharya, U. Rajendra and Makarenkov, Vladimir and Nahavandi, Saeid},
  date = {2021-12},
  journaltitle = {Information Fusion},
  shortjournal = {Information Fusion},
  eprint = {2011.06225},
  eprinttype = {arxiv},
  issn = {15662535},
  doi = {10.1016/j.inffus.2021.05.008},
  archiveprefix = {arXiv},
  keywords = {Computer Science - Artificial Intelligence,Computer Science - Computer Vision and Pattern Recognition,Computer Science - Machine Learning},
  file = {/home/romeo/Zotero/storage/3SA9DLUL/Abdar et al. - 2021 - A Review of Uncertainty Quantification in Deep Lea.pdf;/home/romeo/Zotero/storage/W8AUG4IY/Abdar et al. - 2021 - A Review of Uncertainty Quantification in Deep Lea.pdf;/home/romeo/Zotero/storage/V7MHDX4H/2011.html}
}

[-- Attachment #4: citeproc-bugreport.html --]
[-- Type: text/html, Size: 9536 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-28 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24  2:30 [BUG] HTML-export citation suffix rendering with CSL [9.6 (9.6-??-bed47b437 @ /home/romeo/.emacs.d/.local/straight/build-28.2.50/org/)] Romeo Valentin
2023-01-25 11:54 ` Ihor Radchenko
2023-02-28 14:51   ` András Simonyi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).