X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/440074ec4ed1c1a192505952b05bea27b3372498..cc78275e9c4615e768a25ecfc51a088d6633346d:/myclass.cls diff --git a/myclass.cls b/myclass.cls index c77bc96..d4167eb 100644 --- a/myclass.cls +++ b/myclass.cls @@ -4,6 +4,8 @@ %% Just use the original class and pass the options \LoadClassWithOptions{report} +\renewcommand{\baselinestretch}{1.2} + \makeatletter % @@ -37,3 +39,51 @@ \def\titlepagefile{titlepg.input.tex} \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} + +% Note, these numbers are not correct any more for the sizes mentioned: +% \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 + + \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page + \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