%% Don't leave the space for marginal notes.
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}
+\setlength{\textheight}{\paperheight}
+\addtolength{\textheight}{-2in}
+\addtolength{\textheight}{-\headheight}
+\addtolength{\textheight}{-\headsep}
\setlength{\headwidth}{\textwidth}
-\setlength{\oddsidemargin}{0pt}
-\setlength{\evensidemargin}{0pt}
+\setlength{\topmargin}{0in}
+\setlength{\oddsidemargin}{0in}
+\setlength{\evensidemargin}{0in}
\setlength{\marginparsep}{0pt}
\setlength{\marginparwidth}{0pt}
-\addtolength{\textheight}{\footskip}
+\setlength{\footskip}{0pt}
%\def\sectionmark#1{\markboth
%{\MakeUppercase{\ifnum \c@secnumdepth>\z@
%% Don't write footers.
\rfoot[]{}
\lfoot[]{}
+\cfoot[]{}
%% Fixing incorrest indentation of the original `CompactItemize'
%% environment.
%% \catcode`\_11\relax
%% Make each section start with a new page.
-%% \let\origsection\section
-%% \def\newsection{\cleardoublepage\origsection}
-%% \def\sectionOnNewpage{\let\section\newsection}
+\let\origsection\section
+\def\newsection{\cleardoublepage\origsection}
+\def\sectionOnNewpage{\let\section\newsection}
+\sectionOnNewpage
%% Cross reference for IPA document.
\def\IPAlabel#1{\label{IPA:#1}}
%{\catcode`"=\active\gdef"{{\catcode`"=12\verb+"+}}}
%\catcode`"=\active
%\def\includegraphics[#1]#2{}
+
+\let\origtableofcontents\tableofcontents
+\def\tableofcontents{\setcounter{tocdepth}{2}\origtableofcontents\clearpage}
+\def\footrule{}