emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-ref-helm-insert-cite-link (using bibtex) when exporting to html
@ 2022-02-17 15:43 Uwe Brauer
  2022-02-17 16:00 ` John Kitchin
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2022-02-17 15:43 UTC (permalink / raw)
  To: emacs-orgmode


Hi

I have a small org file with some bibtex references I insert using 
org-ref-helm-insert-cite-link.

When I export the file to html, the list of reference gets a bullet
list.

Any change to get a numerated list (I am not sure I asked that in the
past...)?

Regards

Uwe Brauer 



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

* Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
  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:33   ` Uwe Brauer
  0 siblings, 2 replies; 6+ messages in thread
From: John Kitchin @ 2022-02-17 16:00 UTC (permalink / raw)
  To: org-mode-email

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

There aren't enough details here to figure out what you mean.

The bibliography formatting should be determined by the CSL style.

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Thu, Feb 17, 2022 at 10:57 AM Uwe Brauer <oub@mat.ucm.es> wrote:

>
> Hi
>
> I have a small org file with some bibtex references I insert using
> org-ref-helm-insert-cite-link.
>
> When I export the file to html, the list of reference gets a bullet
> list.
>
> Any change to get a numerated list (I am not sure I asked that in the
> past...)?
>
> Regards
>
> Uwe Brauer
>
>
>

[-- Attachment #2: Type: text/html, Size: 1402 bytes --]

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

* Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
  2022-02-17 16:00 ` John Kitchin
@ 2022-02-17 20:18   ` Uwe Brauer
  2022-02-17 20:54     ` John Kitchin
  2022-02-17 20:33   ` Uwe Brauer
  1 sibling, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2022-02-17 20:18 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Uwe Brauer


[-- Attachment #1.1.1: Type: text/plain, Size: 533 bytes --]


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

> There aren't enough details here to figure out what you mean.
> The bibliography formatting should be determined by the CSL style.

I am not sure whether I should send here all my settings, but I convert the org file either with the standard org exporter or as in this example using org-mime-htmlize the result is an unnumbered list.



cite:MR2980528

cite:MR2779087

cite:MR2608125

bibliographystyle:amsalpha-url
bibliography:/home/oub/ALLES/HGs/tex/bib/free.bib





[-- Attachment #1.1.2: Type: text/html, Size: 2430 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

* Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
  2022-02-17 16:00 ` John Kitchin
  2022-02-17 20:18   ` Uwe Brauer
@ 2022-02-17 20:33   ` Uwe Brauer
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2022-02-17 20:33 UTC (permalink / raw)
  To: emacs-orgmode

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

The correct conversion should be 

* An example

cite:MR2980528

cite:MR2779087

cite:MR2608125

bibliographystyle:amsalpha-url
bibliography:/home/oub/ALLES/HGs/tex/bib/free.bib


[-- Attachment #2: Type: text/html, Size: 1714 bytes --]

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

* Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
  2022-02-17 20:18   ` Uwe Brauer
@ 2022-02-17 20:54     ` John Kitchin
  2022-02-18  6:39       ` Uwe Brauer
  0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2022-02-17 20:54 UTC (permalink / raw)
  To: org-mode-email; +Cc: Uwe Brauer

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

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.

In version 3, you can use csl for this.

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Thu, Feb 17, 2022 at 3:19 PM Uwe Brauer <oub@mat.ucm.es> wrote:

> "JK" == John Kitchin <jkitchin@andrew.cmu.edu> writes:
>>>>
>>> There aren't enough details here to figure out what you mean. The
>> bibliography formatting should be determined by the CSL style.
>>
> I am not sure whether I should send here all my settings, but I convert
> the org file either with the standard org exporter or as in this example
> using org-mime-htmlize the result is an unnumbered list.
>
> MR2980528 <#m_-6043399637367556315_MR2980528>
>
> MR2779087 <#m_-6043399637367556315_MR2779087>
>
> MR2608125 <#m_-6043399637367556315_MR2608125>
>
> Bibliography
>
>    - [MR2980528] Coutand & Shkoller, Well-posedness in smooth function
>    spaces for the moving-boundary three-dimensional compressible Euler
>    equations in physical vacuum, *Arch. Ration. Mech. Anal.*, *206(2)*,
>    515-616 (2012). link <https://doi.org/10.1007/s00205-012-0536-1>. doi
>    <http://dx.doi.org/10.1007/s00205-012-0536-1>.
>    - [MR2779087] Coutand & Shkoller, Well-posedness in smooth function
>    spaces for moving-boundary 1-D compressible Euler equations in physical
>    vacuum, *Comm. Pure Appl. Math.*, *64(3)*, 328-366 (2011). link
>    <https://doi.org/10.1002/cpa.20344>. doi
>    <http://dx.doi.org/10.1002/cpa.20344>.
>    - [MR2608125] Coutand, Lindblad, Shkoller & Steve, A priori estimates
>    for the free-boundary 3D compressible Euler equations in physical vacuum, *Comm.
>    Math. Phys.*, *296(2)*, 559-587 (2010). link
>    <https://doi.org/10.1007/s00220-010-1028-5>. doi
>    <http://dx.doi.org/10.1007/s00220-010-1028-5>.
>
>

[-- Attachment #2: Type: text/html, Size: 3996 bytes --]

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

* Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html
  2022-02-17 20:54     ` John Kitchin
@ 2022-02-18  6:39       ` Uwe Brauer
  0 siblings, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2022-02-18  6:39 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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:
              "\n</ul>"))))


> 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 --]

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

end of thread, other threads:[~2022-02-18  6:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-02-17 20:33   ` Uwe Brauer

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