auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Implementing TeX-update


From: Lars Madsen
Subject: Re: [AUCTeX-devel] Implementing TeX-update
Date: Mon, 17 Aug 2015 10:37:03 +0000

A slightly related question

I always run the compilation outside Emacs, via latexmk -pvc

This of course does not give me the C-c ` access to errors, can I provoke that 
manually?

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/address@hidden / More information: 
http://au.dk/en/address@hidden


________________________________________
From: address@hidden address@hidden on behalf of Mosè Giordano address@hidden
Sent: 17 August 2015 12:26
To: auctex-devel
Subject: [AUCTeX-devel] Implementing TeX-update

Hi list,

I've implemented TeX-update, as suggested in the wishlist.  My work
follows the same logic of http://www.emacswiki.org/emacs/TN#toc8 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.

Bye,
Mosè



reply via email to

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