X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/7ff43925537fa18b2277941dcb8f7d662ee85e43..51ea4abdd65d85685a609bcd7f8f05932baef365:/myclass.cls?ds=inline

diff --git a/myclass.cls b/myclass.cls
index 9b1ca43..c60423e 100644
--- a/myclass.cls
+++ b/myclass.cls
@@ -5,6 +5,9 @@
 \LoadClassWithOptions{report}
 % report, book, memoir, scrreprt or scrbook ?
 
+% Show frames, make it easier to debug borders
+%\usepackage{showframe}% http://ctan.org/pkg/showframe
+
 % Divide by 2 the index item indentation (10pt -> 5pt)
 \makeatletter
 \renewcommand\@idxitem{\par\hangindent 20\p@}
@@ -46,7 +49,9 @@
 
 \newenvironment{colophon}{
   \pagebreak %
-  \fontsize{7}{8.4}\selectfont %
+%  \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
+%  \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
+  \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
   \setlength{\parskip}{0.5em} %
   \setlength{\parindent}{0pt} %
 }{}
@@ -78,7 +83,7 @@
 % 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
@@ -91,16 +96,31 @@
 {0.75em} % space between dots
 [\addvspace{0pt}]
 
-
 %% Redefines the headings to remove the chapter label
 \titleformat{\chapter}[block]
-{\filcenter\huge}{\filcenter}{20pt}{\Huge}
+{\filcenter\Large}{\filcenter}{20pt}{\Large}
 
 \titleformat{\section}
 {\filcenter\Large\bfseries}{\thesection}{1em}{}
 
 \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
