AUCTeXQuestion on adding custom commands to AUCTeX

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

Question on adding custom commands to AUCTeX

Post by sevillad »

Hi,

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,

David

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply