AUCTeX ⇒ Question on adding custom commands to AUCTeX
Question on adding custom commands to AUCTeX
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
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