[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html

From: Uwe Brauer
Subject: Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
Date: Fri, 18 Feb 2022 07:39:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "JK" == John Kitchin <jkitchin@andrew.cmu.edu> writes:

> I guess you are using the older org-ref version 2 here. If so, there isn't
> a real way to customize that, it comes from org-ref-get-html-bibliography
> which hard codes an unordered list.

This kludge Ā«solvesĀ» it 

(defun org-ref-get-html-bibliography (&optional sort)
  "Create an html bibliography when there are keys.
If one of SORT and `org-ref-bib-html-sorted' is non-nil,
the bibliography is alphabetically sorted."
  (let ((keys (org-ref-get-bibtex-keys (or sort org-ref-bib-html-sorted))))
    (when keys
      (concat org-ref-bib-html "<ul class='org-ref-bib'>"
              "\n<ol class=\"org-ol\">\n" ; a kludge to obtain a numbered list 
              (mapconcat (lambda (x) (org-ref-get-bibtex-entry-html x)) keys 
              "\n</ol>"                 ;second part of the kludge 

> In version 3, you can use csl for this.

I remember running into issues with version 3. But in the future, if time
permits, I have to try it again.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]