From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: org-ref code Date: Wed, 30 Apr 2014 16:59:34 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11343f945a91e004f848d368 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfbbP-0000g9-I6 for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 16:59:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfbbN-0006x9-TB for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 16:59:39 -0400 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:61873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfbbN-0006wr-M4 for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 16:59:37 -0400 Received: by mail-pd0-f180.google.com with SMTP id x10so2232403pdj.25 for ; Wed, 30 Apr 2014 13:59:34 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --001a11343f945a91e004f848d368 Content-Type: text/plain; charset=UTF-8 Greetings, All the talk about citations in org-mode inspired me to finish and polish some code I have been working on for my group for a while on bibtex/reftex/org-mode integration. I packaged it up in a literate programming org-file here: https://github.com/jkitchin/jmax/blob/master/org-ref.org. You can tangle the org-ref.el code out of the org-file. There are probably still some bugs in it, but it does pretty amazing things. Mostly, it defines several new functional links for labels, references to labels, citations, bibliography, list of tables and figures, and a handful of utility functions I find useful. I think it is a standalone package now. I would be grateful if anyone tried it, and let me know if it does not work as advertised ;) John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --001a11343f945a91e004f848d368 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Greetings,

All the talk about = citations in org-mode inspired me to finish and polish some code I have bee= n working on for my group for a while on bibtex/reftex/org-mode integration= . I packaged it up in a literate programming org-file here: https://github.com/jk= itchin/jmax/blob/master/org-ref.org.

You can tangle the org-ref.el code out of the org-file. There are= probably still some bugs in it, but it does pretty amazing things. Mostly,= it defines several new functional links for labels, references to labels, = citations, bibliography, list of tables and figures, and a handful of utili= ty functions I find useful.

I think it is a standalone package now. I would be grateful if an= yone tried it, and let me know if it does not work as advertised ;)

John

------------------------= -----------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of = Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213<= br>412-268-7803
http://kitchingroup.cheme.cmu.edu

--001a11343f945a91e004f848d368-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 1 May 2014 07:23:44 +0100 Message-ID: <87fvku81an.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfkPr-0002lO-LO for emacs-orgmode@gnu.org; Thu, 01 May 2014 02:24:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfkPl-0003hP-Jz for emacs-orgmode@gnu.org; Thu, 01 May 2014 02:24:19 -0400 Received: from mail-db3lp0080.outbound.protection.outlook.com ([213.199.154.80]:32011 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfkPl-0003gv-Ao for emacs-orgmode@gnu.org; Thu, 01 May 2014 02:24:13 -0400 In-Reply-To: (John Kitchin's message of "Wed, 30 Apr 2014 16:59:34 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Wednesday, 30 Apr 2014 at 16:59, John Kitchin wrote: > Greetings, > > All the talk about citations in org-mode inspired me to finish and polish > some code I have been working on for my group for a while on > bibtex/reftex/org-mode integration. I packaged it up in a literate > programming org-file here: > https://github.com/jkitchin/jmax/blob/master/org-ref.org. Hi John, Thanks for this. I'll play with it as it looks like a really nice collection of utilities for links and I must admit that I still find I under-use org links. I'll post any feedback here in due course. One quick comment: I think it's bad practice to define global bindings for Fxx keys in a package. Let the user define these keys outside the package maybe? I have F10 and F12 defined to some very common actions for me (recentf and org-clock). Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 1 May 2014 11:01:30 +0100 Message-ID: <878uql7r7p.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfnoF-0004bC-20 for emacs-orgmode@gnu.org; Thu, 01 May 2014 06:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfno7-0003wG-H9 for emacs-orgmode@gnu.org; Thu, 01 May 2014 06:01:43 -0400 Received: from mail-am1lp0014.outbound.protection.outlook.com ([213.199.154.14]:34181 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfno7-0003w9-B8 for emacs-orgmode@gnu.org; Thu, 01 May 2014 06:01:35 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" John, I've been playing with the package although, so far, only for citations. A few points: 1. Do you have any support for choosing the type of citation entry (i.e. \cite versus \autocite versus ...) when inserting a citation in the text? 2. You define org-link-types. Unfortunately, this overwrites my own definitions, especially for "cite". I wonder whether this type of customisation belongs in org-ref itself. This is similar to my earlier comment about key bindings, I guess. 3. I sometimes use biblatex instead of bibtex. As a result, I do not use \bibliography and use \addbibresource instead. I have defined my bibliography files in org-ref-default-bibliography but this is only picked up on initialisation. It is difficult to update this for a document in progress (I had to locally set reftex-default-bibliography manually). 4. The customisation interface for org-ref-default-bibliography should be list aware... Otherwise, seems to working just fine. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seb Frank Subject: Re: org-ref code Date: Thu, 1 May 2014 08:21:15 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e137195cfac04f855b3aa Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfpzK-0002hd-AH for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfpzJ-0008MS-4L for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:21:18 -0400 Received: from mail-ie0-x234.google.com ([2607:f8b0:4001:c03::234]:63005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfpzI-0008MI-TU for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:21:17 -0400 Received: by mail-ie0-f180.google.com with SMTP id as1so3439755iec.39 for ; Thu, 01 May 2014 05:21:15 -0700 (PDT) In-Reply-To: <878uql7r7p.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7b2e137195cfac04f855b3aa Content-Type: text/plain; charset=UTF-8 Hi Eric, Now that you have mentioned it, do you have a good web resource / manual for your set up, or would you mind sharing bits of it? It looks eminently useful. I have a set up largely following this http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/ but I wouldn't know how to get some of the things you mention (type of citation entry, biblatex vs latex etc.) to work. Thanks, Seb On Thu, May 1, 2014 at 6:01 AM, Eric S Fraga wrote: > John, > > I've been playing with the package although, so far, only for > citations. A few points: > > 1. Do you have any support for choosing the type of citation entry > (i.e. \cite versus \autocite versus ...) when inserting a > citation in the text? > > 2. You define org-link-types. Unfortunately, this overwrites my own > definitions, especially for "cite". I wonder whether this type > of customisation belongs in org-ref itself. This is similar to > my earlier comment about key bindings, I guess. > > 3. I sometimes use biblatex instead of bibtex. As a result, I do not > use \bibliography and use \addbibresource instead. I have > defined my bibliography files in org-ref-default-bibliography but > this is only picked up on initialisation. It is difficult to > update this for a document in progress (I had to locally set > reftex-default-bibliography manually). > > 4. The customisation interface for org-ref-default-bibliography should be > list aware... > > Otherwise, seems to working just fine. > > Thanks, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 > > --047d7b2e137195cfac04f855b3aa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eric,

Now that you have mentione= d it, do you have a good web resource / manual for your set up, or would yo= u mind sharing bits of it? It looks eminently useful. I have a set up large= ly following this

http://tincman.wordpress.com/2011/01= /04/research-paper-management-with-emacs-org-mode-and-reftex/

but I wouldn't know how to get some of the things you mention (ty= pe of citation entry, biblatex vs latex etc.) to work.

Thanks,
=C2=A0 Seb

On Thu, May 1, 2014 at 6:01 AM, Eric S Fraga <e.fraga@ucl.ac.uk>= wrote:
John,

I've been playing with the package although, so far, only for
citations. =C2=A0A few points:

1. Do you have any support for choosing the type of citation entry
=C2=A0 =C2=A0 =C2=A0(i.e. \cite versus \autocite versus ...) when inserting= a
=C2=A0 =C2=A0 =C2=A0citation in the text?

2. You define org-link-types. =C2=A0Unfortunately, this overwrites my own =C2=A0 =C2=A0 =C2=A0definitions, especially for "cite". =C2=A0I w= onder whether this type
=C2=A0 =C2=A0 =C2=A0of customisation belongs in org-ref itself. =C2=A0This = is similar to
=C2=A0 =C2=A0 =C2=A0my earlier comment about key bindings, I guess.

3. I sometimes use biblatex instead of bibtex. =C2=A0As a result, I do not<= br> =C2=A0 =C2=A0 =C2=A0use \bibliography and use \addbibresource instead. =C2= =A0I have
=C2=A0 =C2=A0 =C2=A0defined my bibliography files in org-ref-default-biblio= graphy but
=C2=A0 =C2=A0 =C2=A0this is only picked up on initialisation. =C2=A0It is d= ifficult to
=C2=A0 =C2=A0 =C2=A0update this for a document in progress (I had to locall= y set
=C2=A0 =C2=A0 =C2=A0reftex-default-bibliography manually).

4. The customisation interface for org-ref-default-bibliography should be =C2=A0 =C2=A0 =C2=A0list aware...

Otherwise, seems to working just fine.

Thanks,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11=


--047d7b2e137195cfac04f855b3aa-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 1 May 2014 08:36:57 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5dbcc2bbd52304f855eb19 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfqEW-0005mO-Ca for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:37:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfqEV-00067V-95 for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:37:00 -0400 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:62384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfqEU-00067M-U7 for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:36:59 -0400 Received: by mail-pa0-f49.google.com with SMTP id kq14so3566056pab.22 for ; Thu, 01 May 2014 05:36:57 -0700 (PDT) In-Reply-To: <878uql7r7p.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7b5dbcc2bbd52304f855eb19 Content-Type: text/plain; charset=UTF-8 Thanks for the feedback. I moved the key-bindings for f10-12 out of org-ref. On Thu, May 1, 2014 at 6:01 AM, Eric S Fraga wrote: > John, > > I've been playing with the package although, so far, only for > citations. A few points: > > 1. Do you have any support for choosing the type of citation entry > (i.e. \cite versus \autocite versus ...) when inserting a > citation in the text? > Not at the moment. There are a few ways I can see doing this. With the existing code, you can do M-x reftex-citation, select the format you want and select the references. We could easily enough define additional formats for other citation types. I found this way of inserting citations annoying, because 99.99% of the time I want a simple cite link, and pressing C-c ] return regexp marking return was too much for me ( > > 2. You define org-link-types. Unfortunately, this overwrites my own > definitions, especially for "cite". I wonder whether this type > of customisation belongs in org-ref itself. This is similar to > my earlier comment about key bindings, I guess. > > 3. I sometimes use biblatex instead of bibtex. As a result, I do not > use \bibliography and use \addbibresource instead. I have > defined my bibliography files in org-ref-default-bibliography but > this is only picked up on initialisation. It is difficult to > update this for a document in progress (I had to locally set > reftex-default-bibliography manually). > > 4. The customisation interface for org-ref-default-bibliography should be > list aware... > > Otherwise, seems to working just fine. > > Thanks, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 > --047d7b5dbcc2bbd52304f855eb19 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for the feedback. I moved the key-bindings for f10-= 12 out of org-ref.


On Thu, May 1, 2014 at 6:01 AM, Eric S F= raga <e.fraga@ucl.ac.uk> wrote:
John,

I've been playing with the package although, so far, only for
citations. =C2=A0A few points:

1. Do you have any support for choosing the type of citation entry
=C2=A0 =C2=A0 =C2=A0(i.e. \cite versus \autocite versus ...) when inserting= a
=C2=A0 =C2=A0 =C2=A0citation in the text?

Not at the moment. There are a few ways I can see doing this. With the e= xisting code, you can do M-x reftex-citation, select the format you want an= d select the references. We could easily enough define additional formats f= or other citation types. I found this way of inserting citations annoying, = because 99.99% of the time I want a simple cite link, and pressing=C2=A0 C-= c ] return regexp marking return was too much for me (
=C2=A0
=C2=A0

2. You define org-link-types. =C2=A0Unfortunately, this overwrites my own =C2=A0 =C2=A0 =C2=A0definitions, especially for "cite". =C2=A0I w= onder whether this type
=C2=A0 =C2=A0 =C2=A0of customisation belongs in org-ref itself. =C2=A0This = is similar to
=C2=A0 =C2=A0 =C2=A0my earlier comment about key bindings, I guess.

3. I sometimes use biblatex instead of bibtex. =C2=A0As a result, I do not<= br> =C2=A0 =C2=A0 =C2=A0use \bibliography and use \addbibresource instead. =C2= =A0I have
=C2=A0 =C2=A0 =C2=A0defined my bibliography files in org-ref-default-biblio= graphy but
=C2=A0 =C2=A0 =C2=A0this is only picked up on initialisation. =C2=A0It is d= ifficult to
=C2=A0 =C2=A0 =C2=A0update this for a document in progress (I had to locall= y set
=C2=A0 =C2=A0 =C2=A0reftex-default-bibliography manually).

4. The customisation interface for org-ref-default-bibliography should be =C2=A0 =C2=A0 =C2=A0list aware...

Otherwise, seems to working just fine.

Thanks,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11=

--047d7b5dbcc2bbd52304f855eb19-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 1 May 2014 08:47:01 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5dbcc2b85b9504f8560fd9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfqOG-0008Jk-Ga for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfqOF-0001IS-1C for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:47:04 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:45105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfqOE-0001IO-Lt for emacs-orgmode@gnu.org; Thu, 01 May 2014 08:47:02 -0400 Received: by mail-pa0-f52.google.com with SMTP id kx10so3588180pab.25 for ; Thu, 01 May 2014 05:47:01 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7b5dbcc2b85b9504f8560fd9 Content-Type: text/plain; charset=UTF-8 sorry, premature send! On Thu, May 1, 2014 at 8:36 AM, John Kitchin wrote: > Thanks for the feedback. I moved the key-bindings for f10-12 out of > org-ref. > > > On Thu, May 1, 2014 at 6:01 AM, Eric S Fraga wrote: > >> John, >> >> I've been playing with the package although, so far, only for >> citations. A few points: >> >> 1. Do you have any support for choosing the type of citation entry >> (i.e. \cite versus \autocite versus ...) when inserting a >> citation in the text? >> > > Not at the moment. There are a few ways I can see doing this. With the > existing code, you can do M-x reftex-citation, select the format you want > and select the references. We could easily enough define additional formats > for other citation types. I found this way of inserting citations annoying, > because 99.99% of the time I want a simple cite link, and pressing C-c ] > return regexp marking return was too much for me (I cite a lot). I also > found this method was not flexible, in the sense that it was not easy to > add citations to an existing citation. That is why there is an ?a option to > append citations in the code. > an alternative would be to use a prefix command that gave you an option to change the cite format, similar to the minibuffer menu for cite links. I have not written much prefix code before, but I will try that out. > > >> >> 2. You define org-link-types. Unfortunately, this overwrites my own >> definitions, especially for "cite". I wonder whether this type >> of customisation belongs in org-ref itself. This is similar to >> my earlier comment about key bindings, I guess. >> > In the end, the link definitions can be as short as this: #+BEGIN_SRC emacs-lisp :tangle org-ref.el (org-add-link-type "cite" 'org-ref-cite-onclick-minibuffer-menu 'org-ref-cite-link-format) #+END_SRC I wrote this for my research group to use, and eventually the links have to be defined somewhere. I am not sure what the best place would be. It is an interesting issue of reproducibility though. Two people with different link definitions would get different results. >> 3. I sometimes use biblatex instead of bibtex. As a result, I do not >> use \bibliography and use \addbibresource instead. I have >> defined my bibliography files in org-ref-default-bibliography but >> this is only picked up on initialisation. It is difficult to >> update this for a document in progress (I had to locally set >> reftex-default-bibliography manually). >> > It should be easy enough to make an addbibresource link that does the same thing as the bibliography link. And maybe to modify the find-bibliography code to check for that too. I have never used biblatex though, so I dont have any experience with it. > >> 4. The customisation interface for org-ref-default-bibliography should be >> list aware... >> > I think I fixed this. > >> Otherwise, seems to working just fine. >> >> Thanks, >> eric >> >> -- >> : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org >> release_8.2.6-923-g233c11 >> > > --047d7b5dbcc2b85b9504f8560fd9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
sorry, premature send!

<= br>
On Thu, May 1, 2014 at 8:36 AM, John Kitchin = <jkitchin@andrew.cmu.edu> wrote:
Thanks f= or the feedback. I moved the key-bindings for f10-12 out of org-ref.


On Thu, May 1, 2014 at 6= :01 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
John,

I've been playing with the package although, so far, only for
citations. =C2=A0A few points:

1. Do you have any support for choosing the type of citation entry
=C2=A0 =C2=A0 =C2=A0(i.e. \cite versus \autocite versus ...) when inserting= a
=C2=A0 =C2=A0 =C2=A0citation in the text?

Not at the moment. There are a few ways I can see doing this. With= the existing code, you can do M-x reftex-citation, select the format you w= ant and select the references. We could easily enough define additional for= mats for other citation types. I found this way of inserting citations anno= ying, because 99.99% of the time I want a simple cite link, and pressing=C2= =A0 C-c ] return regexp marking return was too much for me (I cite a lot). = I also found this method was not flexible, in the sense that it was not eas= y to add citations to an existing citation. That is why there is an ?a opti= on to append citations in the code.

an alternative wou= ld be to use a prefix command that gave you an option to change the cite fo= rmat, similar to the minibuffer menu for cite links. I have not written muc= h prefix code before, but I will try that out.

=C2=A0
=C2=A0

2. You define org-link-types. =C2=A0Unfortunately, this overwrites my own =C2=A0 =C2=A0 =C2=A0definitions, especially for "cite". =C2=A0I w= onder whether this type
=C2=A0 =C2=A0 =C2=A0of customisation belongs in org-ref itself. =C2=A0This = is similar to
=C2=A0 =C2=A0 =C2=A0my earlier comment about key bindings, I guess.

In the en= d, the link definitions can be as short as this:

#+BEGIN_SRC emacs-l= isp :tangle org-ref.el
(org-add-link-type
=C2=A0"cite"
=C2=A0'org-ref-cite-onc= lick-minibuffer-menu
=C2=A0'org-ref-cite-link-format)
#+END_SRC
I wrote this for my research group to use, and eventually = the links have to be defined somewhere. I am not sure what the best place w= ould be. It is an interesting issue of reproducibility though. Two people w= ith different link definitions would get different results.


3. I sometimes use biblatex instead of bibtex. =C2=A0As a result, I do not<= br> =C2=A0 =C2=A0 =C2=A0use \bibliography and use \addbibresource instead. =C2= =A0I have
=C2=A0 =C2=A0 =C2=A0defined my bibliography files in org-ref-default-biblio= graphy but
=C2=A0 =C2=A0 =C2=A0this is only picked up on initialisation. =C2=A0It is d= ifficult to
=C2=A0 =C2=A0 =C2=A0update this for a document in progress (I had to locall= y set
=C2=A0 =C2=A0 =C2=A0reftex-default-bibliography manually).
=

It should be easy = enough to make an addbibresource link that does the same thing as the bibli= ography link. And maybe to modify the find-bibliography code to check for t= hat too. I have never used biblatex though, so I dont have any experience w= ith it.
=C2=A0

4. The customisation interface for org-ref-default-bibliography should be =C2=A0 =C2=A0 =C2=A0list aware...
<= /blockquote>

I think I fixed this.
=C2=A0

Otherwise, seems to working just fine.

Thanks,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11=


--047d7b5dbcc2b85b9504f8560fd9-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 1 May 2014 14:30:35 +0100 Message-ID: <87eh0d62ys.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfr4e-0001cS-VI for emacs-orgmode@gnu.org; Thu, 01 May 2014 09:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfr4U-00084F-6C for emacs-orgmode@gnu.org; Thu, 01 May 2014 09:30:52 -0400 Received: from mail-db3lp0083.outbound.protection.outlook.com ([213.199.154.83]:11480 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfr4T-000826-Hx for emacs-orgmode@gnu.org; Thu, 01 May 2014 09:30:41 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 1 May 2014 at 08:47, John Kitchin wrote: [...] Hi John, thanks for your quick response! > an alternative would be to use a prefix command that gave you an option to > change the cite format, similar to the minibuffer menu for cite links. I > have not written much prefix code before, but I will try that out. This would be good, with many a way of stating the default one would like? For instance, for grant proposals, I often use autocite in biblatex for generating citations as footnotes whereas for research papers I use cite most often. > In the end, the link definitions can be as short as this: > > #+BEGIN_SRC emacs-lisp :tangle org-ref.el > (org-add-link-type > "cite" > 'org-ref-cite-onclick-minibuffer-menu > 'org-ref-cite-link-format) > #+END_SRC My comment was not so much the definitions you used but that you were overwriting those that I had already defined. Your definitions were arguably better than mine so maybe I was being a bit picky here... :) > I wrote this for my research group to use, and eventually the links have to > be defined somewhere. I am not sure what the best place would be. It is an > interesting issue of reproducibility though. Two people with different link > definitions would get different results. Yes, this is true but there is so much that can be customised in org that you will never have reproducibility at this level (e.g. handling of latex snippets, code listings, even latex classes). I would leave something like this to a separate set of code that is not part of org-ref. > It should be easy enough to make an addbibresource link that does the same > thing as the bibliography link. And maybe to modify the find-bibliography > code to check for that too. I have never used biblatex though, so I dont > have any experience with it. I have only started using biblatex recently, and that was because I wanted to use autocite. The only change I had to make was \bibliography to \addbibresource. I still use the same bibtex files. Of course, others may be making more effective use of biblatex... >>> 4. The customisation interface for org-ref-default-bibliography should be >>> list aware... >> > I think I fixed this. Thanks! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 1 May 2014 15:08:59 +0100 Message-ID: <87tx994mmc.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfrft-0000fW-Va for emacs-orgmode@gnu.org; Thu, 01 May 2014 10:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfrfn-0003QF-7x for emacs-orgmode@gnu.org; Thu, 01 May 2014 10:09:21 -0400 Received: from mail-am1lp0013.outbound.protection.outlook.com ([213.199.154.13]:8280 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfrfm-0003Pf-V4 for emacs-orgmode@gnu.org; Thu, 01 May 2014 10:09:15 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Seb Frank Cc: "emacs-orgmode@gnu.org" , John Kitchin On Thursday, 1 May 2014 at 08:21, Seb Frank wrote: > Hi Eric, > > Now that you have mentioned it, do you have a good web resource / manual > for your set up, or would you mind sharing bits of it? It looks eminently > useful. I have a set up largely following this > > http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/ > > but I wouldn't know how to get some of the things you mention (type of > citation entry, biblatex vs latex etc.) to work. Hi Seb, I don't have much of a setup, actually. You already do much more than I do! I tend to do things manually until somebody else posts something useful already configured (like John has just done). For instance, I simply use C-c C-l to store a link manually, typing in the type of link (cite vs autocite) and the bibtex key directly. I used to use reftex with org but found it got in the way although I cannot now remember how or why! When in doubt, I resort to LaTeX. I have been using LaTeX for 30 years or so. The beauty of org is that it allows me to fall back to LaTeX without any hassle for most things. I suffer (or have suffered badly in the past) from RSI so my main concern is having things that are easy to type but paradoxically I don't have a problem with typing normal text and I do touch type quickly. I use evil mode which means I can avoid most chorded commands. To use org, I have bound many org commands to keys in the normal state mode map in evil. For instance, I have org-export-dispatch assigned to ", e" so I can export to pdf and view it in emacs by typing ", e l o". I have similar key bindings for many org commands. For instance, "t" on a headline will invoke org-todo. ", n" and ", p" move to next and previous headlines, "<" to org-metaleft, etc. The aim is to avoid all or most M- and especially M-S- key bindings which kill my hands. C- is not so bad but I avoid even these if possible. I use a few yasnippets and make significant use of abbrev mode in Emacs to help with typing. I also make use of org's own snippet system. Sorry I cannot be more helpful and thanks for the link to your setup. eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 1 May 2014 13:07:35 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d95d099a07804f859b359 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfuSR-0001Vq-6T for emacs-orgmode@gnu.org; Thu, 01 May 2014 13:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfuSP-0002Pl-5a for emacs-orgmode@gnu.org; Thu, 01 May 2014 13:07:39 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:33302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfuSO-0002PW-Pw for emacs-orgmode@gnu.org; Thu, 01 May 2014 13:07:37 -0400 Received: by mail-pa0-f48.google.com with SMTP id hz1so3921359pad.35 for ; Thu, 01 May 2014 10:07:35 -0700 (PDT) In-Reply-To: <87eh0d62ys.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7b6d95d099a07804f859b359 Content-Type: text/plain; charset=UTF-8 I implemented some of this partially. I made it so you can specify the default cite link in a user variable, with a default of cite. When you type C-c ], this format will automatically be used. If you want to choose another format, type C-u C-c ] which will prompt you for a type, and then use the reftex-citation command to complete it. I added most of the citation types I know of to this. Most of those will not work with completion. I did make the cite link completion function use the default link type, so that it will at least do what you want. I might add completion functions for all the link types, it is just a lot of cut and pasting. and I do not use that much. I just wanted to see if I could do it ;) I also added addbibresource as a link type, and updated org-ref to be able to use that instead of bibliography. Thanks for the ideas! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 1, 2014 at 9:30 AM, Eric S Fraga wrote: > On Thursday, 1 May 2014 at 08:47, John Kitchin wrote: > > [...] > > Hi John, > > thanks for your quick response! > > > an alternative would be to use a prefix command that gave you an option > to > > change the cite format, similar to the minibuffer menu for cite links. I > > have not written much prefix code before, but I will try that out. > > This would be good, with many a way of stating the default one would > like? For instance, for grant proposals, I often use autocite in > biblatex for generating citations as footnotes whereas for research > papers I use cite most often. > > > In the end, the link definitions can be as short as this: > > > > #+BEGIN_SRC emacs-lisp :tangle org-ref.el > > (org-add-link-type > > "cite" > > 'org-ref-cite-onclick-minibuffer-menu > > 'org-ref-cite-link-format) > > #+END_SRC > > My comment was not so much the definitions you used but that you were > overwriting those that I had already defined. Your definitions were > arguably better than mine so maybe I was being a bit picky here... :) > > > I wrote this for my research group to use, and eventually the links have > to > > be defined somewhere. I am not sure what the best place would be. It is > an > > interesting issue of reproducibility though. Two people with different > link > > definitions would get different results. > > Yes, this is true but there is so much that can be customised in org > that you will never have reproducibility at this level (e.g. handling of > latex snippets, code listings, even latex classes). I would leave > something like this to a separate set of code that is not part of > org-ref. > > > It should be easy enough to make an addbibresource link that does the > same > > thing as the bibliography link. And maybe to modify the find-bibliography > > code to check for that too. I have never used biblatex though, so I dont > > have any experience with it. > > I have only started using biblatex recently, and that was because I > wanted to use autocite. The only change I had to make was \bibliography > to \addbibresource. I still use the same bibtex files. Of course, > others may be making more effective use of biblatex... > > >>> 4. The customisation interface for org-ref-default-bibliography should > be > >>> list aware... > >> > > I think I fixed this. > > Thanks! > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 > --047d7b6d95d099a07804f859b359 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I implemented some of this partially. I made it = so you can specify the default cite link in a user variable, with a default= of cite. When you type C-c ], this format will automatically be used. If y= ou want to choose another format, type C-u C-c ] which will prompt you for = a type, and then use the reftex-citation command to complete it. I added mo= st of the citation types I know of to this. Most of those will not work wit= h completion. I did make the cite link completion function use the default = link type, so that it will at least do what you want. I might add completio= n functions for all the link types, it is just a lot of cut and pasting. an= d I do not use that much. I just wanted to see if I could do it ;)

I also added addbibresource as a link type, and updated org-ref t= o be able to use that instead of bibliography.

Thanks for the = ideas!

John

-----------------------------------
John Kitchin
Associate Profes= sor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie= Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.chem= e.cmu.edu



On Thu, May 1, 2014 at 9:30 AM, Eric S F= raga <e.fraga@ucl.ac.uk> wrote:
On Thursday, =C2=A01 May 2014 at 08:47, John Kitchin wrote:

[...]

Hi John,

thanks for your quick response!

> an alternative would be to use a prefix command that gave you an optio= n to
> change the cite format, similar to the minibuffer menu for cite links.= I
> have not written much prefix code before, but I will try that out.

This would be good, with many a way of stating the default one would<= br> like? =C2=A0For instance, for grant proposals, I often use autocite in
biblatex for generating citations as footnotes whereas for research
papers I use cite most often.

> In the end, the link definitions can be as short as this:
>
> #+BEGIN_SRC emacs-lisp :tangle org-ref.el
> (org-add-link-type
> =C2=A0"cite"
> =C2=A0'org-ref-cite-onclick-minibuffer-menu
> =C2=A0'org-ref-cite-link-format)
> #+END_SRC

My comment was not so much the definitions you used but that you were=
overwriting those that I had already defined. =C2=A0Your definitions were arguably better than mine so maybe I was being a bit picky here... :)

> I wrote this for my research group to use, and eventually the links ha= ve to
> be defined somewhere. I am not sure what the best place would be. It i= s an
> interesting issue of reproducibility though. Two people with different= link
> definitions would get different results.

Yes, this is true but there is so much that can be customised in org<= br> that you will never have reproducibility at this level (e.g. handling of latex snippets, code listings, even latex classes). =C2=A0I would leave
something like this to a separate set of code that is not part of
org-ref.

> It should be easy enough to make an addbibresource link that does the = same
> thing as the bibliography link. And maybe to modify the find-bibliogra= phy
> code to check for that too. I have never used biblatex though, so I do= nt
> have any experience with it.

I have only started using biblatex recently, and that was because I wanted to use autocite. =C2=A0The only change I had to make was \bibliograp= hy
to \addbibresource. =C2=A0I still use the same bibtex files. =C2=A0Of cours= e,
others may be making more effective use of biblatex...

>>> 4. The customisation interface for org-ref-default-bibliograph= y should be
>>> =C2=A0 =C2=A0 =C2=A0list aware...
>>
> I think I fixed this.

Thanks!
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11=

--047d7b6d95d099a07804f859b359-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: org-ref code Date: Thu, 8 May 2014 10:31:56 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_89E0B34D-D478-479D-80D9-6CBFBB2C0645" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiJkM-0006g3-RG for emacs-orgmode@gnu.org; Thu, 08 May 2014 04:32:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiJkH-0007fg-Cl for emacs-orgmode@gnu.org; Thu, 08 May 2014 04:32:06 -0400 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:50448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiJkH-0007fR-05 for emacs-orgmode@gnu.org; Thu, 08 May 2014 04:32:01 -0400 Received: by mail-ee0-f49.google.com with SMTP id e53so1413770eek.22 for ; Thu, 08 May 2014 01:31:59 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: org-mode mailing list --Apple-Mail=_89E0B34D-D478-479D-80D9-6CBFBB2C0645 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >=20 > All the talk about citations in org-mode inspired me to finish and = polish some code I have been working on for my group for a while on = bibtex/reftex/org-mode integration. I packaged it up in a literate = programming org-file here: = https://github.com/jkitchin/jmax/blob/master/org-ref.org. >=20 Thanks John. This looks very useful.=20 Do you plan to add this to org-mode/contrib? I was wondering if it would be useful to change the default keybinding = C-c ] to C-c ) instead, since C-c ] is by default bound to = org-remove-file. Vikas --Apple-Mail=_89E0B34D-D478-479D-80D9-6CBFBB2C0645 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

All the talk about citations in org-mode inspired me to finish and polish some code I have been working on for my group for a while on bibtex/reftex/org-mode integration. I packaged it up in a literate programming org-file here: https://github.com/jkitchin/jmax/blob/master/org-ref.org.


Thanks John. This looks very useful. 

Do you plan to add this to org-mode/contrib?

I was wondering if it would be useful to change the default keybinding C-c ] to C-c ) instead, since C-c ] is by default bound to org-remove-file.

Vikas

--Apple-Mail=_89E0B34D-D478-479D-80D9-6CBFBB2C0645-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 8 May 2014 09:53:56 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428a6ce8951704f8e3cf12 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOls-00059a-KZ for emacs-orgmode@gnu.org; Thu, 08 May 2014 09:54:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiOlp-0003x5-Sl for emacs-orgmode@gnu.org; Thu, 08 May 2014 09:54:00 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:37036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOlp-0003wX-L4 for emacs-orgmode@gnu.org; Thu, 08 May 2014 09:53:57 -0400 Received: by mail-wi0-f178.google.com with SMTP id hm4so3118724wib.17 for ; Thu, 08 May 2014 06:53:56 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vikas Rawal Cc: org-mode mailing list --f46d04428a6ce8951704f8e3cf12 Content-Type: text/plain; charset=UTF-8 I added a user variable for that key-binding. I like C-c ] because there is no shift to get ). You can set org-ref-insert-cite-key to what ever shortcut you prefer now. I would prefer to keep org-ref where it is until it "stabilizes". This summer my group will be using it pretty extensively for writing papers, so I anticipate by this fall it will be pretty stable. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 8, 2014 at 4:31 AM, Vikas Rawal wrote: > > > All the talk about citations in org-mode inspired me to finish and polish > some code I have been working on for my group for a while on > bibtex/reftex/org-mode integration. I packaged it up in a literate > programming org-file here: > https://github.com/jkitchin/jmax/blob/master/org-ref.org. > > > Thanks John. This looks very useful. > > Do you plan to add this to org-mode/contrib? > > I was wondering if it would be useful to change the default keybinding C-c > ] to C-c ) instead, since C-c ] is by default bound to org-remove-file. > > Vikas > > --f46d04428a6ce8951704f8e3cf12 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I added a user variable for that key-binding. I like = C-c ] because there is no shift to get ). You can set org-ref-insert-cite-k= ey to what ever shortcut you prefer now.

I would pr= efer to keep org-ref where it is until it "stabilizes". This summ= er my group will be using it pretty extensively for writing papers, so I an= ticipate by this fall it will be pretty stable.

John

-------= ----------------------------
John Kitchin
Associate Professor
Dohe= rty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Uni= versity
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Thu, May 8, 2014 at 4:31 AM, Vikas Ra= wal <vikasrawal@gmail.com> wrote:


All the talk about ci= tations in org-mode inspired me to finish and polish some code I have been = working on for my group for a while on bibtex/reftex/org-mode integration. = I packaged it up in a literate programming org-file here: https= ://github.com/jkitchin/jmax/blob/master/org-ref.org.


Thanks John. = This looks very useful.=C2=A0

Do you plan to add this to= org-mode/contrib?

I was wondering if it would be = useful to change the default keybinding C-c ] to C-c ) instead, since C-c ]= is by default bound to org-remove-file.

Vikas


--f46d04428a6ce8951704f8e3cf12-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Sat, 10 May 2014 15:44:45 +0100 Message-ID: <87lhu9ofqa.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj8WP-0000RQ-Ch for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:45:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj8WH-0001Sb-49 for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:45:05 -0400 Received: from mail-db3lp0077.outbound.protection.outlook.com ([213.199.154.77]:43909 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj8WG-0001SJ-S6 for emacs-orgmode@gnu.org; Sat, 10 May 2014 10:44:57 -0400 In-Reply-To: (John Kitchin's message of "Thu, 1 May 2014 13:07:35 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 1 May 2014 at 13:07, John Kitchin wrote: > I implemented some of this partially. I made it so you can specify the > default cite link in a user variable, with a default of cite. When you type > C-c ], this format will automatically be used. If you want to choose > another format, type C-u C-c ] which will prompt you for a type, and then Hi John, I am having problems with org-ref and am obviously missing something trivial. I downloaded the latest version yesterday (Friday). You don't say, in the above, what function you actually bound to C-c ] but I bound org-ref-insert-cite-link and that doesn't seem to work: 1. C-u on it does not give me a choice of citation method 2. the link inserted "looks" like a link (it's blue) but there are actually no [[...]] characters surrounding it. What am I missing? Am I expected to type the [[]] or use C-c C-l? I would like to C-u C-c ], choose autocite and my refs and have your code insert [[autocite:blah-2001,joe-2010,moe-2014]] into my org buffer. I know I can change the default citation link type through org-ref-default-citation-link but I want the C-u functionality. Finally, looking at the code, it would appear that appending new citations will only work for "cite:" links as the "cite:" is hard-coded into the code? thanks again, eric PS - I'm a fellow Chemical Engineer but unfortunately have not yet had the opportunity to cite any of your papers but look forward to doing so sometime soon using org-ref ;-) -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Sun, 11 May 2014 14:48:40 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c7ffe84bb2404f924479a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjYnk-0002jQ-SC for emacs-orgmode@gnu.org; Sun, 11 May 2014 14:48:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjYni-0005oP-JW for emacs-orgmode@gnu.org; Sun, 11 May 2014 14:48:44 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:49501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjYni-0005oB-8o for emacs-orgmode@gnu.org; Sun, 11 May 2014 14:48:42 -0400 Received: by mail-wg0-f41.google.com with SMTP id z12so6023387wgg.12 for ; Sun, 11 May 2014 11:48:40 -0700 (PDT) In-Reply-To: <87lhu9ofqa.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --f46d043c7ffe84bb2404f924479a Content-Type: text/plain; charset=UTF-8 On Sat, May 10, 2014 at 10:44 AM, Eric S Fraga wrote: > On Thursday, 1 May 2014 at 13:07, John Kitchin wrote: > > I implemented some of this partially. I made it so you can specify the > > default cite link in a user variable, with a default of cite. When you > type > > C-c ], this format will automatically be used. If you want to choose > > another format, type C-u C-c ] which will prompt you for a type, and then > > Hi John, > > I am having problems with org-ref and am obviously missing something > trivial. I downloaded the latest version yesterday (Friday). You don't > say, in the above, what function you actually bound to C-c ] but I bound > org-ref-insert-cite-link and that doesn't seem to work: > C-c ] should be bound by default to org-ref-insert-cite-link. It is defined in a hook function in line 104 of org-ref.org. I made a custom variable to store the key-binding, but I realized it probably doesn't help, since the binding > > 1. C-u on it does not give me a choice of citation method > If you type C-u M-x org-ref-insert-cite-link do you get a choice? I just tried this on a fresh pull and it does work for me. I am not sure why this wouldn't work for you. Do you tangle the .el file from the .org file? I have this code somewhere else to build it when needed: (if (or (not (file-exists-p "org-ref.el")) (< (float-time (nth 5 (file-attributes "org-ref.el"))) (float-time (nth 5 (file-attributes "org-ref.org"))))) (progn (org-babel-tangle-file (expand-file-name "org-ref.org" starter-kit-dir)) (load-file (expand-file-name "org-ref.el" starter-kit-dir))) (require 'org-ref)) That retangles the org file if the org-file is newer than the el file. > 2. the link inserted "looks" like a link (it's blue) but there are > actually no [[...]] characters surrounding it. > There are no [[...]]. The links work fine without them for me. Are they necessary for some reason? I can add them, but since they do not do anything but disappear in this case, I leave them out. That is actually not totally true, if you write your link as [[cite:key][page 23]] the page 23 gets formatted in latex as \cite[page23]{key}. > > What am I missing? Am I expected to type the [[]] or use C-c C-l? > > I don't think you need the [[]], and you do not have to use C-c C-l. The only thing that C-c C-l offers is autocompletion on bibtex keys for the cite link (I have not figured out a way to avoid a lot of cut and paste code for the other types, and I rarely use this feature, but I am leaving it in so I do not forget how I did it ;). I guess C-c C-l might help entering the description too. > I would like to C-u C-c ], choose autocite and my refs and have your > code insert [[autocite:blah-2001,joe-2010,moe-2014]] into my org > buffer. I know I can change the default citation link type through > org-ref-default-citation-link but I want the C-u functionality. > You should be able to do all those things. The C-u functionality works independently of the default type, and it should let you get something other than the default. > > Finally, looking at the code, it would appear that appending new > citations will only work for "cite:" links as the "cite:" is hard-coded > into the code? > This is correct in the version you have. The current workaround is to use C-u C-c ], and select the "A" format, which will output a leading comma and your selections. I have pushed a fix for this, that adds a requirement of dash.el and checks of the link is in a list of cite types defined in org-ref. Thanks for making me think of a solution to that! > thanks again, > eric > > PS - I'm a fellow Chemical Engineer but unfortunately have not yet had > the opportunity to cite any of your papers but look forward to doing so > sometime soon using org-ref ;-) > That would be great! I hope the comments above help! > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 > --f46d043c7ffe84bb2404f924479a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sat, May 10, 2014 at 10:44 AM, Eric S Fraga <e.fraga@ucl.ac.uk&= gt; wrote:
On Thursd= ay, =C2=A01 May 2014 at 13:07, John Kitchin wrote:
> I implemented some of this partially. I made it so you can specify the=
> default cite link in a user variable, with a default of cite. When you= type
> C-c ], this format will automatically be used. If you want to choose > another format, type C-u C-c ] which will prompt you for a type, and t= hen

Hi John,

I am having problems with org-ref and am obviously missing something
trivial. =C2=A0I downloaded the latest version yesterday (Friday). =C2=A0Yo= u don't
say, in the above, what function you actually bound to C-c ] but I bound org-ref-insert-cite-link and that doesn't seem to work:

C-c ] should be bound by default to org-ref-insert-cit= e-link. It is defined in a hook function in line 104 of org-ref.org.

I made a custom variable to store the key-binding, but I rea= lized it probably doesn't help, since the binding
=C2=A0=

1. C-u on it does not give me a choice of citation method
<= div>
If you type C-u M-x=C2=A0 org-ref-insert-cite-link
do you get a choice?

I just tried= this on a fresh pull and it does work for me. I am not sure why this would= n't work for you.=C2=A0 Do you tangle the .el file from the .org file? = I have this code somewhere else to build it when needed:
(if (or
=C2=A0=C2=A0=C2=A0=C2=A0 (not (file-exists-p "org-ref.el&qu= ot;))
=C2=A0=C2=A0=C2=A0=C2=A0 (< (float-time (nth 5 (file-attributes= "org-ref.el")))
=C2=A0=C2=A0=C2=A0 (float-time (nth 5 (file-a= ttributes "org-ref.org"))))) =C2=A0=C2=A0=C2=A0 (progn
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-babel-tang= le-file (expand-file-name "org-ref.org<= /a>" starter-kit-dir))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (load-file (e= xpand-file-name "org-ref.el" starter-kit-dir)))
=C2=A0 (requir= e 'org-ref))

2. the link inserted "looks" like a link (it's blue) but ther= e are
=C2=A0 =C2=A0 =C2=A0actually no [[...]] characters surrounding it.

There are no [[...]]. The links work fine witho= ut them for me. Are they necessary for some reason? I can add them, but sin= ce they do not do anything but disappear in this case, I leave them out.=C2= =A0 That is actually not totally true, if you write your link as [[cite:key= ][page 23]] the page 23 gets formatted in latex as \cite[page23]{key}.
=C2=A0

What am I missing? =C2=A0Am I expected to type the [[]] or use C-c C-l?

I don't think you need the [[]], and you do not h= ave to use C-c C-l. The only thing that C-c C-l offers is autocompletion on= bibtex keys for the cite link (I have not figured out a way to avoid a lot= of cut and paste code for the other types, and I rarely use this feature, = but I am leaving it in so I do not forget how I did it ;). I guess C-c C-l = might help entering the description too.

=C2=A0

Finally, looking at the code, it would appear that appending new
citations will only work for "cite:" links as the "cite:&quo= t; is hard-coded
into the code?

This is correct in the v= ersion you have. The current workaround is to use C-u C-c ], and select the= "A" format, which will output a leading comma and your selection= s. I have pushed a fix for this, that adds a requirement of dash.el and che= cks of the link is in a list of cite types defined in org-ref. Thanks for m= aking me think of a solution to that!


thanks again,
eric

PS - I'm a fellow Chemical Engineer but unfortunately have not yet had<= br> the opportunity to cite any of your papers but look forward to doing so
sometime soon using org-ref ;-)

<= div>That would be great! I hope the comments above help!
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11=

--f46d043c7ffe84bb2404f924479a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Mon, 12 May 2014 09:12:26 +0100 Message-ID: <87iopbv2j9.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjlNU-0007B8-8o for emacs-orgmode@gnu.org; Mon, 12 May 2014 04:14:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjlNP-0001pn-IS for emacs-orgmode@gnu.org; Mon, 12 May 2014 04:14:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:49980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjlNP-0001pe-B1 for emacs-orgmode@gnu.org; Mon, 12 May 2014 04:14:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WjlNM-0002wf-9x for emacs-orgmode@gnu.org; Mon, 12 May 2014 10:14:20 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 May 2014 10:14:20 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 May 2014 10:14:20 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Kitchin writes: > C-c ] should be bound by default to org-ref-insert-cite-link. It is defined > in a hook function in line 104 of org-ref.org. > > I made a custom variable to store the key-binding, but I realized it > probably doesn't help, since the binding > > >> >> 1. C-u on it does not give me a choice of citation method >> > > If you type C-u M-x org-ref-insert-cite-link > > do you get a choice? > > I just tried this on a fresh pull and it does work for me. I am not sure > why this wouldn't work for you. Do you tangle the .el file from the .org > file? I have this code somewhere else to build it when needed: I can confirm that C-c ] and C-u C-c ] work fine for me. my setup if fairly simple (with org-ref.el tangled from org-ref.org) (require 'org-ref) (custom-set-variables '(org-ref-bibliography-notes "notes.org") '(org-ref-default-bibliography (list "refs.bib")) ;; '(org-ref-pdf-directory "...") ;; '(org-ref-default-citation-link "...") ;; '(org-ref-insert-cite-key "...") ) looking forward to discover more of org-ref. FWIW, I was using textcite:... (with biblatex) as well, helped myself by just inserting a cite:... and then changing the link with C-c C-l from cite to textcite. But I really need read up on all those different citations commands once more, maybe textcite is not really necessary? Could I add it somehow to the list of choices available in "C-u C-c ]" ? (I realized there are citetext, citep*, citep as well, that I yet have to discover). By the way: the org-ref.org literate programming docs are fine for someone interested in the gory details / relatively experienced. Ist there a simpler document just describing its usage - that you would hand out to your chemistry students e. g. ? Somehting maybe explaining the differences from the other approaches that can be found e g in http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/ http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/ Thanks for org-ref. -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Mon, 12 May 2014 14:36:02 +0100 Message-ID: <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjqOt-0000CX-LE for emacs-orgmode@gnu.org; Mon, 12 May 2014 09:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjqOm-0000hQ-VD for emacs-orgmode@gnu.org; Mon, 12 May 2014 09:36:15 -0400 Received: from mail-am1lp0013.outbound.protection.outlook.com ([213.199.154.13]:3461 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjqOm-0000h5-Mq for emacs-orgmode@gnu.org; Mon, 12 May 2014 09:36:08 -0400 In-Reply-To: (John Kitchin's message of "Sun, 11 May 2014 14:48:40 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Sunday, 11 May 2014 at 14:48, John Kitchin wrote: [...] > C-c ] should be bound by default to org-ref-insert-cite-link. It is defined > in a hook function in line 104 of org-ref.org. Yes. It is. I don't use this binding. I use evil mode and don't like chorded commands. I have org-ref-insert-cite-link bound to ", r" but that's beside the point, in any case. >> 1. C-u on it does not give me a choice of citation method > > If you type C-u M-x org-ref-insert-cite-link > do you get a choice? No. I get prompted for the expression to search for and then I get prompted for an optional argument and the final text inserted in my org buffer is \cite{....}, not cite:.... > I just tried this on a fresh pull and it does work for me. I am not sure > why this wouldn't work for you. Do you tangle the .el file from the .org > file? I have this code somewhere else to build it when needed: I do tangle and then eval-buffer just to make sure I have the right code loaded. >> 2. the link inserted "looks" like a link (it's blue) but there are >> actually no [[...]] characters surrounding it. >> > There are no [[...]]. The links work fine without them for me. Are they > necessary for some reason? I can add them, but since they do not do > anything but disappear in this case, I leave them out. Well, I obviously have something not quite configured properly in my environment. The cite: text is highlighted as a link in the org buffer (as it should with org-highlight-links set) but is treated as simple text when exported so that I simply get "cite:..." in the latex output. If I "C-c C-l" it and don't add a description, the org buffer *looks* the same but the export works because org and/or the exporter know that it's a link. Is there some org variable I have not set that tells org to treat cite: plain text as a link on export? Obviously org already recognises it as a link but the export doesn't... org-link-protocols and org-link-types look fine. I am most puzzled... :( By the way, in my use case, even if the above would work properly, it would still definitely help if the [[...]] were inserted as I sometimes use superscript indices and in those cases I do not want any whitespace between the text and the citation that follows. Anyway, this is secondary. thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Mon, 12 May 2014 18:20:04 +0100 Message-ID: <87zjimnccb.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjtvU-000446-2y for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:22:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjtvO-0004kR-AJ for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:22:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:40610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjtvO-0004kM-4i for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:22:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WjtvK-0004xV-5u for emacs-orgmode@gnu.org; Mon, 12 May 2014 19:21:58 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 May 2014 19:21:58 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 May 2014 19:21:58 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > Is there some org variable I have not set that tells org to treat cite: > plain text as a link on export? Obviously org already recognises it as > a link but the export doesn't... org-link-protocols and org-link-types > look fine. > Being just a org-ref beginner, I don't know if there is a more straightforward solution but, I have configured: (org-add-link-type "cite" 'org-ref-cite-onclick-minibuffer-menu ;; formatting (lambda (keyword desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (concat "\\cite{" (mapconcat (lambda (key) key) (org-ref-split-and-strip-string keyword) ",") "}"))))) and similarily for autocite and textcite (the citation types that I am using), that works for me. Adapted (copied) from the org-add-link-type for autocite given in the org-ref.org description. Not sure if this should just work out of the box (without configuration), but then, it's not that much code. -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Mon, 12 May 2014 13:26:26 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0118291439baeb04f9373fe0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjtzg-0005sN-NX for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:26:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjtzf-0006TE-KB for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:26:28 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:59180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjtzf-0006OV-1m for emacs-orgmode@gnu.org; Mon, 12 May 2014 13:26:27 -0400 Received: by mail-we0-f182.google.com with SMTP id t60so7100742wes.41 for ; Mon, 12 May 2014 10:26:26 -0700 (PDT) In-Reply-To: <87zjimnccb.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --089e0118291439baeb04f9373fe0 Content-Type: text/plain; charset=UTF-8 that should work out of the box, and that link is defined in org-ref as (org-add-link-type "cite" 'org-ref-cite-onclick-minibuffer-menu 'org-ref-cite-link-format) I am not sure why it would not work out of the box. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Mon, May 12, 2014 at 1:20 PM, Andreas Reuleaux wrote: > Eric S Fraga writes: > > > Is there some org variable I have not set that tells org to treat cite: > > plain text as a link on export? Obviously org already recognises it as > > a link but the export doesn't... org-link-protocols and org-link-types > > look fine. > > > > Being just a org-ref beginner, I don't know if there is a more > straightforward solution but, I have configured: > > > (org-add-link-type > "cite" > 'org-ref-cite-onclick-minibuffer-menu > ;; formatting > (lambda (keyword desc format) > (cond > ((eq format 'html) (format "(%s)" path)) > ((eq format 'latex) > (concat "\\cite{" > (mapconcat (lambda (key) key) > (org-ref-split-and-strip-string keyword) ",") > "}"))))) > > > and similarily for autocite and textcite (the citation types that I am > using), that works for me. Adapted (copied) from the org-add-link-type > for autocite given in the org-ref.org description. Not sure if this > should just work out of the box (without configuration), but then, it's > not that much code. > > -Andreas > > > > --089e0118291439baeb04f9373fe0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
that should work out of the box, and that link is defined = in org-ref as

(org-add-link-type
 "cite"
 'org-ref-cite-onclick-minibuffer-menu
 'org-ref-cite-link-format)

I am =
not sure why it would not work out of the box.




On Mon, May 12, 2014 at 1:20 PM, Andreas= Reuleaux <andreas@a-rx.info> wrote:
Eric S Fraga <e.fra= ga@ucl.ac.uk> writes:

> Is there some org variable I have not set that tells org to treat cite= :
> plain text as a link on export? =C2=A0Obviously org already recognises= it as
> a link but the export doesn't... =C2=A0org-link-protocols and org-= link-types
> look fine.
>

Being just a org-ref beginner, I don't know if there is a more straightforward solution but, I have configured:


=C2=A0 (org-add-link-type
=C2=A0 =C2=A0"cite"
=C2=A0 =C2=A0'org-ref-cite-onclick-minibuffer-menu
=C2=A0 =C2=A0;; formatting
=C2=A0 =C2=A0(lambda (keyword desc format)
=C2=A0 =C2=A0 =C2=A0(cond
=C2=A0 =C2=A0 =C2=A0 ((eq format 'html) (format "(<cite>%s&l= t;/cite>)" path))
=C2=A0 =C2=A0 =C2=A0 ((eq format 'latex)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(concat "\\cite{"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(mapconcat (lambda (= key) key) (org-ref-split-and-strip-string keyword) ",")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"}")))))

and similarily for autocite and textcite (the citation types that I am
using), that works for me. Adapted (copied) from the org-add-link-type
for autocite given in the = org-ref.org description. =C2=A0Not sure if this
should just work out of the box (without configuration), but then, it's=
not that much code.

-Andreas




--089e0118291439baeb04f9373fe0-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Tue, 13 May 2014 01:03:45 +0100 Message-ID: <878uq6pmse.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wk0E8-0005p6-Rx for emacs-orgmode@gnu.org; Mon, 12 May 2014 20:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wk0E2-0008UO-LA for emacs-orgmode@gnu.org; Mon, 12 May 2014 20:05:48 -0400 Received: from plane.gmane.org ([80.91.229.3]:51405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wk0E2-0008UF-Ei for emacs-orgmode@gnu.org; Mon, 12 May 2014 20:05:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wk0E1-0006uQ-8z for emacs-orgmode@gnu.org; Tue, 13 May 2014 02:05:41 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 02:05:41 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 02:05:41 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Kitchin writes: > that should work out of the box, and that link is defined in org-ref as > > (org-add-link-type > "cite" > 'org-ref-cite-onclick-minibuffer-menu > 'org-ref-cite-link-format) > > I am not sure why it would not work out of the box. > They *do* work out of the box, as I can see now. -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Mon, 12 May 2014 22:37:05 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <87iopbv2j9.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122999086060904f93ef087 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wk2aa-00051V-VV for emacs-orgmode@gnu.org; Mon, 12 May 2014 22:37:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wk2aZ-0004ay-8s for emacs-orgmode@gnu.org; Mon, 12 May 2014 22:37:08 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:48392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wk2aY-0004ar-UN for emacs-orgmode@gnu.org; Mon, 12 May 2014 22:37:07 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so7762959wgg.30 for ; Mon, 12 May 2014 19:37:05 -0700 (PDT) In-Reply-To: <87iopbv2j9.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --089e0122999086060904f93ef087 Content-Type: text/plain; charset=UTF-8 Here is a way you can add new citation formats to the reftex format: ;; get builtin formats (setq formats (nth 2 (assoc 'org reftex-cite-format-builtin))) ;; add new format (setf (nth 2 (assoc 'org reftex-cite-format-builtin)) (append formats '((?W . "textcite:%l") (?z . "newcite:%l")))) This does not define the links, but it does add the formats to the reftex menu. I have figured out how to add new citation links without alot of cut and pasted code. I do not use biblatex much though. What are the common citation formats, and are they mostly written as \citation{label}? John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Mon, May 12, 2014 at 4:12 AM, Andreas Reuleaux wrote: > John Kitchin writes: > > > > C-c ] should be bound by default to org-ref-insert-cite-link. It is > defined > > in a hook function in line 104 of org-ref.org. > > > > I made a custom variable to store the key-binding, but I realized it > > probably doesn't help, since the binding > > > > > >> > >> 1. C-u on it does not give me a choice of citation method > >> > > > > If you type C-u M-x org-ref-insert-cite-link > > > > do you get a choice? > > > > I just tried this on a fresh pull and it does work for me. I am not sure > > why this wouldn't work for you. Do you tangle the .el file from the .org > > file? I have this code somewhere else to build it when needed: > > > I can confirm that C-c ] and C-u C-c ] > work fine for me. > > my setup if fairly simple (with org-ref.el tangled from org-ref.org) > > (require 'org-ref) > > (custom-set-variables > '(org-ref-bibliography-notes "notes.org") > '(org-ref-default-bibliography (list "refs.bib")) > ;; '(org-ref-pdf-directory "...") > ;; '(org-ref-default-citation-link "...") > ;; '(org-ref-insert-cite-key "...") > ) > > looking forward to discover more of org-ref. > > FWIW, I was using textcite:... (with biblatex) as well, helped myself by > just inserting a cite:... and then changing the link with C-c C-l from > cite to textcite. But I really need read up on all those different > citations commands once more, maybe textcite is not really necessary? > Could I add it somehow to the list of choices available in "C-u C-c ]" ? > (I realized there are citetext, citep*, citep as well, that I yet have > to discover). > > By the way: the org-ref.org literate programming docs are fine > for someone interested in the gory details / relatively experienced. > Ist there a simpler document just describing its usage - that > you would hand out to your chemistry students e. g. ? > > Somehting maybe explaining the differences from the other approaches > that can be found e g in > > > http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/ > > > http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/ > > Thanks for org-ref. > > -Andreas > > > --089e0122999086060904f93ef087 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here is a way you can add new citation formats t= o the reftex format:

;; get builtin formats
(setq formats (nth 2 = (assoc 'org reftex-cite-format-builtin)))

;; add new format
(setf (nth 2 (assoc 'org reftex-cite-format-builtin))
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (append formats '((?W=C2=A0 . "textcite:%l"= ;)
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (?z=C2=A0 . = "newcite:%l"))))

This does not define the links, but= it does add the formats to the reftex menu.

I have figured out how to add new citation links without alot of = cut and pasted code. I do not use biblatex much though. What are the common= citation formats, and are they mostly written as \citation{label}?

John

-------= ----------------------------
John Kitchin
Associate Professor
Dohe= rty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Uni= versity
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Mon, May 12, 2014 at 4:12 AM, Andreas= Reuleaux <andreas@a-rx.info> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:


> C-c ] should be bound by default to org-ref-insert-cite-link. It is de= fined
> in a hook function in line 104 of org-ref.org.
>
> I made a custom variable to store the key-binding, but I realized it > probably doesn't help, since the binding
>
>
>>
>> 1. C-u on it does not give me a choice of citation method
>>
>
> If you type C-u M-x =C2=A0org-ref-insert-cite-link
>
> do you get a choice?
>
> I just tried this on a fresh pull and it does work for me. I am not su= re
> why this wouldn't work for you. =C2=A0Do you tangle the .el file f= rom the .org
> file? I have this code somewhere else to build it when needed:


I can confirm that C-c ] and C-u C-c ]
work fine for me.

my setup if fairly simple (with org-ref.el tangled from org-ref.org)

=C2=A0 (require 'org-ref)

=C2=A0 (custom-set-variables
=C2=A0 =C2=A0'(org-ref-bibliography-notes "notes.org")
=C2=A0 =C2=A0'(org-ref-default-bibliography =C2=A0(list "refs.bib&= quot;))
=C2=A0 =C2=A0;; '(org-ref-pdf-directory "...")
=C2=A0 =C2=A0;; '(org-ref-default-citation-link "...")
=C2=A0 =C2=A0;; '(org-ref-insert-cite-key "...")
=C2=A0 =C2=A0)

looking forward to discover more of org-ref.

FWIW, I was using textcite:... (with biblatex) as well, helped myself by just inserting a cite:... and then changing the link with C-c C-l from
cite to textcite. But I really need read up on all those different
citations commands once more, maybe textcite is not really necessary?
Could I add it somehow to the list of choices available in "C-u C-c ]&= quot; ?
(I realized there are citetext, citep*, citep as well, that I yet have
to discover).

By the way: the org-ref.or= g literate programming docs are fine
for someone interested in the gory details / relatively experienced.
Ist there a simpler document just describing its usage - that
you would hand out to your chemistry students e. g. ?

Somehting maybe explaining the differences from the other approaches
that can be found e g in

=C2=A0 http://tincman.= wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-= reftex/

=C2=A0 http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/ho= w-to-manage-and-export-bibliographic-notesrefs-in-org-mode/

Thanks for org-ref.

-Andreas



--089e0122999086060904f93ef087-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Tue, 13 May 2014 12:00:44 +0100 Message-ID: <87tx8uc59f.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkBuC-0000u9-3v for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkBu4-0007rz-L3 for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:34:00 -0400 Received: from mail-db3on0059.outbound.protection.outlook.com ([157.55.234.59]:45280 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkBu4-0007qI-CP for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:33:52 -0400 In-Reply-To: (John Kitchin's message of "Mon, 12 May 2014 13:26:26 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Monday, 12 May 2014 at 13:26, John Kitchin wrote: > that should work out of the box, and that link is defined in org-ref as > > (org-add-link-type > "cite" > 'org-ref-cite-onclick-minibuffer-menu > 'org-ref-cite-link-format) And I used to have my own already in any case. > > I am not sure why it would not work out of the box. Neither do I. The more annoying thing is that I cannot get org-ref to work at all with emacs -q and a minimal org document. Would you maybe post the minimum setup for getting org-ref to work, along with a minimal org document? thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Tue, 13 May 2014 14:51:32 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013d14c469d91b04f94c8df4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHna-0001hZ-LA for emacs-orgmode@gnu.org; Tue, 13 May 2014 14:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkHnZ-0007UX-EE for emacs-orgmode@gnu.org; Tue, 13 May 2014 14:51:34 -0400 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:49885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHnZ-0007UT-4D for emacs-orgmode@gnu.org; Tue, 13 May 2014 14:51:33 -0400 Received: by mail-wg0-f49.google.com with SMTP id m15so816775wgh.8 for ; Tue, 13 May 2014 11:51:32 -0700 (PDT) In-Reply-To: <87tx8uc59f.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --089e013d14c469d91b04f94c8df4 Content-Type: text/plain; charset=UTF-8 You can see a document I wrote using org-ref here: http://kitchingroup.cheme.cmu.edu/org/2014/05/13/Using-org-ref-for-citations-and-references.org You will want to pull a current version. I added some code so it is in principle easy for you to add your own citation types and use the org-ref machinery to insert citations. I made a little screencast here: http://screencast.com/t/bxfafVydE j John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 7:00 AM, Eric S Fraga wrote: > On Monday, 12 May 2014 at 13:26, John Kitchin wrote: > > that should work out of the box, and that link is defined in org-ref as > > > > (org-add-link-type > > "cite" > > 'org-ref-cite-onclick-minibuffer-menu > > 'org-ref-cite-link-format) > > And I used to have my own already in any case. > > > > > I am not sure why it would not work out of the box. > > Neither do I. The more annoying thing is that I cannot get org-ref to > work at all with emacs -q and a minimal org document. Would you maybe > post the minimum setup for getting org-ref to work, along with a minimal > org document? > > thanks, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559 > --089e013d14c469d91b04f94c8df4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You will want to pull a current version. I added some code so it = is in principle easy for you to add your own citation types and use the org= -ref machinery to insert citations.


I made a little screen= cast here: http://screencast.= com/t/bxfafVydE

j

John=

-----------------------------------
John Kitchin
Associate Pr= ofessor
Doherty Hall A207F
Department of Chemical Engineering
Carn= egie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Tue, May 13, 2014 at 7:00 AM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
On Monday, 12 May 2014 at 13:26, John Kitchin wrote:
> that should work out of the box, and that link is defined in org-ref a= s
>
> (org-add-link-type
> =C2=A0"cite"
> =C2=A0'org-ref-cite-onclick-minibuffer-menu
> =C2=A0'org-ref-cite-link-format)

And I used to have my own already in any case.

>
> I am not sure why it would not work out of the box.

Neither do I. =C2=A0The more annoying thing is that I cannot get org-= ref to
work at all with emacs -q and a minimal org document. =C2=A0Would you maybe=
post the minimum setup for getting org-ref to work, along with a minimal org document?

thanks,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559=

--089e013d14c469d91b04f94c8df4-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Tue, 13 May 2014 21:01:15 +0100 Message-ID: <877g5p5tys.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkItC-0001Ho-9a for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkIt6-0005oI-6N for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:01:26 -0400 Received: from mail-db3on0055.outbound.protection.outlook.com ([157.55.234.55]:60672 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkIt5-0005o7-T8 for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:01:20 -0400 In-Reply-To: (John Kitchin's message of "Tue, 13 May 2014 14:51:32 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Tuesday, 13 May 2014 at 14:51, John Kitchin wrote: > You can see a document I wrote using org-ref here: > http://kitchingroup.cheme.cmu.edu/org/2014/05/13/Using-org-ref-for-citations-and-references.org > > You will want to pull a current version. I added some code so it is in > principle easy for you to add your own citation types and use the org-ref > machinery to insert citations. Thanks for this. It didn't work but I have now figured out why! Your code requires dash version 2.6.0 and I had version 2.4.0. The need for the latest version is noted in a comment in your code but the code itself doesn't check (and probably cannot?). With 2.6.0, I'm much further! Links are now recognised properly. I still have a problem in that a very minimal file, with one cite: link and a bibliography: link, doesn't compile because bibtex complains of no \bibstyle. Not sure why it's complaining but I will continue debugging. thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Tue, 13 May 2014 21:11:38 +0100 Message-ID: <87zjil4ex1.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkJ3H-000789-JI for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkJ39-0000fv-R4 for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:11:51 -0400 Received: from mail-am1lp0012.outbound.protection.outlook.com ([213.199.154.12]:28585 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkJ39-0000fd-IC for emacs-orgmode@gnu.org; Tue, 13 May 2014 16:11:43 -0400 In-Reply-To: (John Kitchin's message of "Tue, 13 May 2014 14:51:32 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" John, another data point. When I try to load an org file, once org-ref is loaded, I get the following problem: Debugger entered--Lisp error: (wrong-type-argument stringp nil) re-search-forward(nil 10001 t) tex-main-file() reftex-TeX-master-file() reftex-tie-multifile-symbols() reftex-access-scan-info((16)) reftex-parse-all() (and (buffer-file-name) (file-exists-p (buffer-file-name)) (global-auto-revert-mode t) (reftex-parse-all)) org-mode-reftex-setup() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) Because of this, org-ref doesn't get initialised properly. Any idea what may be causing this? Do I need to configure auctex or similar? thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 00:33:56 +0100 Message-ID: <87ha4tmexn.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkMEt-0003jy-8y for emacs-orgmode@gnu.org; Tue, 13 May 2014 19:36:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkMEm-0000m9-Fz for emacs-orgmode@gnu.org; Tue, 13 May 2014 19:36:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:51065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkMEm-0000lt-5T for emacs-orgmode@gnu.org; Tue, 13 May 2014 19:35:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkMEi-0005bd-OY for emacs-orgmode@gnu.org; Wed, 14 May 2014 01:35:52 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 01:35:52 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 01:35:52 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Kitchin writes: > You can see a document I wrote using org-ref here: > http://kitchingroup.cheme.cmu.edu/org/2014/05/13/Using-org-ref-for-citations-and-references.org > > You will want to pull a current version. I added some code so it is in > principle easy for you to add your own citation types and use the org-ref > machinery to insert citations. > > > I made a little screencast here: http://screencast.com/t/bxfafVydE > Thanks for the sample file and the screencast, very nice. still a bit confused about org-ref-cite-types: Say, I want to add two new link types: textcite - somehow standard in biblatex, cf. the biblatex.pdf manual, p 81 citeauthorfull - my own creation - author with first- and lastname, cf below. from my document.org I load some latex preparation stuff like this #+LaTeX_HEADER: \include{ltxhdr} I was just getting tired of prefixing so many lines with #+LaTeX_HEADER: and collected some of those in a lxthdr.tex file. there I have prepared something for this citeauthorfull thingy: %% cf %% http://tex.stackexchange.com/questions/24979/citing-authors-full-name-in-biblatex %% called citeauthorfirstlast... there \DeclareCiteCommand{\citeauthorfull} {\boolfalse{citetracker}% \boolfalse{pagetracker}% \DeclareNameAlias{labelname}{first-last}% \usebibmacro{prenote}} {\ifciteindex {\indexnames{labelname}} {}% \printnames{labelname}} {\multicitedelim} {\usebibmacro{postnote}} this does the job, don't ask me details. now back to org-ref: with your advice I add: ;; add new format (setf (nth 2 (assoc 'org reftex-cite-format-builtin)) (append (nth 2 (assoc 'org reftex-cite-format-builtin)) '( ;; C-t like text (?\C-t . "textcite:%l") ;; f like full (?f . "citeauthorfull:%l") ))) and I get the comfort of two additional citation formats to chose from when typing C-u C-c ] - nice, indeed. this is basically what you said in your e-mail before, now also on the org-ref.org webpage, (just shortcut and don't define that format variable) Now I can add these: (add-to-list 'org-ref-cite-types "textcite") (add-to-list 'org-ref-cite-types "citeauthorfull") but this is of limited use to me currently, at least I don't get the point, not sure if I am doing something wrong: say, I have added a few of these textcite:foo citeauthorfull:bar in my document.org, there are some problems with these: * first: they don't appear blue and clickable in my document.org * second: they don't get exported in the latex in a reasonable way, they appear there just as textcite:foo citeauthorfull:bar Well I can cure the situation by adding by adding (org-add-link-type "textcite" 'org-ref-cite-onclick-minibuffer-menu ;; formatting (lambda (keyword desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (concat "\\textcite{" (mapconcat (lambda (key) key) (org-ref-split-and-strip-string keyword) ",") "}"))))) (org-add-link-type "citeauthorfull" 'org-ref-cite-onclick-minibuffer-menu ;; formatting (lambda (keyword desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (concat "\\citeauthorfull{" (mapconcat (lambda (key) key) (org-ref-split-and-strip-string keyword) ",") "}"))))) now they appear clickable in blue, and get properly exported to \textcite{...} and \citeauthorfull{...} Now, what was the deal of this adding them to 'org-ref-cite-types in the first place, if I had to take care of the details by hand anyway? Is there anything I could have left out / shortcut / I have forgotten maybe? Thanks. -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Tue, 13 May 2014 20:28:37 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c258dcf890ee04f95142fa Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkN3p-0004oE-27 for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:28:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkN3n-0002JT-Pt for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:28:41 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:36268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkN3m-0002JC-Vo for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:28:39 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so1135944wgg.6 for ; Tue, 13 May 2014 17:28:38 -0700 (PDT) In-Reply-To: <87zjil4ex1.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --001a11c258dcf890ee04f95142fa Content-Type: text/plain; charset=UTF-8 interesting. I do have auxtex installed, but I don't think I configure it anywhere. I do require reftex and reftex-cite in my init files. I also set the default reftex bibliography. (setq reftex-default-bibliography '("~/Dropbox/bibliography/references.bib")) I will try to reproduce this tomorrow. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 4:11 PM, Eric S Fraga wrote: > John, > > another data point. When I try to load an org file, once org-ref is > loaded, I get the following problem: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > re-search-forward(nil 10001 t) > tex-main-file() > reftex-TeX-master-file() > reftex-tie-multifile-symbols() > reftex-access-scan-info((16)) > reftex-parse-all() > (and (buffer-file-name) (file-exists-p (buffer-file-name)) > (global-auto-revert-mode t) (reftex-parse-all)) > org-mode-reftex-setup() > run-hooks(change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook)) > run-mode-hooks(org-mode-hook) > > Because of this, org-ref doesn't get initialised properly. > > Any idea what may be causing this? Do I need to configure auctex or > similar? > > thanks, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --001a11c258dcf890ee04f95142fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
interesting. I do have auxtex installed, but I don= 9;t think I configure it anywhere. I do require reftex and reftex-cite in m= y init files. I also set the default reftex bibliography.

(setq reft= ex-default-bibliography '("~/Dropbox/bibliography/references.bib&q= uot;))

I will try to reproduce this tomorrow.

John

------------------------------= -----
John Kitchin
Associate Professor
Doherty Hall A207F
Depar= tment of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingr= oup.cheme.cmu.edu



On Tue, May 13, 2014 at 4:11 PM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
John,

another data point. =C2=A0When I try to load an org file, once org-ref is loaded, I get the following problem:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
=C2=A0 re-search-forward(nil 10001 t)
=C2=A0 tex-main-file()
=C2=A0 reftex-TeX-master-file()
=C2=A0 reftex-tie-multifile-symbols()
=C2=A0 reftex-access-scan-info((16))
=C2=A0 reftex-parse-all()
=C2=A0 (and (buffer-file-name) (file-exists-p (buffer-file-name)) (global-a= uto-revert-mode t) (reftex-parse-all))
=C2=A0 org-mode-reftex-setup()
=C2=A0 run-hooks(change-major-mode-after-body-hook text-mode-hook outline-m= ode-hook org-mode-hook)
=C2=A0 apply(run-hooks (change-major-mode-after-body-hook text-mode-hook ou= tline-mode-hook org-mode-hook))
=C2=A0 run-mode-hooks(org-mode-hook)

Because of this, org-ref doesn't get initialised properly.

Any idea what may be causing this? =C2=A0Do I need to configure auctex or similar?

thanks,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559= -git

--001a11c258dcf890ee04f95142fa-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Tue, 13 May 2014 20:38:32 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c7ffe680d8104f951664c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkNDQ-0007bx-CZ for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:38:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkNDO-0005XF-B0 for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:38:36 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:34215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkNDN-0005X7-Ro for emacs-orgmode@gnu.org; Tue, 13 May 2014 20:38:34 -0400 Received: by mail-we0-f169.google.com with SMTP id u56so1183451wes.28 for ; Tue, 13 May 2014 17:38:32 -0700 (PDT) In-Reply-To: <87ha4tmexn.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --f46d043c7ffe680d8104f951664c Content-Type: text/plain; charset=UTF-8 with the most recent org-ref, it should be sufficient to put this in your init file: (org-ref-define-citation-link "textcite" ?I) (org-ref-define-citation-link "citeauthorfull" ?F) this will create a textcite link and create a reftex menu you select with the key I, and the other link with the key F. these should automatically be links, and have completion functions. These will get exported as \textcite{label} and \citeauthorfull{label}. The org-ref-define-citation-link function adds the link, creates the functions necessary, and adds the types to the right places. You do not need to do the manual additions unless you manually define the link like you did with org-add-link-type. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 7:33 PM, Andreas Reuleaux wrote: > John Kitchin writes: > > > You can see a document I wrote using org-ref here: > > > http://kitchingroup.cheme.cmu.edu/org/2014/05/13/Using-org-ref-for-citations-and-references.org > > > > You will want to pull a current version. I added some code so it is in > > principle easy for you to add your own citation types and use the org-ref > > machinery to insert citations. > > > > > > I made a little screencast here: http://screencast.com/t/bxfafVydE > > > > Thanks for the sample file and the screencast, very nice. > > still a bit confused about org-ref-cite-types: > > Say, I want to add two new link types: > > > textcite - somehow standard in biblatex, > cf. the biblatex.pdf manual, p 81 > > citeauthorfull - my own creation - author with first- and lastname, > cf below. > > > from my document.org I load some latex preparation stuff like this > > #+LaTeX_HEADER: \include{ltxhdr} > > I was just getting tired of prefixing so many lines with #+LaTeX_HEADER: > and collected some of those in a lxthdr.tex file. > there I have prepared something for this citeauthorfull thingy: > > > %% cf > %% > http://tex.stackexchange.com/questions/24979/citing-authors-full-name-in-biblatex > %% called citeauthorfirstlast... there > > > \DeclareCiteCommand{\citeauthorfull} > {\boolfalse{citetracker}% > \boolfalse{pagetracker}% > \DeclareNameAlias{labelname}{first-last}% > \usebibmacro{prenote}} > {\ifciteindex > {\indexnames{labelname}} > {}% > \printnames{labelname}} > {\multicitedelim} > {\usebibmacro{postnote}} > > this does the job, don't ask me details. > > now back to org-ref: > > with your advice I add: > > ;; add new format > (setf (nth 2 (assoc 'org reftex-cite-format-builtin)) > (append (nth 2 (assoc 'org reftex-cite-format-builtin)) > '( > > ;; C-t like text > (?\C-t . "textcite:%l") > > > ;; f like full > (?f . "citeauthorfull:%l") > > ))) > > and I get the comfort of two additional citation formats to chose from > when typing C-u C-c ] - nice, indeed. this is basically what you > said in your e-mail before, now also on the org-ref.org webpage, > (just shortcut and don't define that format variable) > > Now I can add these: > > (add-to-list 'org-ref-cite-types "textcite") > (add-to-list 'org-ref-cite-types "citeauthorfull") > > but this is of limited use to me currently, at least I don't get > the point, not sure if I am doing something wrong: > > say, I have added a few of these > > textcite:foo > > citeauthorfull:bar > > in my document.org, there are some problems with these: > > * first: they don't appear blue and clickable in my document.org > > * second: they don't get exported in the latex in a reasonable way, > they appear there just as > > textcite:foo > citeauthorfull:bar > > Well I can cure the situation by adding by adding > > > (org-add-link-type > "textcite" > 'org-ref-cite-onclick-minibuffer-menu > ;; formatting > (lambda (keyword desc format) > (cond > ((eq format 'html) (format "(%s)" path)) > ((eq format 'latex) > (concat "\\textcite{" > (mapconcat (lambda (key) key) (org-ref-split-and-strip-string > keyword) ",") > "}"))))) > > > > (org-add-link-type > "citeauthorfull" > 'org-ref-cite-onclick-minibuffer-menu > ;; formatting > (lambda (keyword desc format) > (cond > ((eq format 'html) (format "(%s)" > path)) > ((eq format 'latex) > (concat "\\citeauthorfull{" > (mapconcat (lambda (key) key) (org-ref-split-and-strip-string > keyword) ",") > "}"))))) > > > now they appear clickable in blue, and get properly exported > to \textcite{...} and \citeauthorfull{...} > > Now, what was the deal of this adding them to 'org-ref-cite-types > in the first place, if I had to take care of the details by hand anyway? > Is there anything I could have left out / shortcut / I have forgotten > maybe? > > Thanks. > > -Andreas > > > --f46d043c7ffe680d8104f951664c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
with the most recent org-ref, it should be suffi= cient to put this in your init file:

(org-ref-define-citation-link &= quot;textcite" ?I)
(org-ref-define-citation-link "c= iteauthorfull" ?F)

this will create a textcite link and create a reftex menu you sel= ect with the key I, and the other link with the key F. these should automat= ically be links, and have completion functions. These will get exported as = \textcite{label} and \citeauthorfull{label}. The org-ref-define-citation-li= nk function adds the link, creates the functions necessary, and adds the ty= pes to the right places.

You do not need to do the manual additions unless you manually de= fine the link like you did with org-add-link-type.

John

----------------------------= -------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of = Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213<= br>412-268-7803
http://kitchingroup.cheme.cmu.edu



On Tue, May 13, 2014 at 7:33 PM, Andreas= Reuleaux <andreas@a-rx.info> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> You can see a document I wrote using org-ref here:
> http://kitchingroup= .cheme.cmu.edu/org/2014/05/13/Using-org-ref-for-citations-and-references.or= g
>
> You will want to pull a current version. I added some code so it is in=
> principle easy for you to add your own citation types and use the org-= ref
> machinery to insert citations.
>
>
> I made a little screencast here: http://screencast.com/t/bxfafVydE
>

Thanks for the sample file and the screencast, very nice.

still a bit confused about org-ref-cite-types:

Say, I want to add two new link types:


=C2=A0 textcite - somehow standard in biblatex,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cf. the biblatex.pdf manual= , p 81

=C2=A0 citeauthorfull - my own creation - author with first- and lastname,<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cf bel= ow.


from my document.org = I load some latex preparation stuff like this

=C2=A0 #+LaTeX_HEADER: \include{ltxhdr}

I was just getting tired of prefixing so many lines with #+LaTeX_HEADER: and collected some of those in a lxthdr.tex file.
there I have prepared something for this citeauthorfull thingy:


=C2=A0 %% cf
=C2=A0 %% http://tex.stackexchange.com= /questions/24979/citing-authors-full-name-in-biblatex
=C2=A0 %% called citeauthorfirstlast... there


=C2=A0 \DeclareCiteCommand{\citeauthorfull}
=C2=A0 =C2=A0 {\boolfalse{citetracker}%
=C2=A0 =C2=A0 =C2=A0\boolfalse{pagetracker}%
=C2=A0 =C2=A0 =C2=A0\DeclareNameAlias{labelname}{first-last}%
=C2=A0 =C2=A0 =C2=A0\usebibmacro{prenote}}
=C2=A0 =C2=A0 {\ifciteindex
=C2=A0 =C2=A0 =C2=A0 =C2=A0{\indexnames{labelname}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0{}%
=C2=A0 =C2=A0 =C2=A0\printnames{labelname}}
=C2=A0 =C2=A0 {\multicitedelim}
=C2=A0 =C2=A0 {\usebibmacro{postnote}}

this does the job, don't ask me details.

now back to org-ref:

with your advice I add:

=C2=A0 ;; add new format
=C2=A0 (setf (nth 2 (assoc 'org reftex-cite-format-builtin))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (append (nth 2 (assoc 'org reftex-cit= e-format-builtin))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; C-t like = text
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (?\C-t =C2= =A0. "textcite:%l")


=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; f like fu= ll
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (?f =C2=A0. = "citeauthorfull:%l")

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )))

and I get the comfort of two additional citation formats to chose from
when typing C-u C-c ] - nice, indeed. this is basically what you
said in your e-mail before, now also on the org-ref.org webpage,
(just shortcut and don't define that format variable)

Now I can add these:

=C2=A0 (add-to-list 'org-ref-cite-types "textcite")
=C2=A0 (add-to-list 'org-ref-cite-types "citeauthorfull")

but this is of limited use to me currently, at least I don't get
the point, not sure if I am doing something wrong:

say, I have added a few of these

=C2=A0 textcite:foo

=C2=A0 citeauthorfull:bar

in my document.org, t= here are some problems with these:

* first: they don't appear blue and clickable in my document.org

* second: they don't get exported in the latex in a reasonable way,
=C2=A0 they appear there just as

=C2=A0 =C2=A0 textcite:foo
=C2=A0 =C2=A0 citeauthorfull:bar

Well I can cure the situation by adding by adding


(org-add-link-type
=C2=A0"textcite"
=C2=A0'org-ref-cite-onclick-minibuffer-menu
=C2=A0;; formatting
=C2=A0(lambda (keyword desc format)
=C2=A0 =C2=A0(cond
=C2=A0 =C2=A0 ((eq format 'html) (format "(<textcite>%= s</textcite>)" path))
=C2=A0 =C2=A0 ((eq format 'latex)
=C2=A0 =C2=A0 =C2=A0(concat "\\textcite{"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(mapconcat = (lambda (key) key) (org-ref-split-and-strip-string keyword) ",")<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"}")))))



(org-add-link-type
=C2=A0"citeauthorfull"
=C2=A0'org-ref-cite-onclick-minibuffer-menu
=C2=A0;; formatting
=C2=A0(lambda (keyword desc format)
=C2=A0 =C2=A0(cond
=C2=A0 =C2=A0 ((eq format 'html) (format "(<citeauthorful= l>%s</citeauthorfull>)" path))
=C2=A0 =C2=A0 ((eq format 'latex)
=C2=A0 =C2=A0 =C2=A0(concat "\\citeauthorfull{"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(mapconcat = (lambda (key) key) (org-ref-split-and-strip-string keyword) ",")<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"}")))))


now they appear clickable in blue, and get properly exported
to \textcite{...} and \citeauthorfull{...}

Now, what was the deal of this adding them =C2=A0to 'org-ref-cite-types=
in the first place, if I had to take care of the details by hand anyway? Is there anything I could have left out / shortcut / I have forgotten maybe= ?

Thanks.

-Andreas



--f46d043c7ffe680d8104f951664c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 04:39:37 +0100 Message-ID: <878uq5m3k6.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkQ4h-0003Rt-JM for emacs-orgmode@gnu.org; Tue, 13 May 2014 23:41:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkQ4b-00066B-Hu for emacs-orgmode@gnu.org; Tue, 13 May 2014 23:41:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:44901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkQ4b-000667-BX for emacs-orgmode@gnu.org; Tue, 13 May 2014 23:41:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkQ4Y-0003oB-QM for emacs-orgmode@gnu.org; Wed, 14 May 2014 05:41:38 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 05:41:38 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 05:41:38 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Kitchin writes: > with the most recent org-ref, it should be sufficient to put this in your > init file: > > (org-ref-define-citation-link "textcite" ?I) > (org-ref-define-citation-link "citeauthorfull" ?F) > > this will create a textcite link and create a reftex menu you select with > the key I, and the other link with the key F. these should automatically be > links, and have completion functions. These will get exported as > \textcite{label} and \citeauthorfull{label}. The > org-ref-define-citation-link function adds the link, creates the functions > necessary, and adds the types to the right places. > > You do not need to do the manual additions unless you manually define the > link like you did with org-add-link-type. > OK, I see, and works fine, thanks. One minor thing: Am I restricted to single-letter keystrokes above ? like: I ---- (...?I) F ---- (... ?F) C-t ---- (... ?\C-t) I tried to get working something like C-r C-t with something like this (... ?(kbd "C-r C-t")) with no success, but I am unsure, if there is just something simple missing like a quote or a backslash, or if it's just not possible at this point. -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 04:58:00 +0100 Message-ID: <87r43xko53.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkQMS-0000gW-B8 for emacs-orgmode@gnu.org; Wed, 14 May 2014 00:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkQMM-0003x5-Sr for emacs-orgmode@gnu.org; Wed, 14 May 2014 00:00:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:39147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkQMM-0003vy-NI for emacs-orgmode@gnu.org; Wed, 14 May 2014 00:00:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkQMJ-0002EV-Ud for emacs-orgmode@gnu.org; Wed, 14 May 2014 05:59:59 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 05:59:59 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 05:59:59 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric, I don't have auctex installed, and org-ref works fine for me. But I do run a recent self-compiled emacs 24 (haven't tested yet, if it works with my older emacs24 from debian as well), and I get updated packages like dash relatively often via cask ( https://github.com/cask/cask , http://cask.github.io/ ), i. e. I have in my Cask file (depends-on "dash") so it wouldn't have happend to me to have an outdated dash pkg, isolating your problem and pointing at what exactly is causing your trouble is of course more difficult (and creating a minimal config that works for me takes more time than I currently have, sorry). Hope this helps, nevertheless -Andreas Eric S Fraga writes: > John, > > another data point. When I try to load an org file, once org-ref is > loaded, I get the following problem: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > re-search-forward(nil 10001 t) > tex-main-file() > reftex-TeX-master-file() > reftex-tie-multifile-symbols() > reftex-access-scan-info((16)) > reftex-parse-all() > (and (buffer-file-name) (file-exists-p (buffer-file-name)) > (global-auto-revert-mode t) (reftex-parse-all)) > org-mode-reftex-setup() > run-hooks(change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook)) > run-mode-hooks(org-mode-hook) > > Because of this, org-ref doesn't get initialised properly. > > Any idea what may be causing this? Do I need to configure auctex or > similar? > > thanks, > eric From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Wed, 14 May 2014 09:14:18 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <878uq5m3k6.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f50309e3b556604f95bf5cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ0n-0000Fc-Ou for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkZ0m-0003by-Gh for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:21 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:58574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ0m-0003bo-6o for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:20 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so1899234wgh.14 for ; Wed, 14 May 2014 06:14:18 -0700 (PDT) In-Reply-To: <878uq5m3k6.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --e89a8f50309e3b556604f95bf5cb Content-Type: text/plain; charset=UTF-8 I think you are restricted to single characters. That key is used by reftex, so it would be a limitation in reftex. You can always define your own function with a key-binding for something specific. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 11:39 PM, Andreas Reuleaux wrote: > John Kitchin writes: > > > with the most recent org-ref, it should be sufficient to put this in your > > init file: > > > > (org-ref-define-citation-link "textcite" ?I) > > (org-ref-define-citation-link "citeauthorfull" ?F) > > > > this will create a textcite link and create a reftex menu you select with > > the key I, and the other link with the key F. these should automatically > be > > links, and have completion functions. These will get exported as > > \textcite{label} and \citeauthorfull{label}. The > > org-ref-define-citation-link function adds the link, creates the > functions > > necessary, and adds the types to the right places. > > > > You do not need to do the manual additions unless you manually define the > > link like you did with org-add-link-type. > > > > > OK, I see, and works fine, thanks. > > One minor thing: Am I restricted to single-letter keystrokes > above ? like: > > I ---- (...?I) > F ---- (... ?F) > C-t ---- (... ?\C-t) > > I tried to get working something like > > C-r C-t > > with something like this > > (... ?(kbd "C-r C-t")) > > with no success, but I am unsure, if there is just something simple > missing like a quote or a backslash, or if it's just not possible > at this point. > > -Andreas > > > --e89a8f50309e3b556604f95bf5cb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think you are restricted to single characters. That key = is used by reftex, so it would be a limitation in reftex. You can always de= fine your own function with a key-binding for something specific.

John

-------------= ----------------------
John Kitchin
Associate Professor
Doherty Ha= ll A207F
Department of Chemical Engineering
Carnegie Mellon Universit= y
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Tue, May 13, 2014 at 11:39 PM, Andrea= s Reuleaux <andreas@a-rx.info> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> with the most recent org-ref, it should be sufficient to put this in y= our
> init file:
>
> (org-ref-define-citation-link "textcite" ?I)
> (org-ref-define-citation-link "citeauthorfull" ?F)
>
> this will create a textcite link and create a reftex menu you select w= ith
> the key I, and the other link with the key F. these should automatical= ly be
> links, and have completion functions. These will get exported as
> \textcite{label} and \citeauthorfull{label}. The
> org-ref-define-citation-link function adds the link, creates the funct= ions
> necessary, and adds the types to the right places.
>
> You do not need to do the manual additions unless you manually define = the
> link like you did with org-add-link-type.
>


OK, I see, and works fine, thanks.

One minor thing: Am I restricted to single-letter keystrokes
above ? like:

=C2=A0 I =C2=A0 =C2=A0---- (...?I)
=C2=A0 F =C2=A0 =C2=A0---- (... ?F)
=C2=A0 C-t =C2=A0---- (... ?\C-t)

I tried to get working something like

=C2=A0C-r C-t

with something like this

=C2=A0 (... ?(kbd "C-r C-t"))

with no success, but I am unsure, if there is just something simple
missing like a quote or a backslash, or if it's just not possible
at this point.

-Andreas



--e89a8f50309e3b556604f95bf5cb-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Wed, 14 May 2014 09:17:43 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87r43xko53.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428a6c72a78904f95c01dd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ4A-0002o1-Go for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:17:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkZ44-0005BA-He for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:17:50 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:63605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ44-0005Ay-85 for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:17:44 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so1852239wgh.26 for ; Wed, 14 May 2014 06:17:43 -0700 (PDT) In-Reply-To: <87r43xko53.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --f46d04428a6c72a78904f95c01dd Content-Type: text/plain; charset=UTF-8 I also run emacs 24.3. nearly my whole setup is here: https://github.com/jkitchin/jmax If you are on windows, you should be able to clone that repository, and run jmax.bat which will run the emacs binary in that repository and load the jmax code which includes org-ref. You may not want to use my setup all the time, but it might help figure out what is different with your setup. For Macs or Linux, you just need to run something like "emacs -q -l path/to/jmax/init.el" to try it out. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 11:58 PM, Andreas Reuleaux wrote: > Eric, > > I don't have auctex installed, and org-ref works fine for me. > > But I do run a recent self-compiled emacs 24 (haven't tested yet, > if it works with my older emacs24 from debian as well), > and I get updated packages like dash relatively often via cask > ( https://github.com/cask/cask , http://cask.github.io/ ), > i. e. I have in my Cask file > > (depends-on "dash") > > so it wouldn't have happend to me to have an outdated dash pkg, > isolating your problem and pointing at what exactly is causing your > trouble is of course more difficult (and creating a minimal config that > works for me takes more time than I currently have, sorry). > > Hope this helps, nevertheless > > > -Andreas > > > > Eric S Fraga writes: > > > John, > > > > another data point. When I try to load an org file, once org-ref is > > loaded, I get the following problem: > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > re-search-forward(nil 10001 t) > > tex-main-file() > > reftex-TeX-master-file() > > reftex-tie-multifile-symbols() > > reftex-access-scan-info((16)) > > reftex-parse-all() > > (and (buffer-file-name) (file-exists-p (buffer-file-name)) > > (global-auto-revert-mode t) (reftex-parse-all)) > > org-mode-reftex-setup() > > run-hooks(change-major-mode-after-body-hook text-mode-hook > > outline-mode-hook org-mode-hook) > > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook > > outline-mode-hook org-mode-hook)) > > run-mode-hooks(org-mode-hook) > > > > Because of this, org-ref doesn't get initialised properly. > > > > Any idea what may be causing this? Do I need to configure auctex or > > similar? > > > > thanks, > > eric > > > --f46d04428a6c72a78904f95c01dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I also run emacs 24.3.

nearly = my whole setup is here: https:= //github.com/jkitchin/jmax

If you are on windows, you shou= ld be able to clone that repository, and run jmax.bat which will run the em= acs binary in that repository and load the jmax code which includes org-ref= . You may not want to use my setup all the time, but it might help figure o= ut what is different with your setup.

For Macs or Linux, you just need to run something like "emac= s -q -l path/to/jmax/init.el" to try it out.

John

-----------------------------= ------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of = Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213<= br>412-268-7803
http://kitchingroup.cheme.cmu.edu



On Tue, May 13, 2014 at 11:58 PM, Andrea= s Reuleaux <andreas@a-rx.info> wrote:
Eric,

I don't have auctex installed, and org-ref works fine for me.

But I do run a recent self-compiled emacs 24 (haven't tested yet,
if it works with my older emacs24 from debian as well),
and I get updated packages like dash relatively often via cask
( https://github= .com/cask/cask , h= ttp://cask.github.io/ ),
i. e. I have in my Cask file

=C2=A0 (depends-on "dash")

so it wouldn't have happend to me to have an outdated dash pkg,
isolating your problem and pointing at what exactly is causing your
trouble is of course more difficult (and creating a minimal config that
works for me takes more time than I currently have, sorry).

Hope this helps, nevertheless


-Andreas



Eric S Fraga <e.fraga@ucl.ac.uk= > writes:

> John,
>
> another data point. =C2=A0When I try to load an org file, once org-ref= is
> loaded, I get the following problem:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> =C2=A0 re-search-forward(nil 10001 t)
> =C2=A0 tex-main-file()
> =C2=A0 reftex-TeX-master-file()
> =C2=A0 reftex-tie-multifile-symbols()
> =C2=A0 reftex-access-scan-info((16))
> =C2=A0 reftex-parse-all()
> =C2=A0 (and (buffer-file-name) (file-exists-p (buffer-file-name))
> (global-auto-revert-mode t) (reftex-parse-all))
> =C2=A0 org-mode-reftex-setup()
> =C2=A0 run-hooks(change-major-mode-after-body-hook text-mode-hook
> outline-mode-hook org-mode-hook)
> =C2=A0 apply(run-hooks (change-major-mode-after-body-hook text-mode-ho= ok
> outline-mode-hook org-mode-hook))
> =C2=A0 run-mode-hooks(org-mode-hook)
>
> Because of this, org-ref doesn't get initialised properly.
>
> Any idea what may be causing this? =C2=A0Do I need to configure auctex= or
> similar?
>
> thanks,
> eric



--f46d04428a6c72a78904f95c01dd-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 18:39:19 +0100 Message-ID: <87lhu4l0oo.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <878uq5m3k6.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkdBF-0003LS-TB for emacs-orgmode@gnu.org; Wed, 14 May 2014 13:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkdB9-0004g4-Nn for emacs-orgmode@gnu.org; Wed, 14 May 2014 13:41:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:34970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkdB9-0004fp-I5 for emacs-orgmode@gnu.org; Wed, 14 May 2014 13:41:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkdB8-0003HP-Jv for emacs-orgmode@gnu.org; Wed, 14 May 2014 19:41:18 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 19:41:18 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 19:41:18 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org OK, thanks. -Andreas John Kitchin writes: > I think you are restricted to single characters. That key is used by > reftex, so it would be a limitation in reftex. You can always define your > own function with a key-binding for something specific. > > John From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Wed, 14 May 2014 19:17:49 +0100 Message-ID: <87k39ojkc2.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkdkk-0003c5-Ih for emacs-orgmode@gnu.org; Wed, 14 May 2014 14:18:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkdkd-0000yA-SJ for emacs-orgmode@gnu.org; Wed, 14 May 2014 14:18:06 -0400 Received: from mail-db3lp0083.outbound.protection.outlook.com ([213.199.154.83]:4962 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkdkd-0000wa-Ip for emacs-orgmode@gnu.org; Wed, 14 May 2014 14:17:59 -0400 In-Reply-To: (John Kitchin's message of "Tue, 13 May 2014 20:28:37 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain On Tuesday, 13 May 2014 at 20:28, John Kitchin wrote: > interesting. I do have auxtex installed, but I don't think I configure it > anywhere. I do require reftex and reftex-cite in my init files. I also set > the default reftex bibliography. > > (setq reftex-default-bibliography > '("~/Dropbox/bibliography/references.bib")) > > I will try to reproduce this tomorrow. Hi John, In case this helps, if I start emacs with -q and evaluate the contents of emacs-minimal.el (attached) and then visit orgref.org (attached), I can insert a reference (references.bib also attached) but the resulting latex doesn't work because bibtex complains about missing bibstyle. If I add the LaTeX directive to specify the bibliography style (as the attached file has), everthing works. This includes C-u C-c ] asking for type of citation. How do I specify the bibstyle for org-ref? When I say that everything works, it works with this minimal configuration but not yet in my full configuration. But that's my problem. Somehow, I am making the latex exporter not handle cite: links. Very strange. I'll get back to you on this in due course! I am actually using Emacs 24.4, not 24.3. I'm tracking emacs-snapshot which is the development version as I like to live dangerously ;-) thanks again for org-ref, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename="orgref.org" # -*- org-latex-pdf-process: ("pdflatex %b" "bibtex %b" "pdflatex %b" "pdflatex %b") -*- #+title: test out org-ref * Introduction The paper by somebody cite:aaltola-2002 is most interesting. Also, autocite:aaltola-2002 is exciting. * References #+latex: \bibliographystyle{acm} bibliography:references.bib --=-=-= Content-Type: text/x-bibtex Content-Disposition: attachment; filename="references.bib" @Article{aaltola-2002, author = {J. Aaltola}, title = {Simultaneous synthesis of flexible heat exchanger network}, journal = {Applied Thermal Engineering}, year = 2002, volume = 22, number = 8, pages = {907-918} } --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename="emacs-minimal.el" Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/git/org-mode/lisp") (require 'org) (add-to-list 'load-path "~/s/emacs") (require 'org-ref) --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 20:03:24 +0100 Message-ID: <87a9akkwsj.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkeUj-0007x5-Pt for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkeUZ-0001Gl-Tq for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:05:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:35672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkeUZ-0001Gg-No for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:05:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkeUX-0006Me-4p for emacs-orgmode@gnu.org; Wed, 14 May 2014 21:05:25 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 21:05:25 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 21:05:25 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > How do I specify the bibstyle for org-ref? I am not sure if I understand your question correctly and John certainly has more insight here, but I have in my org document #+LaTeX_HEADER: \include{ltxhdr} and within that ltxhdr.tex I have among other config settings \usepackage[backend=bibtex,style=authoryear]{biblatex} \addbibresource{refs.bib} I could have written several lines of #+LaTeX_HEADER: \usepackage[backend=bibtex,style=authoryear]{biblatex} #+LaTeX_HEADER: \addbibresource{refs.bib} instead. There is no specific bibstyle of org-ref (correct, John?), that's the job of latex, you will be happy if: * your org mode has clickable citations links, * let's you insert citations in a comfortably manner * you can jump between refs and labels etc. * all of those citations get exported to their latex equivalents If for some reason your citations get exported to latex, say cite:foo to \cite{foo}, but still don't appear in your final pdf, than you have to tweek your latex settings, obviously. - Maybe forgot to call bibtex(8) on your document? I run these: * an emacs batch script, tex.el to get the document.tex from document.org * xelatex -8bit -shell-escape document.tex * bibtex8 document * xelatex document again, etc. You can check your latex toolchain independently from your org-ref config. HTH, -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: org-ref code Date: Wed, 14 May 2014 20:48:28 +0100 Message-ID: <87oaz09m5v.fsf@skimble.plus.com> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <87a9akkwsj.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAc-0008Hf-NH for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkfAU-0006lu-FM for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:54 -0400 Received: from avasout07.plus.net ([84.93.230.235]:49198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAU-0006lT-7D for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:46 -0400 In-Reply-To: <87a9akkwsj.fsf@a-rx.info> (Andreas Reuleaux's message of "Wed, 14 May 2014 20:03:24 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Reuleaux writes: > Eric S Fraga writes: > > >> How do I specify the bibstyle for org-ref? > > > I am not sure if I understand your question correctly > and John certainly has more insight here, but I have in > my org document > > #+LaTeX_HEADER: \include{ltxhdr} > > and within that ltxhdr.tex I have among other config settings > > \usepackage[backend=3Dbibtex,style=3Dauthoryear]{biblatex} > \addbibresource{refs.bib} > > I could have written several lines of=20 > > #+LaTeX_HEADER: \usepackage[backend=3Dbibtex,style=3Dauthoryear]{biblatex} > #+LaTeX_HEADER: \addbibresource{refs.bib} > > instead. > > There is no specific bibstyle of org-ref (correct, John?), that's the > job of latex, you will be happy if: > > * your org mode has clickable citations links, > > * let's you insert citations in a comfortably manner > > * you can jump between refs and labels etc. > > * all of those citations get exported to their latex > equivalents > > If for some reason your citations get exported to latex, say > cite:foo to \cite{foo}, but still don't appear in your > final pdf, than you have to tweek your latex settings, > obviously. - Maybe forgot to call bibtex(8) on your document? > > I run these: > * an emacs batch script, tex.el to get the document.tex > from document.org > * xelatex -8bit -shell-escape document.tex > * bibtex8 document > * xelatex document > again, etc. > > You can check your latex toolchain independently from > your org-ref config. > > HTH, > -Andreas That seems a very long winded way round things! For your information this is a batch script that I'm using for generating a PDF in pure latex, and all I have to do is to cd to the directory where the files are, and then just enter "pdfbuild" in the command-line. It does all the rest itself, and you could easily adapt it for your circumstances =2D-8<---------------cut here---------------start------------->8--- #!/bin/bash set -e #set -x #variables filename=3D"uh2014" ############# xelatex $filename biber $filename biber $filename xelatex $filename=20 biber $filename xelatex $filename=20 makeindex $filename makeindex $filename xelatex $filename makeglossaries $filename xelatex $filename xelatex $filename =2D-8<---------------cut here---------------end--------------->8--- It handles and generates the references, the glossary, and the index as well as the body of the document.=20 All you have to do is enter your "foo.tex" where foo is the name of your generated tex file, and then let the script take over. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTc8iNAAoJEDaBgBkK+INbdigP/RiSZREIERxMUD7Na+cZHzro FRnq9Pj6JTuZTGSDidzDbHLeW/TBCj7BEn7Ta8A1ZJM4uSb6DD9MH1BilTAkZgQJ Lrb7fqRrv+pfwtj0Twi1PNyoWHq6bFWzbp1efmnbNsQ2iOd2rfUTNv6aGRhpVMUD KHHZqt916BoTMokL6MN2wno/zhH4gzGg5nOKdvFm+EBAEW7x7nO61KbOspLvGMPp Ga6hxYbF7iGDgpAahxN4ZmOnGErqLR9p1AZsa290F/t0fJQ8Y77/brGyAnYFZogy f/jARIahDCYb5WunpMIfMKG0jnlvFhF/mLkdvHPyIN/visdWJOqw0V2Yg6ab40AC 5mOm10v5MVkK3i5WnNeG2bT+/qAAwru1UfUE2K9F1DPE8PXN65Knb7JKhjP3avZn QMK4tEWBlRU/uCzsqkOCPwnEy6hSp3tZSud9zBsjA/FZxpH4O+KvZYK6bY3dcok8 v/PwLRogUtfwAMZ/Va8uko5xlaiKcjsM1sBGwsv2RI9c5iw6DiuioNQ6vhZwvcFv 2iPx+PLJCjhoNkgkR15F4tOXyi42nz3pSu6XDTwqd98EUitiYysksP7rR4Qb5ZsE QTpXTgSrkp16VbqJDPtOqcIuIFrmLkpmV4nGJF4DxZozILoiVSXek/9BJAOF/fPi hxjY3KQ2vx0ToUGxTPDj =z07v -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref code Date: Wed, 14 May 2014 21:08:30 +0100 Message-ID: <874n0skts1.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <87a9akkwsj.fsf@a-rx.info> <87oaz09m5v.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfVe-0000iG-57 for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkfVY-0005Fu-Ks for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:10:38 -0400 Received: from plane.gmane.org ([80.91.229.3]:51011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfVY-0005FV-5J for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:10:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkfVW-0000hN-Ha for emacs-orgmode@gnu.org; Wed, 14 May 2014 22:10:30 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 22:10:30 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2014 22:10:30 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Well, I know how to write shell scripts, and have something similar encoded in a shake file (haskell make replacement), for that matter, but prefer to have xelatex not called 5 times during every little development step. Anyway thanks a lot. My point here really was, that org-ref and the latex chains are separate and can be separately tested. -Andreas Sharon Kimble writes: > Andreas Reuleaux writes: > >> Eric S Fraga writes: >> >> >>> How do I specify the bibstyle for org-ref? >> >> >> I am not sure if I understand your question correctly >> and John certainly has more insight here, but I have in >> my org document >> >> #+LaTeX_HEADER: \include{ltxhdr} >> >> and within that ltxhdr.tex I have among other config settings >> >> \usepackage[backend=bibtex,style=authoryear]{biblatex} >> \addbibresource{refs.bib} >> >> I could have written several lines of >> >> #+LaTeX_HEADER: \usepackage[backend=bibtex,style=authoryear]{biblatex} >> #+LaTeX_HEADER: \addbibresource{refs.bib} >> >> instead. >> >> There is no specific bibstyle of org-ref (correct, John?), that's the >> job of latex, you will be happy if: >> >> * your org mode has clickable citations links, >> >> * let's you insert citations in a comfortably manner >> >> * you can jump between refs and labels etc. >> >> * all of those citations get exported to their latex >> equivalents >> >> If for some reason your citations get exported to latex, say >> cite:foo to \cite{foo}, but still don't appear in your >> final pdf, than you have to tweek your latex settings, >> obviously. - Maybe forgot to call bibtex(8) on your document? >> >> I run these: >> * an emacs batch script, tex.el to get the document.tex >> from document.org >> * xelatex -8bit -shell-escape document.tex >> * bibtex8 document >> * xelatex document >> again, etc. >> >> You can check your latex toolchain independently from >> your org-ref config. >> >> HTH, >> -Andreas > > That seems a very long winded way round things! For your information > this is a batch script that I'm using for generating a PDF in pure > latex, and all I have to do is to cd to the directory where the > files are, and then just enter "pdfbuild" in the command-line. It > does all the rest itself, and you could easily adapt it for your > circumstances > #!/bin/bash > set -e > #set -x > > #variables > filename="uh2014" > > ############# > xelatex $filename > biber $filename > biber $filename > xelatex $filename > biber $filename > xelatex $filename > makeindex $filename > makeindex $filename > xelatex $filename > makeglossaries $filename > xelatex $filename > xelatex $filename > > It handles and generates the references, the glossary, and the index > as well as the body of the document. > > All you have to do is enter your "foo.tex" where foo is the name of > your generated tex file, and then let the script take over. > > Sharon. From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Wed, 14 May 2014 16:35:43 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7beb9c80e3a2ee04f9621fe9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkftz-000864-D4 for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkftx-0004sF-7m for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:35:47 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:38906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkftw-0004sB-Tj for emacs-orgmode@gnu.org; Wed, 14 May 2014 16:35:45 -0400 Received: by mail-wg0-f51.google.com with SMTP id x13so2428444wgg.34 for ; Wed, 14 May 2014 13:35:44 -0700 (PDT) In-Reply-To: <87k39ojkc2.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7beb9c80e3a2ee04f9621fe9 Content-Type: text/plain; charset=UTF-8 Good. I am glad to hear you are making some progress! you have to specify the bibliography style for latex export somewhere in the document. You can use a bibliographystyle link for bibtex, eg. bibliographystyle:unsrt. That will get exported to \bibliographystyle{unsrt}. That link does not do anything but export to latex. or you can simply put \bibliographystyle{unsrt} above the bibliography link. For any other thing like biblatex, just put the code that specifies the style where it belongs, e.g. in the header with #+latex_header: or at the end with the raw latex commands. Not all documents require a style, article classes do, but the revtex4-1 class, for example defines the style for you. I wonder if you are adding another cite link later that overrides my cite link. do the other citation links export ok, e.g. autocite, citeyear, etc...? John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Wed, May 14, 2014 at 2:17 PM, Eric S Fraga wrote: > On Tuesday, 13 May 2014 at 20:28, John Kitchin wrote: > > interesting. I do have auxtex installed, but I don't think I configure it > > anywhere. I do require reftex and reftex-cite in my init files. I also > set > > the default reftex bibliography. > > > > (setq reftex-default-bibliography > > '("~/Dropbox/bibliography/references.bib")) > > > > I will try to reproduce this tomorrow. > > Hi John, > > In case this helps, if I start emacs with -q and evaluate the contents > of emacs-minimal.el (attached) and then visit orgref.org (attached), I > can insert a > reference (references.bib also attached) but the resulting latex doesn't > work because bibtex complains about missing bibstyle. > > If I add the LaTeX directive to specify the bibliography style (as the > attached file has), everthing works. This includes C-u C-c ] asking for > type of citation. > > How do I specify the bibstyle for org-ref? > > When I say that everything works, it works with this minimal > configuration but not yet in my full configuration. But that's my > problem. Somehow, I am making the latex exporter not handle cite: > links. Very strange. I'll get back to you on this in due course! > > I am actually using Emacs 24.4, not 24.3. I'm tracking emacs-snapshot > which is the development version as I like to live dangerously ;-) > > thanks again for org-ref, > eric > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --047d7beb9c80e3a2ee04f9621fe9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Good. I am glad to hear you are making some progress!=

you have to specify the bibliography style for latex exp= ort somewhere in the document. You can use a bibliographystyle link for bib= tex, eg. bibliographystyle:unsrt. That will get exported to \bibliographyst= yle{unsrt}. That link does not do anything but export to latex. or you can = simply put \bibliographystyle{unsrt} above the bibliography link. For any o= ther thing like biblatex, just put the code that specifies the style where = it belongs, e.g. in the header with #+latex_header: or at the end with the = raw latex commands. Not all documents require a style, article classes do, = but the revtex4-1 class, for example defines the style for you.

I wonder if you are adding another cite link later that overrides= my cite link. do the other citation links export ok, e.g. autocite, citeye= ar, etc...?

John=

-----------------------------------
John Kitchin
Associate Profes= sor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie= Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.chem= e.cmu.edu



On Wed, May 14, 2014 at 2:17 PM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
On Tuesday, 13 May 2014 at 20:28, John Kitchin wrote:
> interesting. I do have auxtex installed, but I don't think I confi= gure it
> anywhere. I do require reftex and reftex-cite in my init files. I also= set
> the default reftex bibliography.
>
> (setq reftex-default-bibliography
> '("~/Dropbox/bibliography/references.bib"))
>
> I will try to reproduce this tomorrow.

Hi John,

In case this helps, if I start emacs with -q and evaluate the contents
of emacs-minimal.el (attached) and then visit orgref.org (attached), I can insert a
reference (references.bib also attached) but the resulting latex doesn'= t
work because bibtex complains about missing bibstyle.

If I add the LaTeX directive to specify the bibliography style (as the
attached file has), everthing works. =C2=A0This includes C-u C-c ] asking f= or
type of citation.

How do I specify the bibstyle for org-ref?

When I say that everything works, it works with this minimal
configuration but not yet in my full configuration. =C2=A0But that's my=
problem. =C2=A0Somehow, I am making the latex exporter not handle cite:
links. =C2=A0Very strange. =C2=A0I'll get back to you on this in due co= urse!

I am actually using Emacs 24.4, not 24.3. =C2=A0I'm tracking emacs-snap= shot
which is the development version as I like to live dangerously ;-)

thanks again for org-ref,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559= -git

--047d7beb9c80e3a2ee04f9621fe9-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Wed, 14 May 2014 23:14:42 +0100 Message-ID: <87mwekhust.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <87a9akkwsj.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkhRt-0007Go-GT for emacs-orgmode@gnu.org; Wed, 14 May 2014 18:14:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkhRn-00038M-K7 for emacs-orgmode@gnu.org; Wed, 14 May 2014 18:14:53 -0400 Received: from mail-db3lp0082.outbound.protection.outlook.com ([213.199.154.82]:39437 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkhRn-00037v-Aq for emacs-orgmode@gnu.org; Wed, 14 May 2014 18:14:47 -0400 In-Reply-To: <87a9akkwsj.fsf@a-rx.info> (Andreas Reuleaux's message of "Wed, 14 May 2014 20:03:24 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: emacs-orgmode@gnu.org On Wednesday, 14 May 2014 at 20:03, Andreas Reuleaux wrote: > Eric S Fraga writes: >> How do I specify the bibstyle for org-ref? [...] > There is no specific bibstyle of org-ref (correct, John?), that's the That's what I wanted to confirm. And it has been confirmed (by both you and another email from John). Thanks. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 07:58:58 +0100 Message-ID: <8738gbr0i5.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkpdL-0005KM-B7 for emacs-orgmode@gnu.org; Thu, 15 May 2014 02:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkpdA-00038D-6q for emacs-orgmode@gnu.org; Thu, 15 May 2014 02:59:15 -0400 Received: from mail-db3lp0081.outbound.protection.outlook.com ([213.199.154.81]:57967 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkpd9-00037u-Tr for emacs-orgmode@gnu.org; Thu, 15 May 2014 02:59:04 -0400 In-Reply-To: (John Kitchin's message of "Wed, 14 May 2014 16:35:43 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Wednesday, 14 May 2014 at 16:35, John Kitchin wrote: [...] > I wonder if you are adding another cite link later that overrides my cite > link. do the other citation links export ok, e.g. autocite, citeyear, > etc...? The problem is not how links are handled but the fact that implicit links, i.e. those not surrounded by [[...]], are not recognised as links on export. This applies to all citation links but not, for instance, http:. There has to be something in org that I need to set or that I have set that affects this behaviour but I just do not seem to find it. I am now bisecting my initialisation code to see if it is me setting something but I do wonder if there is something you have set to tell org to recognise implicitly defined links? In any case, would it be possible to have org-ref insert proper links, i.e. [[cite:joe-2014]], maybe as an option? I often use superscripts for citation references and a space before the superscript looks ugly! And my problem would be solved... :) thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 09:17:22 +0100 Message-ID: <87tx8rpib1.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkqrC-0001Zv-V1 for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkqr7-0005xA-5H for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:17:38 -0400 Received: from mail-am1lp0010.outbound.protection.outlook.com ([213.199.154.10]:35966 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkqr6-0005wy-TM for emacs-orgmode@gnu.org; Thu, 15 May 2014 04:17:33 -0400 In-Reply-To: <8738gbr0i5.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 15 May 2014 07:58:58 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" John, I am in the process of bisecting my initialisation. Something I have set definitely stops org (whether 8.2.5c which comes with emacs 24.4.50.2 or 8.2.6-958) from recognising cite:... etc. as links. However, I have been re-building up from no initialisation bit by bit. Right from the start, I get the error I posted yesterday: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) re-search-forward(nil 10001 t) tex-main-file() reftex-TeX-master-file() reftex-tie-multifile-symbols() reftex-access-scan-info((16)) reftex-parse-all() (and (buffer-file-name) (file-exists-p (buffer-file-name)) (global-auto-revert-mode t) (reftex-parse-all)) org-mode-reftex-setup() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/s/test/t.org" nil nil "~/synced/test/t.org" (10095713 2055)) find-file-noselect("~/s/test/t.org" nil nil t) find-file("~/s/test/t.org" t) call-interactively(find-file nil nil) command-execute(find-file) --8<---------------cut here---------------end--------------->8--- This happens when I try to visit any org file *once* I have loaded org-ref the first time. It doesn't happen before org-ref is loaded. I am starting to despair, I must admit! I wonder if there is a conflict between Emacs 24.4.50 and org-ref? Or do you have some other setting for reftex that is not the default? Anyway, I have to get some work done so I will do without org-ref for the time being. I'll revisit later. thanks again for all your time, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-ref code Date: Thu, 15 May 2014 12:09:40 +0200 Message-ID: <87ppjfs68r.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wksbk-0007z7-Ns for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:09:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wksbf-0007xy-2y for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:09:48 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:49775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wksbe-0007xn-TI for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:09:43 -0400 Received: by mail-wi0-f176.google.com with SMTP id n15so9502713wiw.9 for ; Thu, 15 May 2014 03:09:42 -0700 (PDT) In-Reply-To: (John Kitchin's message of "Thu, 8 May 2014 09:53:56 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: Vikas Rawal , org-mode mailing list Hi John, John Kitchin writes: > I would prefer to keep org-ref where it is until it "stabilizes". I hope it will stabilize before Org 8.3 so that we can add org-ref to contrib/ and give it exposure in the release notes. Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 15 May 2014 09:05:18 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bb03f9ae200bc04f96ff265 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvLh-0007V1-Ai for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkvLb-0000tf-Ve for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:25 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:38256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvLb-0000rk-HZ for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:19 -0400 Received: by mail-we0-f176.google.com with SMTP id q59so1044015wes.35 for ; Thu, 15 May 2014 06:05:18 -0700 (PDT) In-Reply-To: <87tx8rpib1.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7bb03f9ae200bc04f96ff265 Content-Type: text/plain; charset=UTF-8 That is pretty strange. I used this to get a minimally working install of org-ref. I deleted ~/.emacs.d, and ran emacs -q and then executed this code block. * installation You need the dash package. Use these repositories, and install dash. #+BEGIN_SRC emacs-lisp (require 'package) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/") )) (package-refresh-contents) (package-install 'dash) (org-babel-load-file "~/Dropbox/kitchingroup/jmax/org-ref.org") ;; this function is normally run as a hook. we run it manually here to ;; get started. (org-mode-reftex-setup) #+END_SRC #+RESULTS: : org-ref-insert-cite-link After that, it works like I expect. Your error seems to be coming from reftex. I wonder if you have something set that is making it look for a TeX-master or something, which eventually results in nil, which is failing here: re-search-forward(nil 10001 t). Or maybe you need to set something to turn that off. Perhaps some default changed? John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 15, 2014 at 4:17 AM, Eric S Fraga wrote: > John, > > I am in the process of bisecting my initialisation. Something I have > set definitely stops org (whether 8.2.5c which comes with emacs > 24.4.50.2 or 8.2.6-958) from recognising cite:... etc. as links. > > However, I have been re-building up from no initialisation bit by > bit. Right from the start, I get the error I posted yesterday: > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > re-search-forward(nil 10001 t) > tex-main-file() > reftex-TeX-master-file() > reftex-tie-multifile-symbols() > reftex-access-scan-info((16)) > reftex-parse-all() > (and (buffer-file-name) (file-exists-p (buffer-file-name)) > (global-auto-revert-mode t) (reftex-parse-all)) > org-mode-reftex-setup() > run-hooks(change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook)) > run-mode-hooks(org-mode-hook) > org-mode() > set-auto-mode-0(org-mode nil) > set-auto-mode() > normal-mode(t) > after-find-file(nil t) > find-file-noselect-1(# "~/s/test/t.org" nil nil > "~/synced/test/t.org" (10095713 2055)) > find-file-noselect("~/s/test/t.org" nil nil t) > find-file("~/s/test/t.org" t) > call-interactively(find-file nil nil) > command-execute(find-file) > --8<---------------cut here---------------end--------------->8--- > > This happens when I try to visit any org file *once* I have loaded > org-ref the first time. It doesn't happen before org-ref is loaded. > > I am starting to despair, I must admit! I wonder if there is a conflict > between Emacs 24.4.50 and org-ref? Or do you have some other setting > for reftex that is not the default? > > Anyway, I have to get some work done so I will do without org-ref for > the time being. I'll revisit later. > > thanks again for all your time, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --047d7bb03f9ae200bc04f96ff265 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That is pretty strange. I used this to get a min= imally working install of org-ref. I deleted ~/.emacs.d, and ran emacs -q a= nd then executed this code block.

* installation

You need the= dash package. Use these repositories, and=C2=A0 install dash.

#+BEGIN_SRC emacs-lisp
=C2=A0 (require 'package)
=C2=A0
= =C2=A0 (setq package-archives
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= '(("org"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . &= quot;http://orgmode.org/elpa/"= ;)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("gnu&quo= t;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . "http://elpa.gnu.org/packages/")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("melpa" .= "http://melpa.milkbox.= net/packages/")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ))
=C2=A0 (package-refresh-contents)
=C2=A0 (package-instal= l 'dash)
=C2=A0
=C2=A0 (org-babel-load-file "~/Dropbox/kitc= hingroup/jmax/org-ref.org")
=C2=A0
=C2=A0 ;; this function is normally run as a hook. we run it man= ually here to
=C2=A0 ;; get started.
=C2=A0 (org-mode-reftex-setup)#+END_SRC

#+RESULTS:
: org-ref-insert-cite-link

Af= ter that, it works like I expect.

Your error seems to be coming from reftex. I wonder if you have s= omething set that is making it look for a TeX-master or something, which ev= entually results in nil, which is failing here: re-search-forward(nil 10001= t). Or maybe you need to set something to turn that off. Perhaps some defa= ult changed?


John

-----------------------------------
John Kitch= in
Associate Professor
Doherty Hall A207F
Department of Chemical E= ngineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingr= oup.cheme.cmu.edu



On Thu, May 15, 2014 at 4:17 AM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
John,

I am in the process of bisecting my initialisation. =C2=A0Something I have<= br> set definitely stops org (whether 8.2.5c which comes with emacs
24.4.50.2 or 8.2.6-958) from recognising cite:... etc. as links.

However, I have been re-building up from no initialisation bit by
bit. =C2=A0Right from the start, I get the error I posted yesterday:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument stringp = nil)
=C2=A0 re-search-forward(nil 10001 t)
=C2=A0 tex-main-file()
=C2=A0 reftex-TeX-master-file()
=C2=A0 reftex-tie-multifile-symbols()
=C2=A0 reftex-access-scan-info((16))
=C2=A0 reftex-parse-all()
=C2=A0 (and (buffer-file-name) (file-exists-p (buffer-file-name)) (global-a= uto-revert-mode t) (reftex-parse-all))
=C2=A0 org-mode-reftex-setup()
=C2=A0 run-hooks(change-major-mode-after-body-hook text-mode-hook outline-m= ode-hook org-mode-hook)
=C2=A0 apply(run-hooks (change-major-mode-after-body-hook text-mode-hook ou= tline-mode-hook org-mode-hook))
=C2=A0 run-mode-hooks(org-mode-hook)
=C2=A0 org-mode()
=C2=A0 set-auto-mode-0(org-mode nil)
=C2=A0 set-auto-mode()
=C2=A0 normal-mode(t)
=C2=A0 after-find-file(nil t)
=C2=A0 find-file-noselect-1(#<buffer t.org> "~/s/test/t.org" nil nil "~/synced/test/t.org" (10095713 2055))
=C2=A0 find-file-noselect("~/s/test/t.org" nil nil t)
=C2=A0 find-file("~/s/test/= t.org" t)
=C2=A0 call-interactively(find-file nil nil)
=C2=A0 command-execute(find-file)
--8<---------------cut here---------------end--------------->8---

This happens when I try to visit any org file *once* I have loaded
org-ref the first time. =C2=A0It doesn't happen before org-ref is loade= d.

I am starting to despair, I must admit! =C2=A0I wonder if there is a confli= ct
between Emacs 24.4.50 and org-ref? =C2=A0Or do you have some other setting<= br> for reftex that is not the default?

Anyway, I have to get some work done so I will do without org-ref for
the time being. =C2=A0I'll revisit later.

thanks again for all your time,
eric

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559= -git

--047d7bb03f9ae200bc04f96ff265-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 14:14:11 +0100 Message-ID: <87iop7npzw.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvUO-0000BL-Bm for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkvUG-0003j3-TE for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:14:24 -0400 Received: from mail-db3lp0084.outbound.protection.outlook.com ([213.199.154.84]:39965 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvUG-0003ik-KO for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:14:16 -0400 In-Reply-To: (John Kitchin's message of "Thu, 15 May 2014 09:05:18 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 15 May 2014 at 09:05, John Kitchin wrote: [...] > Your error seems to be coming from reftex. I wonder if you have something > set that is making it look for a TeX-master or something, which eventually > results in nil, which is failing here: re-search-forward(nil 10001 t). Or > maybe you need to set something to turn that off. Perhaps some default > changed? Yes, that is my feeling as well but I am totally unable to find what may be causing it. I haven't yet looked to see whether there have been any changes in reftex itself in the latest emacs. I continue to investigate! thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 15 May 2014 09:15:33 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428cae85745104f97017e7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvVY-0002rK-T5 for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkvVX-0004gN-9o for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:15:36 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:58665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvVX-0004fw-00 for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:15:35 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so3365289wgh.26 for ; Thu, 15 May 2014 06:15:33 -0700 (PDT) In-Reply-To: <8738gbr0i5.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --f46d04428cae85745104f97017e7 Content-Type: text/plain; charset=UTF-8 I can see the desire to avoid the space with a superscript, but that is a latex specific formatting issue, that is probably taken care of with some package. In the packages we use (usually natmove), citations are moved to the correct side of punctuation, for example, so we always put them on the left where the logically make sense (eg because it is "grouped" in the sentence being cited. the latex package moves the superscripts to the right. I think it also works on spaces In org-mode some text[[cite:yoo-2014-theor-analy]] is also "ugly" ;) and harder to read. That gives us the best of both worlds (org and latex) I don't think I have done anything to make the naked links work. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 15, 2014 at 2:58 AM, Eric S Fraga wrote: > On Wednesday, 14 May 2014 at 16:35, John Kitchin wrote: > > [...] > > > I wonder if you are adding another cite link later that overrides my cite > > link. do the other citation links export ok, e.g. autocite, citeyear, > > etc...? > > The problem is not how links are handled but the fact that implicit > links, i.e. those not surrounded by [[...]], are not recognised as links > on export. This applies to all citation links but not, for instance, > http:. There has to be something in org that I need to set or that I > have set that affects this behaviour but I just do not seem to find it. > > I am now bisecting my initialisation code to see if it is me setting > something but I do wonder if there is something you have set to tell org > to recognise implicitly defined links? > > In any case, would it be possible to have org-ref insert proper links, > i.e. [[cite:joe-2014]], maybe as an option? I often use superscripts > for citation references and a space before the superscript looks ugly! > And my problem would be solved... :) > > thanks again, > eric > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --f46d04428cae85745104f97017e7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I can see the desire to avoid the space with a supers= cript, but that is a latex specific formatting issue, that is probably take= n care of with some package. In the packages we use (usually natmove), cita= tions are moved to the correct side of punctuation, for example, so we alwa= ys put them on the left where the logically make sense (eg because it is &q= uot;grouped" in the sentence being cited. the latex package moves the = superscripts to the right. I think it also works on spaces In org-mode some= text[[cite:yoo-2014-theor-analy]] is also "ugly" ;) and harder t= o read. That gives us the best of both worlds (org and latex)

I don't think I have done anything to make the naked links wo= rk.

John

= -----------------------------------
John Kitchin
Associate Professor<= br> Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.e= du



On Thu, May 15, 2014 at 2:58 AM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
On Wednesday, 14 May 2014 at 16:35, John Kitchin wrote:

[...]

> I wonder if you are adding another cite link later that overrides my c= ite
> link. do the other citation links export ok, e.g. autocite, citeyear,<= br> > etc...?

The problem is not how links are handled but the fact that implicit links, i.e. those not surrounded by [[...]], are not recognised as links on export. =C2=A0This applies to all citation links but not, for instance,<= br> http:. =C2=A0There has to be something in org that I need to set or that I<= br> have set that affects this behaviour but I just do not seem to find it.

I am now bisecting my initialisation code to see if it is me setting
something but I do wonder if there is something you have set to tell org to recognise implicitly defined links?

In any case, would it be possible to have org-ref insert proper links,
i.e. [[cite:joe-2014]], maybe as an option? =C2=A0I often use superscripts<= br> for citation references and a space before the superscript looks ugly!
And my problem would be solved... :)

thanks again,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559= -git

--f46d04428cae85745104f97017e7-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 14:30:28 +0100 Message-ID: <87bnuznp8r.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkvk9-0003uh-QF for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkvk1-0001t2-Mu for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:41 -0400 Received: from mail-db3lp0082.outbound.protection.outlook.com ([213.199.154.82]:19910 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkvk1-0001ru-EI for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:33 -0400 In-Reply-To: (John Kitchin's message of "Thu, 15 May 2014 09:05:18 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 15 May 2014 at 09:05, John Kitchin wrote: > Your error seems to be coming from reftex. Well, it seems that if you are going to use reftex in emacs 24.4.x, you need to define some variables. I put the following in your org-mode-reftex-setup function: (setq-local tex-start-of-header "%\\*\\*start of header") (setq-local tex-end-of-header "%\\*\\*end of header") immediately after loading reftex and things work better (I haven't checked whether everything works yet). The problem is that tex-mode assumes that it is active in a mode that has been derived from tex-mode (such as latex-mode or plain-tex-mode) and those modes define the variables above. Org-mode doesn't! This may be a change in tex-mode for the latest emacs versions? I cannot verify this. Am I correct in believing that you are using emacs 24.3? -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 15 May 2014 10:19:10 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> <87bnuznp8r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdcab7c0d276904f970fb7a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwV6-0001pd-Vj for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:19:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkwV5-0002Sd-Nz for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:19:12 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:60329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwV5-0002SL-Df for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:19:11 -0400 Received: by mail-wg0-f41.google.com with SMTP id z12so3591067wgg.24 for ; Thu, 15 May 2014 07:19:10 -0700 (PDT) In-Reply-To: <87bnuznp8r.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , "emacs-orgmode@gnu.org" --047d7bdcab7c0d276904f970fb7a Content-Type: text/plain; charset=UTF-8 yes, I am using emacs 24.3. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 15, 2014 at 9:30 AM, Eric S Fraga wrote: > On Thursday, 15 May 2014 at 09:05, John Kitchin wrote: > > Your error seems to be coming from reftex. > > Well, it seems that if you are going to use reftex in emacs 24.4.x, you > need to define some variables. I put the following in your > org-mode-reftex-setup function: > > (setq-local tex-start-of-header "%\\*\\*start of header") > (setq-local tex-end-of-header "%\\*\\*end of header") > > immediately after loading reftex and things work better (I haven't > checked whether everything works yet). > > The problem is that tex-mode assumes that it is active in a mode that > has been derived from tex-mode (such as latex-mode or plain-tex-mode) > and those modes define the variables above. Org-mode doesn't! > > This may be a change in tex-mode for the latest emacs versions? I > cannot verify this. > > Am I correct in believing that you are using emacs 24.3? > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --047d7bdcab7c0d276904f970fb7a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
yes, I am using emacs 24.3.

John

----------------------------------= -
John Kitchin
Associate Professor
Doherty Hall A207F
Departmen= t of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingr= oup.cheme.cmu.edu



On Thu, May 15, 2014 at 9:30 AM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
On Thursday, 15 May 2014 at 09:05, John Kitchin wrote:
> Your error seems to be coming from reftex.

Well, it seems that if you are going to use reftex in emacs 24.4.x, y= ou
need to define some variables. =C2=A0I put the following in your
org-mode-reftex-setup function:

=C2=A0 =C2=A0 (setq-local tex-start-of-header "%\\*\\*start of header&= quot;)
=C2=A0 =C2=A0 (setq-local tex-end-of-header "%\\*\\*end of header"= ;)

immediately after loading reftex and things work better (I haven't
checked whether everything works yet).

The problem is that tex-mode assumes that it is active in a mode that
has been derived from tex-mode (such as latex-mode or plain-tex-mode)
and those modes define the variables above. =C2=A0Org-mode doesn't!

This may be a change in tex-mode for the latest emacs versions? =C2=A0I
cannot verify this.

Am I correct in believing that you are using emacs 24.3?

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559= -git

--047d7bdcab7c0d276904f970fb7a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 15:31:26 +0100 Message-ID: <87tx8rm7up.fsf@ucl.ac.uk> References: <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> <87bnuznp8r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwhC-0004aI-H6 for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:31:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkwh5-0007rT-0M for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:31:42 -0400 Received: from mail-am1lp0017.outbound.protection.outlook.com ([213.199.154.17]:47537 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkwh4-0007rJ-OJ for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:31:34 -0400 In-Reply-To: (John Kitchin's message of "Thu, 15 May 2014 10:19:10 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 15 May 2014 at 10:19, John Kitchin wrote: > yes, I am using emacs 24.3. Can you have a look at tex-mode.el and see if the variables: >> (setq-local tex-start-of-header "%\\*\\*start of header") >> (setq-local tex-end-of-header "%\\*\\*end of header") are (a) used and (b) defined somewhere other than in the definitions of derived modes? By the way, I have no idea how these are being used but maybe they could be adapted to org syntax ("# start of header", say)? In any case, some good news! I have tracked down the problem with citations not being picked up by the exporter. If I load ox-latex *before* org-ref, cite: and other new links are not picked up. If I load org-ref before ox-latex, everything seems to work fine. It would seem that ox-latex is defining the links that are valid and this is not being updated subsequently? I've not tracked this down yet but maybe Nicolas should have a look? We're getting there! thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 16:03:22 +0100 Message-ID: <87ppjfm6dh.fsf@ucl.ac.uk> References: <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> <87bnuznp8r.fsf@ucl.ac.uk> <87tx8rm7up.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxC6-0000p2-1n for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkxBy-0004RN-Ig for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:03:38 -0400 Received: from mail-db3lp0078.outbound.protection.outlook.com ([213.199.154.78]:22599 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkxBy-0004R9-9Y for emacs-orgmode@gnu.org; Thu, 15 May 2014 11:03:30 -0400 In-Reply-To: <87tx8rm7up.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 15 May 2014 15:31:26 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" On Thursday, 15 May 2014 at 15:31, Eric S Fraga wrote: [...] > If I load ox-latex *before* org-ref, cite: and other new links are not > picked up. If I load org-ref before ox-latex, everything seems to work > fine. It would seem that ox-latex is defining the links that are valid > and this is not being updated subsequently? I've not tracked this down > yet but maybe Nicolas should have a look? Following up on myself: org-ref has to be loaded *before* ox.el which means also before any ox-*.el files. I thought the problem was that the link types regexps used by org were not being updated but invoking org-make-link-regexps after loading org-ref had no effect. Oh well. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: org-ref for biblatex Date: Sun, 18 May 2014 18:16:00 +0100 Message-ID: <874n0nknxr.fsf_-_@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm4j4-0005AW-TU for emacs-orgmode@gnu.org; Sun, 18 May 2014 13:18:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm4iy-0007H8-MT for emacs-orgmode@gnu.org; Sun, 18 May 2014 13:18:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:46929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm4iy-0007Gy-G8 for emacs-orgmode@gnu.org; Sun, 18 May 2014 13:18:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wm4ix-0003xo-I9 for emacs-orgmode@gnu.org; Sun, 18 May 2014 19:18:11 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 May 2014 19:18:11 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 May 2014 19:18:11 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John, to come back to org-ref, which basically runs fine for me now, thanks. I am running biblatex (as opposed to bibtex) though, with meanwhile biber as a backend. The biblatex manual is very comprehensible and explains the different citation commands from page 79 onwards. http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf I just ran into this: Having added a few citations to an existing one with C-u C-c d, I have something like cite:foo,bar,baz which gets exported to latex as \cite{foo,bar,baz} whereas biblatex expects \cites{foo}{bar}{baz} as I understand (note the plural s as well), and there are other config tweekings I am doing for biblatex (that I intend to explain some other time). Maybe a switch (an org-ref variable) would be a good idea, that lets one choose: use either biblatex or plain old bibtex? thanks in advance -Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref for biblatex Date: Sun, 18 May 2014 17:40:54 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <874n0nknxr.fsf_-_@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f50309e54ad4404f9b38091 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm8pF-0003R2-91 for emacs-orgmode@gnu.org; Sun, 18 May 2014 17:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm8pE-0004Z2-2V for emacs-orgmode@gnu.org; Sun, 18 May 2014 17:40:57 -0400 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:53238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm8pD-0004Yl-Ok for emacs-orgmode@gnu.org; Sun, 18 May 2014 17:40:56 -0400 Received: by mail-wg0-f49.google.com with SMTP id m15so7205642wgh.32 for ; Sun, 18 May 2014 14:40:54 -0700 (PDT) In-Reply-To: <874n0nknxr.fsf_-_@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --e89a8f50309e54ad4404f9b38091 Content-Type: text/plain; charset=UTF-8 I added the multicite commands. you have to use cites:foo,bar,baz, and it will export to the format you suggested. org-ref is not smart enough to automatically add the s to the link type if you add more than one reference, you have to be smart enough to do that. can you try it out and let me know if it does what you need? John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux wrote: > John, > > to come back to org-ref, which basically runs fine for me now, thanks. > > I am running biblatex (as opposed to bibtex) though, with meanwhile > biber as a backend. > > The biblatex manual is very comprehensible and explains the different > citation commands from page 79 onwards. > > > http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf > > I just ran into this: Having added a few citations to an existing > one with C-u C-c d, I have something like > > cite:foo,bar,baz > > which gets exported to latex as > > \cite{foo,bar,baz} > > whereas biblatex expects > > \cites{foo}{bar}{baz} > > as I understand (note the plural s as well), and there are other config > tweekings I am doing for biblatex (that I intend to explain some other > time). > > Maybe a switch (an org-ref variable) would be a good idea, that lets > one choose: use either biblatex or plain old bibtex? > > thanks in advance > > -Andreas > > > --e89a8f50309e54ad4404f9b38091 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I added the multicite commands. you have to use cites= :foo,bar,baz, and it will export to the format you suggested. org-ref is no= t smart enough to automatically add the s to the link type if you add more = than one reference, you have to be smart enough to do that.

can you try it out and let me know if it does what you need?
<= /div>

John

--------= ---------------------------
John Kitchin
Associate Professor
Doher= ty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsbu= rgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, May 18, 2014 at 1:16 PM, Andreas= Reuleaux <andreas@a-rx.info> wrote:
John,

to come back to org-ref, which basically runs fine for me now, thanks.

I am running biblatex (as opposed to bibtex) though, with meanwhile
biber as a backend.

The biblatex manual is very comprehensible and explains the different
citation commands from page 79 onwards.

=C2=A0 http://ctan.mirrorcatalogs.com/macr= os/latex/contrib/biblatex/doc/biblatex.pdf

I just ran into this: Having added a few citations to an existing
one with C-u C-c d, I have something like

=C2=A0 cite:foo,bar,baz

which gets exported to latex as

=C2=A0 \cite{foo,bar,baz}

whereas biblatex expects

=C2=A0 \cites{foo}{bar}{baz}

as I understand (note the plural s as well), and there are other config
tweekings I am doing for biblatex (that I intend to explain some other
time).

Maybe a switch (an org-ref variable) would be a good idea, that lets
one choose: use either biblatex or plain old bibtex?

thanks in advance

-Andreas



--e89a8f50309e54ad4404f9b38091-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref for biblatex Date: Sun, 18 May 2014 23:38:05 +0100 Message-ID: <87sio6k90y.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <874n0nknxr.fsf_-_@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm9kk-00046H-Fd for emacs-orgmode@gnu.org; Sun, 18 May 2014 18:40:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm9kf-0005gH-FN for emacs-orgmode@gnu.org; Sun, 18 May 2014 18:40:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:46134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm9kf-0005g7-8f for emacs-orgmode@gnu.org; Sun, 18 May 2014 18:40:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wm9kc-0002Yi-9U for emacs-orgmode@gnu.org; Mon, 19 May 2014 00:40:14 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 00:40:14 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 00:40:14 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John, thanks a lot, I will try them out, and let you know. Never mind about the comfort (or lack thereof) of how to add an s or the like in org. - I can easily do that by hand. Working back ends (exporters) for the various citiation commands seem much more important at this point. -Andreas John Kitchin writes: > I added the multicite commands. you have to use cites:foo,bar,baz, and it > will export to the format you suggested. org-ref is not smart enough to > automatically add the s to the link type if you add more than one > reference, you have to be smart enough to do that. > > can you try it out and let me know if it does what you need? > > John > > ----------------------------------- > John Kitchin > Associate Professor > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > http://kitchingroup.cheme.cmu.edu > > > > On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux wrote: > >> John, >> >> to come back to org-ref, which basically runs fine for me now, thanks. >> >> I am running biblatex (as opposed to bibtex) though, with meanwhile >> biber as a backend. >> >> The biblatex manual is very comprehensible and explains the different >> citation commands from page 79 onwards. >> >> >> http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf >> >> I just ran into this: Having added a few citations to an existing >> one with C-u C-c d, I have something like >> >> cite:foo,bar,baz >> >> which gets exported to latex as >> >> \cite{foo,bar,baz} >> >> whereas biblatex expects >> >> \cites{foo}{bar}{baz} >> >> as I understand (note the plural s as well), and there are other config >> tweekings I am doing for biblatex (that I intend to explain some other >> time). >> >> Maybe a switch (an org-ref variable) would be a good idea, that lets >> one choose: use either biblatex or plain old bibtex? >> >> thanks in advance >> >> -Andreas >> >> >> From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref for biblatex Date: Mon, 19 May 2014 07:38:53 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <874n0nknxr.fsf_-_@a-rx.info> <87sio6k90y.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428cae3a5f3804f9bf354c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmLuC-0007eP-Gq for emacs-orgmode@gnu.org; Mon, 19 May 2014 07:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmLuB-0001nX-8B for emacs-orgmode@gnu.org; Mon, 19 May 2014 07:38:56 -0400 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:62225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmLuA-0001nI-Tj for emacs-orgmode@gnu.org; Mon, 19 May 2014 07:38:55 -0400 Received: by mail-we0-f174.google.com with SMTP id k48so5330240wev.19 for ; Mon, 19 May 2014 04:38:54 -0700 (PDT) In-Reply-To: <87sio6k90y.fsf@a-rx.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --f46d04428cae3a5f3804f9bf354c Content-Type: text/plain; charset=UTF-8 good news, I think org-ref works with biblatex pretty well now, see http://kitchingroup.cheme.cmu.edu/blog/2014/05/19/Exporting-citations-with-biblatex/ org-ref also makes a reasonable html bibliography now too! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Sun, May 18, 2014 at 6:38 PM, Andreas Reuleaux wrote: > John, > > thanks a lot, I will try them out, and let you know. > > Never mind about the comfort (or lack thereof) of how to add an s or the > like in org. - I can easily do that by hand. > > Working back ends (exporters) for the various citiation commands seem > much more important at this point. > > > -Andreas > > > John Kitchin writes: > > > I added the multicite commands. you have to use cites:foo,bar,baz, and it > > will export to the format you suggested. org-ref is not smart enough to > > automatically add the s to the link type if you add more than one > > reference, you have to be smart enough to do that. > > > > can you try it out and let me know if it does what you need? > > > > John > > > > ----------------------------------- > > John Kitchin > > Associate Professor > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > http://kitchingroup.cheme.cmu.edu > > > > > > > > On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux > wrote: > > > >> John, > >> > >> to come back to org-ref, which basically runs fine for me now, thanks. > >> > >> I am running biblatex (as opposed to bibtex) though, with meanwhile > >> biber as a backend. > >> > >> The biblatex manual is very comprehensible and explains the different > >> citation commands from page 79 onwards. > >> > >> > >> > http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf > >> > >> I just ran into this: Having added a few citations to an existing > >> one with C-u C-c d, I have something like > >> > >> cite:foo,bar,baz > >> > >> which gets exported to latex as > >> > >> \cite{foo,bar,baz} > >> > >> whereas biblatex expects > >> > >> \cites{foo}{bar}{baz} > >> > >> as I understand (note the plural s as well), and there are other config > >> tweekings I am doing for biblatex (that I intend to explain some other > >> time). > >> > >> Maybe a switch (an org-ref variable) would be a good idea, that lets > >> one choose: use either biblatex or plain old bibtex? > >> > >> thanks in advance > >> > >> -Andreas > >> > >> > >> > > > --f46d04428cae3a5f3804f9bf354c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
good news, I think org-ref works with biblatex pretty= well now, see http://kitchingroup.cheme.cmu.edu/blog= /2014/05/19/Exporting-citations-with-biblatex/

org-ref also makes a reasonable html bibliography now too!

John

----------= -------------------------
John Kitchin
Associate Professor
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsbu= rgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, May 18, 2014 at 6:38 PM, Andreas= Reuleaux <andreas@a-rx.info> wrote:
John,

thanks a lot, I will try them out, and let you know.

Never mind about the comfort (or lack thereof) of how to add an s or the like in org. - I can easily do that by hand.

Working back ends (exporters) for the various citiation commands seem
much more important at this point.


-Andreas


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

> I added the multicite commands. you have to use cites:foo,bar,baz, and= it
> will export to the format you suggested. org-ref is not smart enough t= o
> automatically add the s to the link type if you add more than one
> reference, you have to be smart enough to do that.
>
> can you try it out and let me know if it does what you need?
>
> John
>
> -----------------------------------
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 > http:/= /kitchingroup.cheme.cmu.edu
>
>
>
> On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux <andreas@a-rx.info> wrote:
>
>> John,
>>
>> to come back to org-ref, which basically runs fine for me now, tha= nks.
>>
>> I am running biblatex (as opposed to bibtex) though, with meanwhil= e
>> biber as a backend.
>>
>> The biblatex manual is very comprehensible and explains the differ= ent
>> citation commands from page 79 onwards.
>>
>>
>> http://ctan.mirrorcatalogs.com/ma= cros/latex/contrib/biblatex/doc/biblatex.pdf
>>
>> I just ran into this: Having added a few citations to an existing<= br> >> one with C-u C-c d, I have something like
>>
>> =C2=A0 cite:foo,bar,baz
>>
>> which gets exported to latex as
>>
>> =C2=A0 \cite{foo,bar,baz}
>>
>> whereas biblatex expects
>>
>> =C2=A0 \cites{foo}{bar}{baz}
>>
>> as I understand (note the plural s as well), and there are other c= onfig
>> tweekings I am doing for biblatex (that I intend to explain some o= ther
>> time).
>>
>> Maybe a switch (an org-ref variable) would be a good idea, that le= ts
>> one choose: use either biblatex or plain old bibtex?
>>
>> thanks in advance
>>
>> -Andreas
>>
>>
>>



--f46d04428cae3a5f3804f9bf354c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref for biblatex Date: Mon, 19 May 2014 13:15:26 +0100 Message-ID: <877g5im0bl.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <874n0nknxr.fsf_-_@a-rx.info> <87sio6k90y.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmMVk-0004D4-ET for emacs-orgmode@gnu.org; Mon, 19 May 2014 08:17:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmMVf-0007CX-57 for emacs-orgmode@gnu.org; Mon, 19 May 2014 08:17:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:45063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmMVe-0007CS-Ug for emacs-orgmode@gnu.org; Mon, 19 May 2014 08:17:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WmMVe-0006Bn-29 for emacs-orgmode@gnu.org; Mon, 19 May 2014 14:17:38 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 14:17:38 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 14:17:38 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Thanks a lot, looks good! (but I haven't had a chance yet to try it out myself, will do so of course) -Andreas John Kitchin writes: > good news, I think org-ref works with biblatex pretty well now, see > http://kitchingroup.cheme.cmu.edu/blog/2014/05/19/Exporting-citations-with-biblatex/ > > org-ref also makes a reasonable html bibliography now too! > > John > > ----------------------------------- > John Kitchin > Associate Professor > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > http://kitchingroup.cheme.cmu.edu > > > > On Sun, May 18, 2014 at 6:38 PM, Andreas Reuleaux wrote: > >> John, >> >> thanks a lot, I will try them out, and let you know. >> >> Never mind about the comfort (or lack thereof) of how to add an s or the >> like in org. - I can easily do that by hand. >> >> Working back ends (exporters) for the various citiation commands seem >> much more important at this point. >> >> >> -Andreas >> >> >> John Kitchin writes: >> >> > I added the multicite commands. you have to use cites:foo,bar,baz, and it >> > will export to the format you suggested. org-ref is not smart enough to >> > automatically add the s to the link type if you add more than one >> > reference, you have to be smart enough to do that. >> > >> > can you try it out and let me know if it does what you need? >> > >> > John >> > >> > ----------------------------------- >> > John Kitchin >> > Associate Professor >> > Doherty Hall A207F >> > Department of Chemical Engineering >> > Carnegie Mellon University >> > Pittsburgh, PA 15213 >> > 412-268-7803 >> > http://kitchingroup.cheme.cmu.edu >> > >> > >> > >> > On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux >> wrote: >> > >> >> John, >> >> >> >> to come back to org-ref, which basically runs fine for me now, thanks. >> >> >> >> I am running biblatex (as opposed to bibtex) though, with meanwhile >> >> biber as a backend. >> >> >> >> The biblatex manual is very comprehensible and explains the different >> >> citation commands from page 79 onwards. >> >> >> >> >> >> >> http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf >> >> >> >> I just ran into this: Having added a few citations to an existing >> >> one with C-u C-c d, I have something like >> >> >> >> cite:foo,bar,baz >> >> >> >> which gets exported to latex as >> >> >> >> \cite{foo,bar,baz} >> >> >> >> whereas biblatex expects >> >> >> >> \cites{foo}{bar}{baz} >> >> >> >> as I understand (note the plural s as well), and there are other config >> >> tweekings I am doing for biblatex (that I intend to explain some other >> >> time). >> >> >> >> Maybe a switch (an org-ref variable) would be a good idea, that lets >> >> one choose: use either biblatex or plain old bibtex? >> >> >> >> thanks in advance >> >> >> >> -Andreas >> >> >> >> >> >> >> >> >> From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Reuleaux Subject: Re: org-ref for biblatex Date: Mon, 19 May 2014 18:34:39 +0100 Message-ID: <87sio5lljk.fsf@a-rx.info> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <874n0nknxr.fsf_-_@a-rx.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmRUq-0005cM-V5 for emacs-orgmode@gnu.org; Mon, 19 May 2014 13:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmRUk-00006g-Bf for emacs-orgmode@gnu.org; Mon, 19 May 2014 13:37:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:38148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmRUk-00006M-4y for emacs-orgmode@gnu.org; Mon, 19 May 2014 13:37:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WmRUZ-00033K-Hq for emacs-orgmode@gnu.org; Mon, 19 May 2014 19:36:51 +0200 Received: from stu826b.kent.ac.uk ([129.12.130.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 19:36:51 +0200 Received: from andreas by stu826b.kent.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 May 2014 19:36:51 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John, yes they work fine for me, I have tested: cites and parencites. Thanks a lot. -Andreas John Kitchin writes: > I added the multicite commands. you have to use cites:foo,bar,baz, and it > will export to the format you suggested. org-ref is not smart enough to > automatically add the s to the link type if you add more than one > reference, you have to be smart enough to do that. > > can you try it out and let me know if it does what you need? > > John > > ----------------------------------- > John Kitchin > Associate Professor > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > http://kitchingroup.cheme.cmu.edu > > > > On Sun, May 18, 2014 at 1:16 PM, Andreas Reuleaux wrote: > >> John, >> >> to come back to org-ref, which basically runs fine for me now, thanks. >> >> I am running biblatex (as opposed to bibtex) though, with meanwhile >> biber as a backend. >> >> The biblatex manual is very comprehensible and explains the different >> citation commands from page 79 onwards. >> >> >> http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf >> >> I just ran into this: Having added a few citations to an existing >> one with C-u C-c d, I have something like >> >> cite:foo,bar,baz >> >> which gets exported to latex as >> >> \cite{foo,bar,baz} >> >> whereas biblatex expects >> >> \cites{foo}{bar}{baz} >> >> as I understand (note the plural s as well), and there are other config >> tweekings I am doing for biblatex (that I intend to explain some other >> time). >> >> Maybe a switch (an org-ref variable) would be a good idea, that lets >> one choose: use either biblatex or plain old bibtex? >> >> thanks in advance >> >> -Andreas >> >> >>