emacs-orgmode
[Top][All Lists]
Advanced

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

Re: citeproc-org and org-ref 3


From: John Kitchin
Subject: Re: citeproc-org and org-ref 3
Date: Sat, 4 Dec 2021 10:07:54 -0500

AFAICT this is also a style issue. This document:

#+csl-style: apa-5th-edition.csl

See [[cite:&scalia-2020-evaluat-scalab pg. 127]].

bibliography:~/Dropbox/emacs/bibliography/references.bib

exports to:
image.png.

This one: 
#+csl-style: apa-numeric-superscript-brackets.csl

See [[cite:&scalia-2020-evaluat-scalab pg. 127]].

bibliography:~/Dropbox/emacs/bibliography/references.bib
exports to 
image.png

and this one (note the extra HTML_HEAD lines which fixes the separate lines due to the div elements (Thank you for this tip Max!).

#+csl-style: biochimica-et-biophysica-acta.csl
#+HTML_HEAD: <style type="text/css">
#+HTML_HEAD:   .csl-left-margin, .csl-right-inline { display: inline; }
#+HTML_HEAD: </style>

See [[cite:&scalia-2020-evaluat-scalab pg. 127]].

bibliography:~/Dropbox/emacs/bibliography/references.bib


leads to 
image.png


You can see that the first two styles show the locators, but the last one you use does not. I don't think that is something org-ref can or should fix. That would be something to fix in the styles themselves.

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803


On Sat, Dec 4, 2021 at 9:45 AM Joseph Vidal-Rosset <joseph@vidal-rosset.net> wrote:
Dear John,

Another more important point.  It is now more probably a point where
org-ref 3  needs to be improved: it seems to me that the format
[numerical_reference, page] or (name_reference, page) cannot be produced
for the html export.

(The format [numerical_reference, page]  was produced with org-ref2 +
citeproc-org , see for example:

https://www.vidal-rosset.net/a_logical_remark_on_swinburnes_cartesian_argument_for_substance_dualism.html

Swinburne’s argument is an amended version of Descartes’s in Discourse
on the Method [1, p. 127]:
)

I hope that there is a solution.

Best wishes,

Jo.

Le 03/12/2021 à 18:13, John Kitchin a écrit :
> I think this is caused by something in the style, or in how citeproc
> uses the style.
>
> This document:
>
> #+csl-style: biochimica-et-biophysica-acta.csl
>
> See [[cite:&scalia-2020-evaluat-scalab]].
>
> bibliography:~/Dropbox/emacs/bibliography/references.bib
>
> Leads to (as you have seen):
>
> image.png
>
> The html for that reference looks like:
> <div class="csl-bib-body">
>    <div class="csl-entry"><a id="citeproc_bib_item_1"></a>
>      <div class="csl-left-margin">[1]</div><div
> class="csl-right-inline">G. Scalia, C.A. Grambow, B. Pernici, Y.-P. Li,
> W.H. Green, <a href="" href="https://doi.org/10.1021/acs.jcim.9b00975" rel="noreferrer" target="_blank">https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>">Evaluating Scalable
> Uncertainty Estimation Methods for Deep Learning-Based Molecular
> Property Prediction</a>, Journal of Chemical Information and Modeling,
> 60 (2020) 2697-2717.</div>
>    </div>
> </div>
> </div>
>
> I don't see why there is an extra line there, I guess it is some CSS
> styling.
>
> if you change the csl style to apa-numeric-superscript-brackets.csl
>
> you get
> image.png
>
> which I think is closer to what you want. The html for this looks like
> this, and does not have some of the div elements seen above. I guess
> this is something in the style files themselves.
>
> <div class="csl-bib-body">
>    <div class="csl-entry"><a id="citeproc_bib_item_1"></a>1. Scalia, G.,
> Grambow, C. A., Pernici, B., Li, Y.-P., &#38; Green, W. H. (2020).
> Evaluating Scalable Uncertainty Estimation Methods for Deep
> Learning-Based Molecular Property Prediction. <i>Journal of Chemical
> Information and Modeling</i>, <i>60</i>(6), 2697–2717. <a
> href="" href="https://doi.org/10.1021/acs.jcim.9b00975" rel="noreferrer" target="_blank">https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975>">https://doi.org/10.1021/acs.jcim.9b00975
> <https://doi.org/10.1021/acs.jcim.9b00975></a></div>
> </div>
> </div>
>
>
>
> 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 <http://kitchingroup.cheme.cmu.edu>
>
>
>
> On Fri, Dec 3, 2021 at 11:49 AM Joseph Vidal-Rosset
> <joseph@vidal-rosset.net <mailto:joseph@vidal-rosset.net>> wrote:
>
>     Le 03/12/2021 à 16:24, John Kitchin a écrit : > I have seen this
>     happen at times, and I think it is style and maybe > browser
>     dependent. > > Could you send me a small example (including the csl
>     file you use) that > I could look at? Dear John, In attachment, two
>     small examples, the same text exported with
>     biochimica-et-biophysica-acta.csl and with ieee-with-url.csl Best
>     wishes, Jo.
>


reply via email to

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