In case it makes a difference, I'm using TeXshop 2.14 on Mac OS X.
Code: Select all
\documentclass[11pt, a5paper, openany]{book}
\usepackage{times,amsmath,enumerate,moreverb,url}
\usepackage[hyperfootnotes=false,pdftex,bookmarks=true]{hyperref}
\usepackage{natbib}
\usepackage{gensymb}
\usepackage[english]{babel}
\selectlanguage{english}
\usepackage{graphicx}
\usepackage{titlesec} %%% change Chapter Title layout
\usepackage{lettrine} %%% DROP CAPS
\usepackage[tight]{subfigure}
%%%% FOR a5paper
\pdfpagewidth 148mm
\pdfpageheight 210mm
\addtolength{\topmargin}{-10mm} % was 20
\addtolength{\textheight}{28mm} % was 43; 28
\addtolength{\textwidth}{5mm} % was 12.5
\addtolength\oddsidemargin{8mm} %
\addtolength\evensidemargin{-13.5mm} %-13.5
%%%Allow easy switching between pdflatex and latex
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi
\bibliographystyle{apalike}
\bibpunct{[}{]}{;}{a}{}{,}
\renewcommand{\ttdefault}{cmtt}
\renewcommand{\baselinestretch}{1.1}
\begin{document}
%%%Allow easy switching between pdflatex and latex
\ifpdf
\DeclareGraphicsExtensions{.pdf, .jpg, .tif}
\else
\DeclareGraphicsExtensions{.eps, .jpg}
\fi
\frontmatter
\begin{titlepage}
\begin{center}
\Huge{\fontfamily{phv}\selectfont TITLE}\\
\large{\fontfamily{phv}\selectfont Subtitle}\\
~\\
\Large{\fontfamily{phv}\selectfont Author}
\end{center}
\pagebreak
\pagestyle{empty}
~
~\\
\vspace*{2.5cm}
\begin{quote}
Copyright boilerplate\\
~\\
Copyright \copyright~Author 2008\\
~\\
National Library of Australia Cataloguing-in-Publication entry:\\
\begin{tabular}{ll}
Author: & etc.\\
\end{tabular}
\end{quote}
\end{titlepage}
\thispagestyle{empty}
~
\noindent
More front matter
\subsection*{Title}
\begin{itemize}
\item stuff
\end{itemize}
\setcounter{page}{1}
\include{preface}
\thispagestyle{empty}
\pagestyle{headings}
\tableofcontents
\listoffigures
\mainmatter
\hyphenpenalty=7500 % was 5000
\tolerance=1000
\renewcommand{\sectionmark}[1]{\markright{#1}}
%%% change Chapter Title layout
\titleformat{\chapter}
{\normalfont\bfseries\Huge}{\Huge\thechapter}{1em}{}
\include{file1}
\include{file2}
% etc.
\markboth{REFERENCES}{BOOK TITLE}
\sectionmark{SUBTITLE}
\renewcommand\bibname{References} % change title of references section
\thispagestyle{empty}
\pagestyle{myheadings}
\addcontentsline{toc}{chapter}{References}
\bibliography{bibfilename}
\backmatter
\end{document}