]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - myclass.cls
Always convert ODT to MD using LC_ALL=C.UTF-8 for well known result.
[text-madewithcc.git] / myclass.cls
index e7f2f018b16f515dc6738bc229ae158b7b4b6780..d4167eb2b4597a33a47cb0c3d5b29eadd7cc38cd 100644 (file)
@@ -4,6 +4,8 @@
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
+\renewcommand{\baselinestretch}{1.2}
+
 \makeatletter
 
 %
   \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
 }%
 
+% Allow line break on hyphen (-) in URLs, to make sure long URLs in
+% footnotes do not pass out of the margins.
+\usepackage[hyphens]{url}
+
 \newenvironment{colophon}{
   \pagebreak %
 % FIXME change when page size changes, use {x}{x*1.2}
   \setlength{\parskip}{0.5em} %
   \setlength{\parindent}{0pt} %
 }{}
+
+\usepackage{titlesec}
+\titleformat{\chapter}{\huge}{\chaptertitlename\ \thechapter}{20pt}{\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