About TpX drawing tool

LaTeX preamble

This is a sample preamble to include in parent LaTeX file. It uses ifpdf package to switch between two different modes of running PdfLaTeX. (Download ifpdf from CTAN if you do not have one). Comment out unused packages or just delete the corresponding commands.

\ifpdf %if using pdfLaTeX in PDF mode
\else %if using LaTeX or pdfLaTeX in DVI mode
  \DeclareGraphicsRule{.emf}{bmp}{}{}% declare EMF filename extension
  \DeclareGraphicsRule{.png}{bmp}{}{}% declare PNG filename extension
\usepackage{floatflt}% package for floatingfigure environment
\usepackage{wrapfig}% package for wrapfigure environment