emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Joseph Vidal-Rosset <joseph@vidal-rosset.net>
Cc: org-mode-email <emacs-orgmode@gnu.org>,
	"András Simonyi" <andras.simonyi@gmail.com>
Subject: Re: citeproc-org and org-ref 3
Date: Sat, 4 Dec 2021 10:07:54 -0500	[thread overview]
Message-ID: <CAJ51ETr0Lf7ZC6mCq1N-_1TUE6jgKjxNRnDGGb-bpBfYnx4RHQ@mail.gmail.com> (raw)
In-Reply-To: <fed4357e-0392-f56a-5bd7-778819b92b85@vidal-rosset.net>


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

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: 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: 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: 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
@johnkitchin
http://kitchingroup.cheme.cmu.edu



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="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="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.
> >
>
>

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

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 105828 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 91056 bytes --]

[-- Attachment #4: image.png --]
[-- Type: image/png, Size: 81706 bytes --]

  reply	other threads:[~2021-12-04 15:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 17:00 citeproc-org and org-ref 3 Joseph Vidal-Rosset
2021-11-30 17:16 ` András Simonyi
2021-11-30 17:24   ` Joseph Vidal-Rosset
2021-11-30 17:31   ` John Kitchin
2021-11-30 18:15     ` Joseph Vidal-Rosset
2021-12-01 15:49     ` Joseph Vidal-Rosset
2021-12-01 16:33       ` András Simonyi
2021-12-01 16:48         ` Joseph Vidal-Rosset
2021-12-01 22:16           ` John Kitchin
2021-12-02 13:17             ` Joseph Vidal-Rosset
2021-12-02 15:56               ` Joseph Vidal-Rosset
2021-12-02 17:35                 ` John Kitchin
2021-12-03  8:04                   ` Joseph Vidal-Rosset
2021-12-03 15:24                     ` John Kitchin
2021-12-03 16:48                       ` Joseph Vidal-Rosset
2021-12-03 17:13                         ` John Kitchin
2021-12-04 14:23                           ` Max Nikulin
2021-12-04 14:45                           ` Joseph Vidal-Rosset
2021-12-04 15:07                             ` John Kitchin [this message]
2021-12-04 15:31                               ` Joseph Vidal-Rosset
2021-12-01 22:08         ` John Kitchin

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=CAJ51ETr0Lf7ZC6mCq1N-_1TUE6jgKjxNRnDGGb-bpBfYnx4RHQ@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=andras.simonyi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=joseph@vidal-rosset.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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