* Citations with page numbers using helm-bibtex and org-ref
@ 2021-02-21 0:26 Adam Sneller
2021-02-21 12:21 ` Bruce D'Arcus
0 siblings, 1 reply; 6+ messages in thread
From: Adam Sneller @ 2021-02-21 0:26 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]
I currently use org-ref and helm-bibtex to manage my database of academic sources, with one notes file per source. A lot of my sources are books. So note typically grow over time, as I add multiple headers (each pertaining to a chapter or topic/note taken from that source).
But now I want to produce a citation that references the page numbers where I captured that note...
What is the recommended way to handle this? Are you breaking notes into individual files, each with their own @inbook citation? And suppose you are capturing a section (not necessarily a chapter title). Are you still using @inbook?
Thanks!
Adam Sneller – CCO
MS2 Digital
20 Old Bailey, St Paul's, London EC4M 7AN
adam.sneller@ms2.digital
office: 020 3988 6800
direct: 020 3988 6809
The information in this e-mail and any documents and files transmitted with it are confidential and for the use of the intended recipient only. If you are not the intended recipient, please delete the message and any attachments immediately and notify the sender. Although MS2 Group Limited believes this e-mail and any attachments are free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and MS2 Group Limited does not accept any responsibility for any loss or damage arising from its use. MS2 Group Limited is registered in England and Wales, company number 10410414. Registered office: 27 Old Gloucester Street, London WC1N 3AX. 'MS2 Digital' is the trading name of MS2 Group Limited.
© 2020 MS2 Group Limited
[-- Attachment #2: Type: text/html, Size: 6617 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Citations with page numbers using helm-bibtex and org-ref
2021-02-21 0:26 Citations with page numbers using helm-bibtex and org-ref Adam Sneller
@ 2021-02-21 12:21 ` Bruce D'Arcus
2021-02-21 13:30 ` John Kitchin
2021-02-21 17:13 ` Adam Sneller
0 siblings, 2 replies; 6+ messages in thread
From: Bruce D'Arcus @ 2021-02-21 12:21 UTC (permalink / raw)
To: adam.sneller; +Cc: emacs-orgmode@gnu.org
On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller <adam.sneller@ms2.digital> wrote:
> I currently use org-ref and helm-bibtex to manage my database of academic sources, with one notes file per source. A lot of my sources are books. So note typically grow over time, as I add multiple headers (each pertaining to a chapter or topic/note taken from that source).
>
> But now I want to produce a citation that references the page numbers where I captured that note...
>
> What is the recommended way to handle this? Are you breaking notes into individual files, each with their own @inbook citation?
Generally speaking, referencing page numbers and sections of a cited
source is not handled by dedicated citations, but rather by
annotations on the containing citation (book etc.).
So in the pandoc syntax, for example, [@book, p23].
I do the same with notes, and just included the specific citation with
the note if I need to maintain the specific source page.
Bruce
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Citations with page numbers using helm-bibtex and org-ref
2021-02-21 12:21 ` Bruce D'Arcus
@ 2021-02-21 13:30 ` John Kitchin
2021-02-21 17:13 ` Adam Sneller
1 sibling, 0 replies; 6+ messages in thread
From: John Kitchin @ 2021-02-21 13:30 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: Adam Sneller, emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
In org-ref you also handle this by annotations of the cite links, e.g.
[[cite:book-key][p23]] and then bibtex or biblatex does the formatting.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Sun, Feb 21, 2021 at 7:22 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
> On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller <adam.sneller@ms2.digital>
> wrote:
>
> > I currently use org-ref and helm-bibtex to manage my database of
> academic sources, with one notes file per source. A lot of my sources are
> books. So note typically grow over time, as I add multiple headers (each
> pertaining to a chapter or topic/note taken from that source).
> >
> > But now I want to produce a citation that references the page numbers
> where I captured that note...
> >
> > What is the recommended way to handle this? Are you breaking notes into
> individual files, each with their own @inbook citation?
>
> Generally speaking, referencing page numbers and sections of a cited
> source is not handled by dedicated citations, but rather by
> annotations on the containing citation (book etc.).
>
> So in the pandoc syntax, for example, [@book, p23].
>
> I do the same with notes, and just included the specific citation with
> the note if I need to maintain the specific source page.
>
> Bruce
>
>
[-- Attachment #2: Type: text/html, Size: 2101 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Citations with page numbers using helm-bibtex and org-ref
2021-02-21 12:21 ` Bruce D'Arcus
2021-02-21 13:30 ` John Kitchin
@ 2021-02-21 17:13 ` Adam Sneller
2021-02-21 17:40 ` John Kitchin
1 sibling, 1 reply; 6+ messages in thread
From: Adam Sneller @ 2021-02-21 17:13 UTC (permalink / raw)
To: Bruce D'Arcus, John Kitchin; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1.1: Type: text/plain, Size: 1864 bytes --]
Hi Bruce/John,
Thanks for getting back to me. So I guess your notes file would look something like this?
#+TITLE: Bradley, J. (1973): Essential Mathematics For Economists
* Dynamic models: the consumption function
[[cite:bradley1973es][p164]]
* Changes in Capital Stock
[[cite:bradley1973es][p188]]
* The Accelerator-Multiplier Model
[[cite:bradley1973es][p200]]
So when when it comes time to author your paper, if you run org-store-link on any of these, the description gets stripped off the link, so that only cite:bradley1973es is stored (which obviously defeats the purpose). And if you copy the link over by hand, it maps back to the document bradley197es.org <http://bradley197es.org/> (not the actual note).
Am I missing anything?
Adam
> On 21 Feb 2021, at 12:21, Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller <adam.sneller@ms2.digital> wrote:
>
>> I currently use org-ref and helm-bibtex to manage my database of academic sources, with one notes file per source. A lot of my sources are books. So note typically grow over time, as I add multiple headers (each pertaining to a chapter or topic/note taken from that source).
>>
>> But now I want to produce a citation that references the page numbers where I captured that note...
>>
>> What is the recommended way to handle this? Are you breaking notes into individual files, each with their own @inbook citation?
>
> Generally speaking, referencing page numbers and sections of a cited
> source is not handled by dedicated citations, but rather by
> annotations on the containing citation (book etc.).
>
> So in the pandoc syntax, for example, [@book, p23].
>
> I do the same with notes, and just included the specific citation with
> the note if I need to maintain the specific source page.
>
> Bruce
>
[-- Attachment #1.2: Type: text/html, Size: 3220 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Citations with page numbers using helm-bibtex and org-ref
2021-02-21 17:13 ` Adam Sneller
@ 2021-02-21 17:40 ` John Kitchin
2021-02-21 19:05 ` Adam Sneller
0 siblings, 1 reply; 6+ messages in thread
From: John Kitchin @ 2021-02-21 17:40 UTC (permalink / raw)
To: Adam Sneller; +Cc: emacs-orgmode@gnu.org, Bruce D'Arcus
[-- Attachment #1: Type: text/plain, Size: 4803 bytes --]
It seems like some ideas are getting mixed up in your description. A cite
link in org-ref is related to a bibtex entry in a bibtex file, not to an
org heading in an org-file. In other words in your example, I would expecta
bibtex entry with the key bradley1973es to exist in one of the default
bibliography files you use (or in the one you define in a bibliography
link). The notes are just for your purposes.
the headings/links in your notes file will not show up in any completion
backend in org-ref for citation selection, as only the bibtex entries are
used to construct those.
If you are looking for a way to select one of those headings from your
notes, and then insert the appropriate link, you would have to use
something different than org-ref. there is not presently a way to map an
annotated cite link to the specific note. I am not even sure you can write
a function that does that, as the functions only take a key for looking up
the note file, and not the description too. It certainly is possible to
write a new function that would work on the link at point to do that, and
to call it interactively, or add it as an action though. You would still
get the key to open the note file, and then use the link description if it
exists to somehow search forward for the relevant heading or text, failing
gracefully if you, for example, make a cite to a page you did not make a
note on.
When it comes time to authoring a paper, I think the workflow is you would
have to open the notes you made, find the section you want to use in your
paper, and copy the link you put in your notes to your new document. There
are some variations you might consider, but none of them would really be
integrated into the org-ref completion mechanisms that are generated from
the bibtex entries.
For example you might store the link or parts in a property like this:
* The Accelerator-Multiplier Model
:PROPERTIES:
:key: bradley1973es
:page: p200
:cite: [[cite:bradley1973es][p200]]
:END:
and then write a small function you use interactively to copy it, e.g.
#+BEGIN_SRC emacs-lisp
(defun get-link ()
(interactive)
(kill-new (org-entry-get (point) "cite")))
#+END_SRC
and you might bind that to a key if you use it a lot. Alternatively you
might put the key in file-level property, and only store the page, and use
property inheritance, to build the link. There are a lot of options to
choose from. But, simply copying and pasting a link might also be the
simplest.
It might be possible to use the org-store/insert-link machinery for this
too, but I have found that to be trickier than I thought it should be in
the past.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Sun, Feb 21, 2021 at 12:13 PM Adam Sneller <adam@earth2adam.com> wrote:
> Hi Bruce/John,
>
> Thanks for getting back to me. So I guess your notes file would look
> something like this?
>
>
> #+TITLE: Bradley, J. (1973): Essential Mathematics For Economists
>
> * Dynamic models: the consumption function
> [[cite:bradley1973es][p164]]
>
> * Changes in Capital Stock
> [[cite:bradley1973es][p188]]
>
> * The Accelerator-Multiplier Model
> [[cite:bradley1973es][p200]]
>
>
> So when when it comes time to author your paper, if you run org-store-link
> on any of these, the description gets stripped off the link, so that only
> cite:bradley1973es is stored (which obviously defeats the purpose). And if
> you copy the link over by hand, it maps back to the document
> bradley197es.org (not the actual note).
>
> Am I missing anything?
>
> Adam
>
> On 21 Feb 2021, at 12:21, Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller <adam.sneller@ms2.digital>
> wrote:
>
> I currently use org-ref and helm-bibtex to manage my database of academic
> sources, with one notes file per source. A lot of my sources are books. So
> note typically grow over time, as I add multiple headers (each pertaining
> to a chapter or topic/note taken from that source).
>
> But now I want to produce a citation that references the page numbers
> where I captured that note...
>
> What is the recommended way to handle this? Are you breaking notes into
> individual files, each with their own @inbook citation?
>
>
> Generally speaking, referencing page numbers and sections of a cited
> source is not handled by dedicated citations, but rather by
> annotations on the containing citation (book etc.).
>
> So in the pandoc syntax, for example, [@book, p23].
>
> I do the same with notes, and just included the specific citation with
> the note if I need to maintain the specific source page.
>
> Bruce
>
>
>
[-- Attachment #2: Type: text/html, Size: 6343 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Citations with page numbers using helm-bibtex and org-ref
2021-02-21 17:40 ` John Kitchin
@ 2021-02-21 19:05 ` Adam Sneller
0 siblings, 0 replies; 6+ messages in thread
From: Adam Sneller @ 2021-02-21 19:05 UTC (permalink / raw)
To: John Kitchin; +Cc: emacs-orgmode@gnu.org, Bruce D'Arcus
[-- Attachment #1.1: Type: text/plain, Size: 5349 bytes --]
Thanks John!
I think you have just given me my next homework assignment for "Adam's list of things to noodle around with in eLisp" :)
Adam
> On 21 Feb 2021, at 17:40, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
>
> It seems like some ideas are getting mixed up in your description. A cite link in org-ref is related to a bibtex entry in a bibtex file, not to an org heading in an org-file. In other words in your example, I would expecta bibtex entry with the key bradley1973es to exist in one of the default bibliography files you use (or in the one you define in a bibliography link). The notes are just for your purposes.
>
> the headings/links in your notes file will not show up in any completion backend in org-ref for citation selection, as only the bibtex entries are used to construct those.
>
> If you are looking for a way to select one of those headings from your notes, and then insert the appropriate link, you would have to use something different than org-ref. there is not presently a way to map an annotated cite link to the specific note. I am not even sure you can write a function that does that, as the functions only take a key for looking up the note file, and not the description too. It certainly is possible to write a new function that would work on the link at point to do that, and to call it interactively, or add it as an action though. You would still get the key to open the note file, and then use the link description if it exists to somehow search forward for the relevant heading or text, failing gracefully if you, for example, make a cite to a page you did not make a note on.
>
> When it comes time to authoring a paper, I think the workflow is you would have to open the notes you made, find the section you want to use in your paper, and copy the link you put in your notes to your new document. There are some variations you might consider, but none of them would really be integrated into the org-ref completion mechanisms that are generated from the bibtex entries.
>
> For example you might store the link or parts in a property like this:
>
> * The Accelerator-Multiplier Model
> :PROPERTIES:
> :key: bradley1973es
> :page: p200
> :cite: [[cite:bradley1973es][p200]]
> :END:
>
>
> and then write a small function you use interactively to copy it, e.g.
>
> #+BEGIN_SRC emacs-lisp
> (defun get-link ()
> (interactive)
> (kill-new (org-entry-get (point) "cite")))
> #+END_SRC
>
> and you might bind that to a key if you use it a lot. Alternatively you might put the key in file-level property, and only store the page, and use property inheritance, to build the link. There are a lot of options to choose from. But, simply copying and pasting a link might also be the simplest.
>
> It might be possible to use the org-store/insert-link machinery for this too, but I have found that to be trickier than I thought it should be in the past.
>
> John
>
> -----------------------------------
> Professor John Kitchin
> 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 Sun, Feb 21, 2021 at 12:13 PM Adam Sneller <adam@earth2adam.com <mailto:adam@earth2adam.com>> wrote:
> Hi Bruce/John,
>
> Thanks for getting back to me. So I guess your notes file would look something like this?
>
>
> #+TITLE: Bradley, J. (1973): Essential Mathematics For Economists
>
> * Dynamic models: the consumption function
> [[cite:bradley1973es][p164]]
>
> * Changes in Capital Stock
> [[cite:bradley1973es][p188]]
>
> * The Accelerator-Multiplier Model
> [[cite:bradley1973es][p200]]
>
>
> So when when it comes time to author your paper, if you run org-store-link on any of these, the description gets stripped off the link, so that only cite:bradley1973es is stored (which obviously defeats the purpose). And if you copy the link over by hand, it maps back to the document bradley197es.org <http://bradley197es.org/> (not the actual note).
>
> Am I missing anything?
>
> Adam
>
>> On 21 Feb 2021, at 12:21, Bruce D'Arcus <bdarcus@gmail.com <mailto:bdarcus@gmail.com>> wrote:
>>
>> On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller <adam.sneller@ms2.digital <mailto:adam.sneller@ms2.digital>> wrote:
>>
>>> I currently use org-ref and helm-bibtex to manage my database of academic sources, with one notes file per source. A lot of my sources are books. So note typically grow over time, as I add multiple headers (each pertaining to a chapter or topic/note taken from that source).
>>>
>>> But now I want to produce a citation that references the page numbers where I captured that note...
>>>
>>> What is the recommended way to handle this? Are you breaking notes into individual files, each with their own @inbook citation?
>>
>> Generally speaking, referencing page numbers and sections of a cited
>> source is not handled by dedicated citations, but rather by
>> annotations on the containing citation (book etc.).
>>
>> So in the pandoc syntax, for example, [@book, p23].
>>
>> I do the same with notes, and just included the specific citation with
>> the note if I need to maintain the specific source page.
>>
>> Bruce
>>
>
[-- Attachment #1.2: Type: text/html, Size: 8430 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-02-21 19:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-21 0:26 Citations with page numbers using helm-bibtex and org-ref Adam Sneller
2021-02-21 12:21 ` Bruce D'Arcus
2021-02-21 13:30 ` John Kitchin
2021-02-21 17:13 ` Adam Sneller
2021-02-21 17:40 ` John Kitchin
2021-02-21 19:05 ` Adam Sneller
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).