emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
Date: Fri, 18 Feb 2022 07:39:11 +0100	[thread overview]
Message-ID: <87ee40n0fk.fsf@mat.ucm.es> (raw)
In-Reply-To: CAJ51ETrAhLj+wGGqodTZR=LcDaca78d5f45cPWKftw95qGSW5w@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

>>> "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 UB:18.02.2022:
              (mapconcat (lambda (x) (org-ref-get-bibtex-entry-html x)) keys "\n")
              "\n</ol>"                 ;second part of the kludge UB:18.02.2022:

> 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 #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-02-18  6:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 15:43 org-ref-helm-insert-cite-link (using bibtex) when exporting to html Uwe Brauer
2022-02-17 16:00 ` John Kitchin
2022-02-17 20:18   ` Uwe Brauer
2022-02-17 20:54     ` John Kitchin
2022-02-18  6:39       ` Uwe Brauer [this message]
2022-02-17 20:33   ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ee40n0fk.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).