\documentclass[a4paper,twocolumn,dvips]{book}
\usepackage[dvips=false,pdftex=false,vtex=false]{geometry}
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex]{graphicx,color}
\else
  \usepackage{graphicx,color}
\fi
\usepackage{times}
\usepackage{fancyhdr}
\usepackage{ifthen}

\input{mydefs}

\fancyhead{} % clear all fields
\fancyhead[LE,RO]{\leftmark}		% left-even, right-odd
\fancyhead[RE,LO]{VIPS Manual}		% right-even, left-odd
\fancyfoot[LE,RO]{\thepage}		% left-even, right-odd
\fancyfoot[RE,LO]{January 2007}		

\begin{document}

\pagenumbering{roman}

\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\huge
VIPS Manual\\
\large Version 7.18\\
\vspace{0.5in}
\large
John Cupitt,
Kirk Martinez\\
\end{center}

% hmm ... must be a better way to get the quote at the bottom of the page
\vspace{6in}

This manual formatted \today
\setcounter{page}{1}
\end{titlepage}

% \blankpage
\tableofcontents
\thispagestyle{plain}

% \blankpage
\listoffigures
\thispagestyle{plain}

% \blankpage
\listoftables
\thispagestyle{plain}

% \blankpage
\pagenumbering{arabic}
\thispagestyle{plain}
\cfoot{}

\chapter{VIPS from C++ and Python}

\input{cppintro}
\input{fileformat}
\input{vimage}
\input{vmask}
\input{vdisplay}
\input{verror}

\chapter{VIPS for C programmers}

\input{applintro}
\input{iosys}
\input{func}
\input{object}
\input{format}
\input{interpolate}

\chapter{Writing VIPS operations}

\input{operintro}
\input{wio}
\input{pio}
\input{ipio}

\chapter{VIPS reference}

\input{refintro}
\input{packages}

\end{document}
