Possible Duplicate:
Detect which TeX engine is used
Conditional typesetting / build
I'm currently writing a document in LaTeX (using the article documentclass for now, thinking about switching to memoir later on).
I'm using the navigator package to generate additional meta-fields in the resulting pdf and I use pdflatex to generate my PDF.
However, when I use latex to generate a .dvi I do get errors because the meta-fields for pdf don't make sense now.
How can I put some conditional statements in the file so that certain sections would be included or excluded depending on what command is used to generate (or what target format is being generated)?
Here are the statements that now I have to manually comment out to compile my document with latex.
\usepackage{navigator}
\setparameter navigator:
author = Andy
title = Agile
\par
If this is a FAQ/stupid question please point me in the right direction.