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