From: petterreinholdtsen Date: Sat, 1 Aug 2015 21:08:24 +0000 (+0200) Subject: Merge pull request #8 from marsgui/master X-Git-Tag: edition-2015-10-10~361 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/442cc49c0850060dd77f698ff02afd3539363f53?hp=513c51de2ae8eb814d140b0848ce810fd6209ba4 Merge pull request #8 from marsgui/master Example about changing index font and layout + handle colophon --- diff --git a/data/pdf.xsl b/data/pdf.xsl index 6e53ef2..a3f98b1 100644 --- a/data/pdf.xsl +++ b/data/pdf.xsl @@ -37,7 +37,16 @@ Crimson Text +Crimson Text Crimson Text Crimson Text Crimson Text +Nimbus Mono L + + + \begin{colophon} + + \end{colophon} + + diff --git a/freeculture.xml b/freeculture.xml index 020aed3..d0c1c18 100644 --- a/freeculture.xml +++ b/freeculture.xml @@ -15636,12 +15636,6 @@ conventional Colophon page. The disadvantage is a useless blank page where the empty chapter title is printed. --> - @@ -15750,7 +15744,5 @@ Please report any problems using the GitHub issue tracker. - diff --git a/myclass.cls b/myclass.cls index 6d87152..9b1ca43 100644 --- a/myclass.cls +++ b/myclass.cls @@ -5,12 +5,22 @@ \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} + % 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} @@ -25,11 +35,23 @@ \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 +\newenvironment{colophon}{ + \pagebreak % + \fontsize{7}{8.4}\selectfont % + \setlength{\parskip}{0.5em} % + \setlength{\parindent}{0pt} % +}{} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Based on ideas from https://bugs.debian.org/684772 \usepackage{titlesec}