From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Bibliography woes! Date: Tue, 06 May 2014 13:40:10 +0200 Message-ID: References: <8761lkfn2j.fsf@skimble.plus.com> <53678512.50602@gmail.com> <877g605lo4.fsf@skimble.plus.com> <87r448xie3.fsf@skimble.plus.com> <878uqg5bg8.fsf@ucl.ac.uk> <87a9avuapc.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whdjp-000421-5t for emacs-orgmode@gnu.org; Tue, 06 May 2014 07:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Whdjk-0000iC-0f for emacs-orgmode@gnu.org; Tue, 06 May 2014 07:40:45 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:36594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whdjj-0000fo-NQ for emacs-orgmode@gnu.org; Tue, 06 May 2014 07:40:39 -0400 Received: by mail-we0-f169.google.com with SMTP id u56so8985583wes.0 for ; Tue, 06 May 2014 04:40:38 -0700 (PDT) In-Reply-To: (Ken Mankoff's message of "Tue, 06 May 2014 07:25:00 -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: Ken Mankoff Cc: org-mode mailing list , Vikas Rawal , Sharon Kimble --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ken Mankoff writes: > On 2014-05-06 at 03:33, Rainer M Krug wrote: >> Ken Mankoff writes: >>> I've found "latexmk" to be the best tool for compiling LaTeX >>> documents. >> >> This sounds very interesting. Could you please provide some details on >> how you use latexmk? Do you use any special options? > > My ~/.latexmkrc file is below. It appears I have extra functions for > making glossaries and working with PythonTeX. There is plenty of support > for latexmk on TeX.SE > https://tex.stackexchange.com/questions/tagged/latexmk > > Since I turn on preview_continuous_mode in my ~/.latexmkrc, I need to > explicitly turn it off if I am calling latexmk from Org, hence the > "-pvc-" option here: > > (setq org-latex-pdf-process (list "/usr/texbin/latexmk -f -gg -pvc- %f")) > > But as I said, I find I prefer to bring up a terminal in the directory > where I am working, and dedicate it to running 'latexmk' in continuous > monitoring mode. When I want to clean up a project I'll run "latexmk -c > file.tex" to discard all of the temporary files. I have Skim.app or > Preview.app (OS X PDF viewers) open the PDF file. I edit Org files, > export to LaTeX (C-c C-e l l), and then keep working while the PDF > regenerates.=20 Thanks a lot - this gives me some ideas on how to use it. I also prefer the terminal approach, and I am using it at the moment, but with no additional parameters. Cheers, Rainer > > -k. > > > > # BEGIN ~/.latexmkrc > > $pdf_mode =3D 1; > $preview_continuous_mode =3D 1; > $new_viewer_always =3D 1; > $silent =3D 1; # don't stop on errors > $verbose =3D 0; > #$halt_on_error =3D 1; > > $clean_ext =3D 'bbl run.xml %R-blx.bib acn glo xdy synctex.gz'; > > # continue past errors > $force_mode =3D 1;=20 > $shell_escape =3D 1; > > # shell escape > $pdflatex =3D 'pdflatex --shell-escape -file-line-error -synctex=3D1 %O %= S'; > > # $pdf_previewer =3D 'open -a /Applications/Preview.app'; > $pdf_previewer =3D 'open -a /Users/mankoff/local/Applications/Skim.app'; > > # Sage: > # http://permalink.gmane.org/gmane.comp.mathematics.sage.support/17166 > > # glossaries http://tex.stackexchange.com/questions/1226/how-to-make-late= xmk-use-makeglossaries > add_cus_dep('glo', 'gls', 0, 'makeglo2gls'); > sub makeglo2gls { > system("makeindex -s '$_[0]'.ist -t '$_[0]'.glg -o '$_[0]'.gls '$_[0]= '.glo"); > } > > # PythonTeX > add_cus_dep('pytxcode', 'pyg', 0, 'pythontexcompile'); > sub pythontexcompile { > system("pythontex.py $_[0]"); > } > > =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTaMopAAoJENvXNx4PUvmCkuEH/3fqGQnEBEU6t5AEOxGGBriY 0yg0w8nZgXsL/B+WiOq9viqmYOXB6v9MrZcbxA0x6XgCW4PST1MpRp+pQ6FPuP+/ CvKVp0DdeiRSVf8Z/DP/h/ifYXlAd0l5gw+aZmOLuRRiXn7MzuqP086I82Um5fzO 66tl/hcrz09D0uhF9s8FNOjQEG1bqlxEEwovqnx18Wez8d7zQZNkVYvOl5Z2WCZn zjc62Ac6JpQ8y9NpNKPArZpNe77by8cEFcJ7tdEwr92URlbv1xximVvqnYkT0n29 CCq+PVrniC9E/X8LZ+nLbBI8REqFKi2i7ZH4oilZJVMqBS1H9An07Zu+S6IxOMQ= =5H01 -----END PGP SIGNATURE----- --=-=-=--