From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Auctex: Configure the cases when recompile is necessary
Date: Mon, 13 May 2013 10:58:35 +0200 [thread overview]
Message-ID: <87txm7w91g.fsf@yahoo.fr> (raw)
In-Reply-To: <8738ttu7f5.fsf@mithlond.arda> (Teemu Likonen's message of "Sat, 11 May 2013 13:39:42 +0300")
Teemu Likonen <tlikonen@iki.fi> writes:
> I've been trying various things and I can get it mostly work with my own
> scripts too. Then I realized that I almost always need to run the
> xelatex compiler twice, so why not just write a script that simply runs
> the command twice? There is probably no need for complicated magic. :-)
Sometimes it requires three or more compilation, or it might require to
call an external (non-latex) process between two latex passes (e.g.
bibtex). Latexmk takes care of many cases automagically by using a
make-like dependency system and using a list of files provided by latex
(.fls file, obtained by adding the -recorder option to latex on any
recent latex installation).
Also Latexmk tries hard to not run latex if the target file is already
up to date, thus saving your much time when compiling the whole document
(another huge time saver is to compile only the region within auctex.)
Using Latexmk is usually as simple as calling "latexmk yourfile.tex"
(options such as -pdf or -xelatex can be used and a have an obvious
meaning).
If you use specific extensions that are yet unknown to latexmk (such as
sagetex or asymptote) you need to create a config file to tell latexmk
about it (to do once, then forget about it) ; refer to the doc if that's
your case.
Similar (or complementary) tools exist, such as rubber already
mentionned, but I don't know anything about them.
Really, using these tools will save your time in most classical
situations, including multifile documents with multiple bibliographies
(at least when they're all in one folder ; subfolders are a bit more
complicated in my experience).
--
N.
next prev parent reply other threads:[~2013-05-13 8:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-11 7:55 Auctex: Configure the cases when recompile is necessary Teemu Likonen
2013-05-11 10:09 ` Peter Dyballa
2013-05-11 10:39 ` Teemu Likonen
2013-05-13 8:58 ` Nicolas Richard [this message]
2013-05-13 16:10 ` Teemu Likonen
2013-05-11 21:22 ` Julien Cubizolles
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txm7w91g.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=tlikonen@iki.fi \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.