[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Implementing TeX-update

From: Mosè Giordano
Subject: [AUCTeX-devel] Implementing TeX-update
Date: Mon, 17 Aug 2015 12:26:07 +0200

Hi list,

I've implemented TeX-update, as suggested in the wishlist.  My work
follows the same logic of and
is in part based on it: a function runs the compilation command and
calls a sentinel which, when the command finishes, calls back the
function and so on until a stopping condition is reached.

Some comments about possible copyrights concerns:

- `TeX-command-default' is extracted from `TeX-command-query', there
is nothing new in it;

- the sentinel function `TeX-command-sequence-sentinel' is similar to
`TeX-texify-sentinel' of EmacsWiki, but I don't know how a basic
sentinel could be written otherwise.  Moreover, how to test whether
there have been errors in the last compilation is reported literally
in the docstring of `TeX-error-report-switches';

- `TeX-command-sequence' has only the last three lines in common with
`TeX-texify' of EmacsWiki, which are the setting of a sentinel, how
could it be done otherwise?  For the rest these functions are
different: `TeX-command-sequence' is much more flexible (see the
docstring and the possible values of the first argument) and stopping
after a command has been run N times in a row does work, in
`TeX-texify' it doesn't.

In addition, in the second patch I've added "dvips" and "ps2pdf" rules
to `TeX-command-list', and there is a new option
`TeX-PDF-via-dvips-ps2pdf' so that one can produce a PDF using latex +
dvips + ps2pdf.  Using `TeX-update' all this boils down to a single
C-c C-u  :-)

I've been using `TeX-update' and dvips + ps2pdf for a week, without
problems.  Comments and suggestions welcome.


Attachment: 0001-Implement-TeX-update.patch
Description: Text Data

Attachment: 0002-Generate-PDF-via-dvips-ps2pdf.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]