emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>,
	Vikas Rawal <vikaslists@agrarianresearch.org>
Subject: Re: Bibliography woes!
Date: Mon, 5 May 2014 18:39:40 -0500	[thread overview]
Message-ID: <CA+M2ft-ebh8eBncPPxMeHU=4HdbDMhBSR0t=550UYDzSRfwVzg@mail.gmail.com> (raw)
In-Reply-To: <87a9avuapc.fsf@skimble.plus.com>

[-- Attachment #1: Type: text/plain, Size: 4140 bytes --]

On Mon, May 5, 2014 at 5:23 PM, Sharon Kimble
<boudiccas@skimble.plus.com> wrote:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>

[...]

>>
>>> and this is the bibliography file
>>> @Article{,
>>
>> change this line to
>>
>>   @Article{1,
>>
>> although I would recommend a more description label personally...
>
> I've set it up with the articles author and year, but it is still
> failing. I'm attaching the original org file, the generated tex and
> pdf, and the bib file. Hopefully this will help find a solution?

I've been following this from a distance, as I'm interested in
eventually getting into this. I would kindly ask that you slow down
your pace, check things over, and proceed *simply* to solve your
problem. Eric advocated using @Article{1, ...

Without ever having used biblatex, I immediately wondered whether a
comma delimited bibliography would tolerate:

@Article{MacRae K, et al;2002, ...

The answer is that it will not. You also have multiple lines loading
the same package:

#+LaTeX_HEADER: \usepackage{biblatex}
#+LATEX_HEADER:
\usepackage[citestyle=authoryear-icomp,bibstyle=authoryear,hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true]{biblatex}
# #+LaTeX_HEADER: \usepackage[backend=bibtex,style=verbose]{biblatex}

Lastly, I would highly suggest limiting your requests for help to
extremely simple examples. For example, remove packages that do not
affect the behavior of the problem, such as bussproofs, babel,
fancyhdr, etc.

I was able to get your file working via the following method:

- Modified cat.bib:

@Article{1,
  author = {MacRae K. Pattison J.},
  title = {Home chemotherapy.},
  journaltitle = {Nursing Times},
  year = {2002},
  key = {1},
  volume = {98},
  number = {35},
  pages = {34-35},
}

- Modified/shortened/simplified cat.org:

# -*- mode:org; mode:reftex; indent-tabs-mode:nil; tab-width:2 -*-
#+OPTIONS: toc:nil num:nil ^:{}
#+TITLE: Cat on the mat - 2014
#+AUTHOR: Sharon Kimble & Sarah ?
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LaTeX_HEADER: \usepackage[backend=biber,style=verbose,style=numeric]{biblatex}
#+LaTeX_HEADER: \bibliography{/home/jwhendy/Downloads/cat.bib} %%% <-
change this path
#+LaTeX_HEADER: \bibliography{cat


* Chapter 1
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.\cite{1}

* Bibliography
\printbibliography

Note that you needed to load biblatex before your bibliography (which
you sort of did, but then re-loaded it with a bunch of options and
then perhaps again at the end depending on how Org deals with the #
symbol before #+ lines. You can tweak the options to biblatex however
you'd like; I just simplified a bit to single down to one line loading
it.

\bibliography needed to call the file cat, not bibliography.

In addition, I had to run C-c C-e l p to export to latex, then check
the buffer *Org PDF LaTeX Output* for messages regarding the failed
citation. It suggested to run biber on the file cat, which I did from
the command line.

# note that I saved all your stuff in my download folder
$ cd ~/Downloads
$ biber cat

Make sure you have the biber executable installed. I didn't know
anything about it and thought biblatex might provide it. I had to
explicitly install biber. You should be a path as the response to the
following if you have it:

$ which biber

Running biber generated .bbl.

Then, re-running C-c C-e l p from Org works for me (at least I think;
see attached to verify).

Lastly, when I encountered an error, I googled to find out what to do:
- Using biber: http://tex.stackexchange.com/questions/26516/how-to-use-biber
- Why \bibliography was giving me an error:
http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907111

If this works, someone can chime in regarding how to modify Org so
that it will run the necessary biber/biblatex commands so you don't
have to jump to a command line every time. Or perhaps that's a one
time thing -- maybe as long as biber generates the .bbl file, you can
refer to anything you want in that file from then on?



Hope that helps,
John

[-- Attachment #2: cat-jwhendy.pdf --]
[-- Type: application/pdf, Size: 74325 bytes --]

  reply	other threads:[~2014-05-05 23:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05 12:05 Bibliography woes! Sharon Kimble
2014-05-05 12:26 ` Vikas Rawal
2014-05-05 12:33 ` Leonard Avery Randall
2014-05-05 14:45   ` Sharon Kimble
2014-05-05 15:07     ` Vikas Rawal
2014-05-05 15:48       ` Leonard Avery Randall
2014-05-05 17:08       ` Sharon Kimble
2014-05-05 18:26         ` Eric S Fraga
2014-05-05 22:23           ` Sharon Kimble
2014-05-05 23:39             ` John Hendy [this message]
2014-05-05 23:51               ` Ken Mankoff
2014-05-06  7:33                 ` Rainer M Krug
2014-05-06 11:25                   ` Ken Mankoff
2014-05-06 11:40                     ` Rainer M Krug
2014-05-06 14:13               ` Bibliography woes! SOLVED Sharon Kimble
2014-05-05 23:47             ` Bibliography woes! Leonard Avery Randall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+M2ft-ebh8eBncPPxMeHU=4HdbDMhBSR0t=550UYDzSRfwVzg@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=vikaslists@agrarianresearch.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).