From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: org-ref code Date: Wed, 14 May 2014 20:48:28 +0100 Message-ID: <87oaz09m5v.fsf@skimble.plus.com> 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> <87a9akkwsj.fsf@a-rx.info> 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]:39236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAc-0008Hf-NH for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkfAU-0006lu-FM for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:54 -0400 Received: from avasout07.plus.net ([84.93.230.235]:49198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkfAU-0006lT-7D for emacs-orgmode@gnu.org; Wed, 14 May 2014 15:48:46 -0400 In-Reply-To: <87a9akkwsj.fsf@a-rx.info> (Andreas Reuleaux's message of "Wed, 14 May 2014 20:03:24 +0100") 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: Andreas Reuleaux Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Reuleaux writes: > Eric S Fraga writes: > > >> How do I specify the bibstyle for org-ref? > > > I am not sure if I understand your question correctly > and John certainly has more insight here, but I have in > my org document > > #+LaTeX_HEADER: \include{ltxhdr} > > and within that ltxhdr.tex I have among other config settings > > \usepackage[backend=3Dbibtex,style=3Dauthoryear]{biblatex} > \addbibresource{refs.bib} > > I could have written several lines of=20 > > #+LaTeX_HEADER: \usepackage[backend=3Dbibtex,style=3Dauthoryear]{biblatex} > #+LaTeX_HEADER: \addbibresource{refs.bib} > > instead. > > There is no specific bibstyle of org-ref (correct, John?), that's the > job of latex, you will be happy if: > > * your org mode has clickable citations links, > > * let's you insert citations in a comfortably manner > > * you can jump between refs and labels etc. > > * all of those citations get exported to their latex > equivalents > > If for some reason your citations get exported to latex, say > cite:foo to \cite{foo}, but still don't appear in your > final pdf, than you have to tweek your latex settings, > obviously. - Maybe forgot to call bibtex(8) on your document? > > I run these: > * an emacs batch script, tex.el to get the document.tex > from document.org > * xelatex -8bit -shell-escape document.tex > * bibtex8 document > * xelatex document > again, etc. > > You can check your latex toolchain independently from > your org-ref config. > > HTH, > -Andreas That seems a very long winded way round things! For your information this is a batch script that I'm using for generating a PDF in pure latex, and all I have to do is to cd to the directory where the files are, and then just enter "pdfbuild" in the command-line. It does all the rest itself, and you could easily adapt it for your circumstances =2D-8<---------------cut here---------------start------------->8--- #!/bin/bash set -e #set -x #variables filename=3D"uh2014" ############# xelatex $filename biber $filename biber $filename xelatex $filename=20 biber $filename xelatex $filename=20 makeindex $filename makeindex $filename xelatex $filename makeglossaries $filename xelatex $filename xelatex $filename =2D-8<---------------cut here---------------end--------------->8--- It handles and generates the references, the glossary, and the index as well as the body of the document.=20 All you have to do is enter your "foo.tex" where foo is the name of your generated tex file, and then let the script take over. Sharon. =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.3.91.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTc8iNAAoJEDaBgBkK+INbdigP/RiSZREIERxMUD7Na+cZHzro FRnq9Pj6JTuZTGSDidzDbHLeW/TBCj7BEn7Ta8A1ZJM4uSb6DD9MH1BilTAkZgQJ Lrb7fqRrv+pfwtj0Twi1PNyoWHq6bFWzbp1efmnbNsQ2iOd2rfUTNv6aGRhpVMUD KHHZqt916BoTMokL6MN2wno/zhH4gzGg5nOKdvFm+EBAEW7x7nO61KbOspLvGMPp Ga6hxYbF7iGDgpAahxN4ZmOnGErqLR9p1AZsa290F/t0fJQ8Y77/brGyAnYFZogy f/jARIahDCYb5WunpMIfMKG0jnlvFhF/mLkdvHPyIN/visdWJOqw0V2Yg6ab40AC 5mOm10v5MVkK3i5WnNeG2bT+/qAAwru1UfUE2K9F1DPE8PXN65Knb7JKhjP3avZn QMK4tEWBlRU/uCzsqkOCPwnEy6hSp3tZSud9zBsjA/FZxpH4O+KvZYK6bY3dcok8 v/PwLRogUtfwAMZ/Va8uko5xlaiKcjsM1sBGwsv2RI9c5iw6DiuioNQ6vhZwvcFv 2iPx+PLJCjhoNkgkR15F4tOXyi42nz3pSu6XDTwqd98EUitiYysksP7rR4Qb5ZsE QTpXTgSrkp16VbqJDPtOqcIuIFrmLkpmV4nGJF4DxZozILoiVSXek/9BJAOF/fPi hxjY3KQ2vx0ToUGxTPDj =z07v -----END PGP SIGNATURE----- --=-=-=--