]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - myclass.cls
Copyedited for Tribe of Noise
[text-madewithcc.git] / myclass.cls
index 2c33c483e97c5f3cd6acb33310f5ab23cf41d1d3..7f3694dd094869f882c2d443b97bbb3c267c0434 100644 (file)
@@ -4,8 +4,11 @@
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
+\renewcommand{\baselinestretch}{1.2}
+
 \makeatletter
 
 \makeatletter
 
+\usepackage{hyphenat}
 %
 % Customize the titlepage: remove the date, place the publisher name, and
 % load a specific file for the verso page, containing some legal notices
 %
 % Customize the titlepage: remove the date, place the publisher name, and
 % load a specific file for the verso page, containing some legal notices
   \setlength{\parskip}{0.5em} %
   \setlength{\parindent}{0pt} %
 }{}
   \setlength{\parskip}{0.5em} %
   \setlength{\parindent}{0pt} %
 }{}
+
+\usepackage{titlesec}
+\titleformat{\chapter}{\huge}{\thechapter.}{20pt}{\hyphenpenalty=10000 \Huge}
+\titleformat{\section}{\Large}{\thesection}{1em}{}
+\titleformat{\subsection}{\large}{\thesubsection}{1em}{}
+%% \titleformat{\paragraph}{\normalsize}{\theparagraph}{1em}{}
+%% \titleformat{\subparagraph}{\normalsize}{\thesubparagraph}{1em}{}
+
+\usepackage{titletoc}
+
+% indented subsection (in toc)
+\titlecontents{part}
+[0.0cm]             % left margin
+{\vskip 0.5em}     % above code
+{%                  % numbered format
+{\Large\thecontentslabel\quad}%
+}%
+{\Large}         % unnumbered format
+{\hfill \contentspage \vskip 0.2em}         % filler-page-format, e.g dots
+
+
+% indented subsection (in toc)
+\titlecontents{chapter}
+[0.0cm]             % left margin
+{}                  % above code
+{%                  % numbered format
+{\large\thecontentslabel.\quad}%
+}%
+{\large}         % unnumbered format
+{\hfill \contentspage}         % filler-page-format, e.g dots