Christian Ridderström wrote: > Is there currently any way to place code in the preamble that can detect > what the final result will be, and how it is produced? E.g. will the > output be DVI(via latex), PDF(via DVI), PDF(via dvipdfm) and so on.
KOMA script provides the command \ifpdfoutput{do_this}{else_do_this} see the scrguide (KOMA doc) for details. Jürgen.