]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - myclass.cls
Generated.
[text-free-culture-lessig.git] / myclass.cls
index 6d87152ae924dc4ee3acc714c12c5833c8adfae4..3cb01ab55b6e8ff4500bff7def27d6d5ff4b1d89 100644 (file)
@@ -5,12 +5,22 @@
 \LoadClassWithOptions{report}
 % report, book, memoir, scrreprt or scrbook ?
 
 \LoadClassWithOptions{report}
 % report, book, memoir, scrreprt or scrbook ?
 
+% Divide by 2 the index item indentation (10pt -> 5pt)
+\makeatletter
+\renewcommand\@idxitem{\par\hangindent 20\p@}
+\renewcommand\subitem{\@idxitem \hspace*{10\p@}}
+\renewcommand\subsubitem{\@idxitem \hspace*{15\p@}}
+\makeatother
+
 % Put the index in the TOC
 \makeatletter
 \let\stdindex=\theindex
 \let\endstdindex=\endtheindex
 \renewenvironment{theindex}{
   \begin{stdindex}
 % Put the index in the TOC
 \makeatletter
 \let\stdindex=\theindex
 \let\endstdindex=\endtheindex
 \renewenvironment{theindex}{
   \begin{stdindex}
+  % Use a smaller font except for the letter heading which is bold
+  \newfontfamily\indexfont[Scale=0.7,
+                           BoldFeatures={Scale=1}]{Crimson Text}
   \@ifundefined{chapter}{}{
     % To not have the number, replace by:
     % \addcontentsline{toc}{chapter}{\numberline{}\indexname}
   \@ifundefined{chapter}{}{
     % To not have the number, replace by:
     % \addcontentsline{toc}{chapter}{\numberline{}\indexname}
       \addcontentsline{toc}{chapter}{\indexname}
     \fi
   }
       \addcontentsline{toc}{chapter}{\indexname}
     \fi
   }
+  % Adapt the vertical sizes to the smaller font
+  \setlength{\baselineskip}{0.7\baselineskip}%
+  \setlength{\parskip}{0.2\baselineskip}%
+  \indexfont
 }{
   \end{stdindex}
 }
 \makeatother
 
 }{
   \end{stdindex}
 }
 \makeatother
 
+\newenvironment{colophon}{
+  \pagebreak %
+  \fontsize{6}{7.2}\selectfont %
+  \setlength{\parskip}{0.5em} %
+  \setlength{\parindent}{0pt} %
+}{}
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Based on ideas from https://bugs.debian.org/684772
 \usepackage{titlesec}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Based on ideas from https://bugs.debian.org/684772
 \usepackage{titlesec}