From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Abernethy Subject: Re: citations not incoprporated from bib file when exporting from .org to pdflatex Date: Sat, 02 Jul 2016 00:21:07 +1200 Message-ID: <727FCD29-FA12-4FE9-9F23-8DEDBBAC24D4@icloud.com> References: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_2A3C8AC5-81CF-4B58-BA08-254DF9A311DB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIxRi-0005VV-D6 for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:21:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIxRd-0003QD-Cf for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:21:22 -0400 Received: from pv33p00im-asmtp002.me.com ([17.142.194.251]:35263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIxRd-0003Px-1A for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 08:21:17 -0400 Received: from process-dkim-sign-daemon.pv33p00im-asmtp002.me.com by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0O9M00L00Y4N7800@pv33p00im-asmtp002.me.com> for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 12:21:15 +0000 (GMT) Received: from [192.168.1.42] ([202.78.145.155]) by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0O9M00OX0YBBMK10@pv33p00im-asmtp002.me.com> for emacs-orgmode@gnu.org; Fri, 01 Jul 2016 12:21:15 +0000 (GMT) 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" To: emacs-orgmode@gnu.org --Apple-Mail=_2A3C8AC5-81CF-4B58-BA08-254DF9A311DB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I eventually stumbled on the solution to my problem: I restructured my document removing the #+BIBLIOGRAPHY: bib-file style = statement which no longer seems to work, placing the LateX commands to = specify the bibliography at the end of the file: #+LATEX_CLASS: article #+LATEX_HEADER: \usepackage[margin=3D0.5in]{geometry} #+LaTeX_CLASS_OPTIONS: [12pt] * Objectives * Stroke care guidelines #+LATEX: \bibliographystyle{vancouver} #+LATEX: \bibliography{stroke} I have this in .emacs to ensure the triple compilation required: (setq org-latex-pdf-process '("latexmk -pdflatex=3D'pdflatex = -interaction nonstopmode' -pdf -bibtex -f %f=E2=80=9D)) I have not been able to find any guidance on how to deal with this = change in behaviour by org-mode so post this for others to save them the = many hours I wasted when I have a deadline to meet > On 27/06/2016, at 23:20, David Abernethy = wrote: >=20 >=20 > I am exporting a file stroke.org using the = bibliography file stroke.bib in the same directory > The citations are not being incorporated into the pdf file >=20 > An example from stroke.log: LaTeX Warning: Citation `Drummond:2014aa' = on page 2 undefined on input line 71. >=20 > The header for stroke.org is: > #+LATEX_CLASS: article > #+BIBLIOGRAPHY: stroke vancouver option:-d >=20 --Apple-Mail=_2A3C8AC5-81CF-4B58-BA08-254DF9A311DB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I eventually stumbled on the solution to my = problem:

I = restructured my document removing the #+BIBLIOGRAPHY: bib-file style statement which no = longer seems to work, placing the LateX commands = to specify the bibliography at the end of the = file:

#+LATEX_CLASS: = article
#+LATEX_HEADER: = \usepackage[margin=3D0.5in]{geometry}
#+LaTeX_CLASS_OPTIONS: [12pt]

* Objectives
* Stroke care guidelines

#+LATEX: = \bibliographystyle{vancouver}
#+LATEX: = \bibliography{stroke}

I have this in .emacs to = ensure the triple compilation required:
(setq = org-latex-pdf-process '("latexmk -pdflatex=3D'pdflatex -interaction = nonstopmode' -pdf -bibtex -f %f=E2=80=9D))

I have not been able to find = any guidance on how to deal with this change in behaviour by org-mode so = post this for others to save them the many hours I wasted when I = have a deadline to meet


On = 27/06/2016, at 23:20, David Abernethy <david.abernethy@icloud.com> wrote:


I am exporting a file stroke.org using the = bibliography file stroke.bib in the same directory
The citations are not being incorporated into = the pdf file

An example from = stroke.log: LaTeX Warning: Citation `Drummond:2014aa' on page 2 = undefined on input line 71.

The header for stroke.org is:
#+LATEX_CLASS: article
#+BIBLIOGRAPHY: = stroke vancouver option:-d


= --Apple-Mail=_2A3C8AC5-81CF-4B58-BA08-254DF9A311DB--