From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sD8ZBhmvMmBEfAAA0tVLHw (envelope-from ) for ; Sun, 21 Feb 2021 19:06:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CDr4ARmvMmAtJQAA1q6Kng (envelope-from ) for ; Sun, 21 Feb 2021 19:06:01 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 08A96E017 for ; Sun, 21 Feb 2021 20:06:00 +0100 (CET) Received: from localhost ([::1]:58688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDu3L-0004ks-81 for larch@yhetil.org; Sun, 21 Feb 2021 14:05:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDu2j-0004kd-IT for emacs-orgmode@gnu.org; Sun, 21 Feb 2021 14:05:21 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:34054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDu2g-0007ZU-Ka for emacs-orgmode@gnu.org; Sun, 21 Feb 2021 14:05:21 -0500 Received: by mail-wm1-x32b.google.com with SMTP id o10so6542455wmc.1 for ; Sun, 21 Feb 2021 11:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earth2adam-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=bthzgIyQxyFUcMuiAkecZcSNhNdeLMMUC2fuPFK2hgI=; b=ONUtVoFJ8B+NNQ1ovE0Diuj73OpD2flqSUstw0YNoMaCycTi+++6Nc6qJth8Vkp3eF HE5//a9AUs+6EJekNNJ43opc1dmQ6HrtYsa8s1pnq3vsyahIvv7+cJkY0Sx5IKXTYxMh eFbfDX06MZppartuZAWemFrae8fq+PC3G+C6eHj9SpYmeHNWdzbeXXzy01D0nr6EX3CC lktXaAquWgU6KZSeNfTqCchXCtfRrqXfIMUCG2vUjGfBP9C8ObZ6W+BjtVISVzBs5Glg eTN7UoHAdF0pM+iikO2wx6DsAUvYWsV6p56GpnCCSQkzlj6+tTNpLVoI0oe/BgmrlhrE ew8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=bthzgIyQxyFUcMuiAkecZcSNhNdeLMMUC2fuPFK2hgI=; b=DnppYIAiJZO8YXPgg6OpcWxtPE6lk3tuMFkoIGl0qXIlhawhzKB543T+n9r2VuFNY/ un+yikBqN74NAF/nNHAw2New3X+MZ2D4deXLoJXGvbivPEYwlIBdjHFAJ2NFCuA7NyYi I0jQe8cRMFzISVCdOjM9o9pp/cKqi5PdDVEQcqLmQ6Fmz8g+Y0QK0bSRhOGOpyUTZEIk Mm07NZKnQe4URLRtnIlScpC2T8iA+GrI+4J4eqcZqpdG4Hnlp6hd7fujTXFyiuW3YvMo Tgo441A1P+wdXyPHMtmJ8DSu6cD8uPQykOx0mCFxPcXQLYKqD8JpCd28wZfiJJ3cYjq2 q6tA== X-Gm-Message-State: AOAM5337oZyJGmvsL8BSP2Y98kwhPxK/CNtVy+04seMhHBMh+v6JajRq /Z+gecP7R98693rN6fowGqF8rA== X-Google-Smtp-Source: ABdhPJxgKKe/E5+jL9yD57VD66u4VVBSGi1mvXl7jKPrSNRwTmt/lsTKjtdvIx8dpzwV4WrfqZ2H1A== X-Received: by 2002:a05:600c:255:: with SMTP id 21mr7903054wmj.177.1613934316512; Sun, 21 Feb 2021 11:05:16 -0800 (PST) Received: from [192.168.1.14] ([87.75.39.147]) by smtp.gmail.com with ESMTPSA id z5sm26446886wrn.8.2021.02.21.11.05.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Feb 2021 11:05:15 -0800 (PST) Content-Type: multipart/related; type="multipart/alternative"; boundary="Apple-Mail=_CF3E98B8-EC4A-4DCA-A734-85D7936759A9" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: Citations with page numbers using helm-bibtex and org-ref From: Adam Sneller In-Reply-To: Date: Sun, 21 Feb 2021 19:05:15 +0000 X-Mao-Original-Outgoing-Id: 635627114.835909-3a1bf11f8c4d0d8deef50568e93238c3 Message-Id: References: <20A38590-C6E7-4661-8163-078130522DA2@ms2.digital> To: John Kitchin X-Mailer: Apple Mail (2.3445.9.7) Received-SPF: none client-ip=2a00:1450:4864:20::32b; envelope-from=adam@earth2adam.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" , Bruce D'Arcus Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=earth2adam-com.20150623.gappssmtp.com header.s=20150623 header.b=ONUtVoFJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 08A96E017 X-Spam-Score: -0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: GiPlJRXWMgGh --Apple-Mail=_CF3E98B8-EC4A-4DCA-A734-85D7936759A9 Content-Type: multipart/alternative; boundary="07C09f8dF84D75aB_a84B73fE6056a51Ff9_0EfC4E37a43864b1Dec0Adf03" --07C09f8dF84D75aB_a84B73fE6056a51Ff9_0EfC4E37a43864b1Dec0Adf03 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 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 or= g heading in an org-file. In other words in your example, I would expecta bi= btex entry with the key bradley1973es to exist in one of the default bibliog= raphy files you use (or in the one you define in a bibliography link). The n= otes 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 us= ed to construct those. > > If you are looking for a way to select one of those headings from your n= otes, 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 cit= e link to the specific note. I am not even sure you can write a function tha= t 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 functio= n that would work on the link at point to do that, and to call it interactiv= ely, 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 exa= mple, 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 woul= d 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 a= re some variations you might consider, but none of them would really be inte= grated into the org-ref completion mechanisms that are generated from the bi= btex 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 m= ight put the key in file-level property, and only store the page, and use pr= operty 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 > wrote: > Hi Bruce/John, > > Thanks for getting back to me. So I guess your notes file would look some= thing 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-lin= k 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 y= ou 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 > wrote: >> >> On Sat, Feb 20, 2021 at 10:31 PM Adam Sneller > wrote: >> >>> I currently use org-ref and helm-bibtex to manage my database of academ= ic sources, with one notes file per source. A lot of my sources are books. S= o 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 w= here 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 >> > --07C09f8dF84D75aB_a84B73fE6056a51Ff9_0EfC4E37a43864b1Dec0Adf03 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
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 descrip= tion. 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 woul= d expecta bibtex entry with the key bradley1973es to exist in one of the def= ault bibliography files you use (or in the one you define in a bibliography = link). The notes are just for your purposes.

th= e headings/links in your notes file will not show up in any completion backe= nd 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. th= ere is not presently a way to map an annotated cite link to the specific not= e. I am not even sure you can write a function that does that, as the functi= ons only take a key for looking up the note file, and not the description to= o. It certainly is possible to write a new function that would work on the l= ink at point to do that, and to call it interactively, or add it as an actio= n though. You would still get the key to open the note file, and then use th= e link description if it exists to somehow search forward for the relevant h= eading or text, failing gracefully if you, for example, make a cite to a pag= e 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 y= our 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.

<= /div>
For example you  might store the link or parts in = a property like this:

* The Accelerator-Multiplier Model
  :PROPERTIES:  :key:      bradley1973es
&n= bsp; :page:     p200
  :cite: [[cite:bradley197= 3es][p200]]
  :END:


and then = write a small function you use interactively to copy it, e.g.

#+BEGIN_SRC emacs-lisp
(defun get-link ()
  (interactive)
&n= bsp; (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 t= he key in file-level property, and only store the page, and use property inh= eritance, 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 t= rickier than I thought it should be in the past.

John

-----= ------------------------------
Professor John Kitchin Doherty Hall A207F
Department of Chemical Engineer= ing
Carnegie Mellon University
Pittsburgh, PA 15= 213
412-268-7803

<= br class=3D"">
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 Mathema= tics For Economists

* Dynamic models: the consumption function
[[cite:bra= dley1973es][p164]]

* Changes in Capital Stock
[[cite:bradley1973es][p188]= ]

* The Accelerato= r-Multiplier Model
[[cite:bradley1973es][p200]]


So when when it comes time to author your paper, if you ru= n 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 pur= pose). And if you copy the link over by hand, it maps back to the document <= a href=3D"http://bradley197es.org/" target=3D"_blank" class=3D"">bradley197e= s.org (not the actual note).

<= div class=3D"">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-bibt= ex 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 numbe= rs and sections of a cited
source is not handled by dedicated = citations, but rather by
annotations on the containing citatio= n (book etc.).

So in the pandoc syntax, for exa= mple, [@book, p23].

I do the same with notes, a= nd just included the specific citation with
the note if I need= to maintain the specific source page.

Bruce


--07C09f8dF84D75aB_a84B73fE6056a51Ff9_0EfC4E37a43864b1Dec0Adf03-- --Apple-Mail=_CF3E98B8-EC4A-4DCA-A734-85D7936759A9--