[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bibliography woes!
From: |
Ken Mankoff |
Subject: |
Re: [O] Bibliography woes! |
Date: |
Tue, 06 May 2014 07:25:00 -0400 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
On 2014-05-06 at 03:33, Rainer M Krug wrote:
> Ken Mankoff <address@hidden> 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.
-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]");
}
- Re: [O] Bibliography woes!, (continued)
- Re: [O] Bibliography woes!, Leonard Avery Randall, 2014/05/05
- Re: [O] Bibliography woes!, Sharon Kimble, 2014/05/05
- Re: [O] Bibliography woes!, Vikas Rawal, 2014/05/05
- Re: [O] Bibliography woes!, Leonard Avery Randall, 2014/05/05
- Re: [O] Bibliography woes!, Sharon Kimble, 2014/05/05
- Re: [O] Bibliography woes!, Eric S Fraga, 2014/05/05
- Re: [O] Bibliography woes!, Sharon Kimble, 2014/05/05
- Re: [O] Bibliography woes!, John Hendy, 2014/05/05
- Re: [O] Bibliography woes!, Ken Mankoff, 2014/05/05
- Re: [O] Bibliography woes!, Rainer M Krug, 2014/05/06
- Re: [O] Bibliography woes!,
Ken Mankoff <=
- Re: [O] Bibliography woes!, Rainer M Krug, 2014/05/06
- Re: [O] Bibliography woes! SOLVED., Sharon Kimble, 2014/05/06
- Re: [O] Bibliography woes!, Leonard Avery Randall, 2014/05/05