From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: First attempt at exporting to PDF. Date: Sun, 04 May 2014 09:05:07 +0100 Message-ID: <87bnve0y18.fsf@skimble.plus.com> References: <87wqe2eu16.fsf@skimble.plus.com> <877g621y4e.fsf@skimble.plus.com> 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]:55096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgrQL-0004sh-Ti for emacs-orgmode@gnu.org; Sun, 04 May 2014 04:05:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgrQG-0005t1-NW for emacs-orgmode@gnu.org; Sun, 04 May 2014 04:05:25 -0400 Received: from avasout08.plus.net ([212.159.14.20]:56731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgrQG-0005ss-Eq for emacs-orgmode@gnu.org; Sun, 04 May 2014 04:05:20 -0400 In-Reply-To: (John Kitchin's message of "Sat, 3 May 2014 16:11:33 -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: Martin =?utf-8?B?U2Now7bDtm4=?= , org-mode , "Thomas S. Dye" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks for this John, replies in line - John Kitchin writes: > you should be able to get references with \cite{key1} and \cite{key2}. > where key1 and key2 are bibtex keys in a bibtex file called > references.bib. I now have references showing in the document as "[\cite{10}]" where 10 is a specified entry in the "references.bib" database. I've put it in square brackets so that when it appears in the document then it appears as [10]. Having these as headers helps too =2D-8<---------------cut here---------------start------------->8--- # -*- mode:org; mode:reftex; indent-tabs-mode:nil; tab-width:2 -*- #+STARTUP: content #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [a4paper] #+OPTIONS: toc:t #+OPTIONS: ^:{} #+TITLE: The custard pie mystery. #+AUTHOR: Sharon Kimble & Sarah ? #+LINK: notes #%s #+LATEX_HEADER: \usepackage[hyperref,x11names]{xcolor} #+LATEX_HEADER: \usepackage[colorlinks=3Dtrue,urlcolor=3DSteelBlue4,linkcol= or=3DFirebrick4]{hyperref} #+LaTeX_HEADER: \usepackage[backend=3Dbiber,style=3Dverbose]{biblatex} #+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/references.= bib} #+LaTeX_HEADER: \usepackage{bussproofs} #+LaTeX_HEADER: \usepackage{amsmath,amssymb,amsopn} #+LaTeX_HEADER: \usepackage{graphicx} #+LaTeX_HEADER: \usepackage{makeidx} %robustindex % Indexing #+LaTeX_HEADER: \usepackage[british]{babel} % For british english hyphenati= on patterns #+LaTeX_HEADER: \usepackage{fancyhdr} % Change caption style; changes heade= rs and page styles =2D-8<---------------cut here---------------end--------------->8--- > you need at the end of your org-file where you want the bibliography > to appear: > > \bibliographystyle{unsrt} > \bibliography{references} I have =2D-8<---------------cut here---------------start------------->8--- * Bibliography \bibliographystyle{plain} \bibliography{references} =2D-8<---------------cut here---------------end--------------->8--- But all it shows in the pdf is =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82* Bibliography =E2=94=82 =E2=94=82references =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > In your init file, you may need to do this: > ;; for minted you must run latex with -shell-escape because it calls > pygmentize as an external program > (setq org-latex-pdf-process > '("pdflatex -shell-escape -interaction nonstopmode -output-directory > %o %b" > "bibtex %b" > "pdflatex -shell-escape -interaction nonstopmode -output-directory %o > %b" > "pdflatex -shell-escape -interaction nonstopmode -output-directory %o > %b")) > > I do not think org-mode runs bibtex by default. After that you should > see the references. I'm not sure what you mean by "minted" but I've included it in my "setup-testbed.el" at the end, where all new testing code goes, but I don't see what difference its made. This is one of the bibliographic references from its database =2D-8<---------------cut here---------------start------------->8--- @Article{, author =3D {MacRae K. Pattison J.}, title =3D {Home chemotherapy.}, journaltitle =3D {Nursing Times}, ALTyear =3D {2002}, OPTkey =3D {8}, OPTvolume =3D {98}, OPTnumber =3D {35}, OPTpages =3D {34-35}, } =2D-8<---------------cut here---------------end--------------->8--- Where 'key' is actually displayed as "OPTkey", does that make a difference please? Thanks Sharon. > > 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 Sat, May 3, 2014 at 4:00 PM, Thomas S. Dye wrote: > > Aloha Sharon, >=20=20=20=20=20 >=20=20=20=20=20 > Sharon Kimble writes: >=20=20=20=20=20 > >> I have never tried what you are trying to do with references so > >> someone > >> else must step in and help you there. > > > > Just hope someone steps up to the plate? >=20=20=20=20=20 >=20=20=20=20=20 > This was written for the old exporter, but it might be useful to > you: >=20=20=20=20=20 > http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17 >=20=20=20=20=20 > Also, the BibTeX entry in your original post was mal-formed. It > lacked > a key and the author field looked wrong, IIRC. You might want to > check out > the BibTeX file format: >=20=20=20=20=20 > http://www.bibtex.org/Format/ >=20=20=20=20=20 > hth, > Tom >=20=20=20=20=20 > -- > Thomas S. Dye > http://www.tsdye.com >=20=20=20=20=20 >=20=20=20=20=20 > > =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.4.50.19 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTZfS0AAoJEDaBgBkK+INbePIP/RlizhIG5PvoITWziNMbSydN 7AFG0nWz/d5Ng0Rb8CdKcxoEUrL9NmLJLjXxYzjcBjw2PZiJ17LG/dnhF6MiyETN Eq/rsgVaXCripq7Rl2vve27HZy/9CIOv79SGtsi8i9+NswbSOZpr25u40vtaJFEi wf7ZM0/4X7/RjSJx0cTn9pX+AaLW4MX2cJVJeGZ01MGTWw1sus67IPRrGjA4S0L3 30/89rYmy0YczDF7m12NSl++VLR3SVG9JaxdRcMVsm5+uekXv5CEyCObYjClzT92 sAIw+hYfDo0DjiEceYUdHmhNrwVmvT5iL15HoqdrMbZF4+/LHupIbUsM6aSGm9Rs Ja8ho3r1zWBKza18S//qWeANdVsBy9jOVLP+wXvw/TTi1fShf0gvg5OVCylNVCUr 3hz+WSSOs+EJsxVwVacopegZp7sOkn+lvdC0EUYmBrTAQD1H3AZl+bkUS/u95rhT /LbpCSK1NC9koIvgOAgz5qq1h3j3ROjw+pIxT+tWzCSZE2Ve0qjqSDMHdHHF382F eGcL1T7nEgpLoie+nOBbcgwf7apE23uTNF+RY5YRDI390e0vqaVmoVQocmAg6pU4 ZLo953LvIdTyolHS6BFvBIJYuGSJcKYE9b7AN/y62MV0I9Vss2j+SBtxFqpDsfZA d7k2x/He5VRhx7GiJ5rm =VyDT -----END PGP SIGNATURE----- --=-=-=--