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 <e.fr...@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 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
>

Reply via email to