<xsl:text>
\usepackage{endnotes}
\let\footnote=\endnote
-\def\enoteheading{\mbox{}\par\vskip-\baselineskip }
+\def\enoteheading{\mbox{}\par\vskip-0.2\baselineskip }
+
+% More pretty looking note
+\def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-13pt
+\leavevmode\llap{\makeenmark}\hspace*{11pt}}
% Increase footnote/endnote size to be more than 6 pts, to avoid
% complaint from Lulu about the font being too small to be printed
% latex.begindocument can be active.
\sloppy
-% Hack to get correct chapter numbering with dblatex, as chapter
-% labels are ignored.
-\setcounter{chapter}{-1}
-
\begin{document}
</xsl:text>
% Make TOC entries without label
\titlecontents{chapter} %
[1.5em] %
-{\addvspace{1em plus 0pt}\bfseries} %
+{\addvspace{0.3em plus 0pt}\bfseries} %
{\hspace{-1.3em}} % no number, remove room reserved for it
{\hspace{-1.3em}} %
{\hfill \contentspage} % dots and page number
{0.75em} % space between dots
[\addvspace{0pt}]
-
%% Redefines the headings to remove the chapter label
\titleformat{\chapter}[block]
{\filcenter\Large}{\filcenter}{20pt}{\Large}
\titleformat{\subsection}
{\filcenter\large\bfseries}{\thesubsection}{1em}{}
+
+%% New header, behaving like a chapter but formatted differently
+\titleclass{\lotheader}{top}[\part]
+\newcounter{lotheader}
+\renewcommand{\thelotheader}{\Alph{lotheader}}
+
+\titleformat{\lotheader}[block]
+{\filcenter\huge}{\filcenter}{20pt}{\Huge}
+\titlespacing*{\lotheader}{0pt}{-30pt}{40pt}
+
+% Use the new header in TOC
+\let\stdtoc=\tableofcontents
+\let\stdchapter=\chapter
+\def\tableofcontents{\let\chapter\lotheader \stdtoc{} \let\chapter\stdchapter}
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% From