What is the proper way of solving this problem with respect to AUCTeX's design - I mean, how to do that in a way that it will still recognize the errors, display log on demand, make "View" command default on successful compilation, etc. Or, what is a way to define my own command with the same functionality and make it default?
With the current AUCTeX management of compilers I think the cleanest solution would be to add a new command for
Here there is the following solution (slightly improved): add this code to your
This isn't the best solution, but at least is able to catch error reports.
Since AucTeX 11.89, this is a built-in feature; simply set the variable
So you could just put
I am a just plain latex user, but I got results, which was my best. I don't know LISP at all, and I was using just aquamacs and its GUI-like AUCtex customize menus. Anyway, for now I use psfrag, inverse search for pdf in Skim viewer both from pdflatex and from dvips + ps2pdf.
This was all my best. First, I separated (latex) and (dvips + ps2pdf). The reason is that if I don't, C-c C-v try to show dvi, which was not a good idea in my mac.
In the AUCtex customize menu -> TeX-command-list, the LaTex is bound to the PdfLatex as a default. So I added two more command-lists, the PdfLatex and the dvips + ps2pdf, and I just copied the original command in the LaTex list to PdfLatex list, which was
In the LaTex list, I replaced by
In the dvips + ps2pdf list, I put
Then, the LaTex icon in the aquamacs operates as only latex compilation. After C-c C-c to run dvips + ps2dvi, I can see the pdf file using C-c C-v.
Also, I was able to use inverse search generated by dvips + ps2pdf in Skim viewer after I changed the value to synctex for DVI in the Tex Source Correlate Method menu.
Overall changes resulted in the following LISP, which I don't understand, but I put them here.