From: Rainer M Krug <Rainer@krugs.de>
To: Ken Mankoff <mankoff@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>,
Vikas Rawal <vikaslists@agrarianresearch.org>,
Sharon Kimble <boudiccas@skimble.plus.com>
Subject: Re: Bibliography woes!
Date: Tue, 06 May 2014 13:40:10 +0200 [thread overview]
Message-ID: <m2k39z5e5h.fsf@krugs.de> (raw)
In-Reply-To: <m2lhufcfoz.fsf@gorgonzola.whoi.edu> (Ken Mankoff's message of "Tue, 06 May 2014 07:25:00 -0400")
[-- Attachment #1: Type: text/plain, Size: 2989 bytes --]
Ken Mankoff <mankoff@gmail.com> writes:
> On 2014-05-06 at 03:33, Rainer M Krug wrote:
>> Ken Mankoff <mankoff@gmail.com> 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.
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 = 1;
> $preview_continuous_mode = 1;
> $new_viewer_always = 1;
> $silent = 1; # don't stop on errors
> $verbose = 0;
> #$halt_on_error = 1;
>
> $clean_ext = 'bbl run.xml %R-blx.bib acn glo xdy synctex.gz';
>
> # continue past errors
> $force_mode = 1;
> $shell_escape = 1;
>
> # shell escape
> $pdflatex = 'pdflatex --shell-escape -file-line-error -synctex=1 %O %S';
>
> # $pdf_previewer = 'open -a /Applications/Preview.app';
> $pdf_previewer = '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-latexmk-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]");
> }
>
>
--
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
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2014-05-06 11:40 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
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 [this message]
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=m2k39z5e5h.fsf@krugs.de \
--to=rainer@krugs.de \
--cc=boudiccas@skimble.plus.com \
--cc=emacs-orgmode@gnu.org \
--cc=mankoff@gmail.com \
--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).