LaTeX forum ⇒ AUCTeXQuestion on adding custom commands to AUCTeX

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
Posts: 1
Joined: Wed Mar 09, 2011 12:26 pm

Question on adding custom commands to AUCTeX

Postby sevillad » Wed Mar 09, 2011 12:35 pm


I am trying to create a command which runs latex on a poster .tex file, then converts the dvi to a pdf. I have managed to do it more or less, by adding to "Tex Command List" in the options the following command:

latex %s && dvipdf %s

However, if some error occurs during the first part, for example a missing file, latex would give a prompt; I would prefer if an error message was given, as when I run the usual LaTeX command by AUCTeX.

Is there a way to tell AUCTeX to detect a poster situation (for example by looking at the documentclass) and choosing my custom command when I select LaTeX after C-c C-c?

Thanks a lot,


Return to “AUCTeX”

Who is online

Users browsing this forum: No registered users and 1 guest