1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{myclass}[]
4 %% Just use the original class and pass the options
5 \LoadClassWithOptions{report}
7 % Place page number at the outer foot edge of content pages
8 \usepackage[pagestyles]{titlesec}
9 \newpagestyle{mystyle}{\setfoot[\thepage][][]{}{}{\thepage}}
12 \renewcommand{\baselinestretch}{1.2}
18 % Customize the titlepage: remove the date, place the publisher name, and
19 % load a specific file for the verso page, containing some legal notices
25 \def\titlerecto{\begin{titlepage}%
29 {\LARGE \@title \par}%
33 \begin{tabular}[t]{c}%
37 {\large \DBKpublishername \par}
39 {\large \DBKpublisheraddress \par}%
45 \def\titlepagefile{titlepg.input.tex}
46 \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
49 % Allow line break on hyphen (-) in URLs, to make sure long URLs in
50 % footnotes do not pass out of the margins.
51 \usepackage[hyphens]{url}
53 \newenvironment{colophon}{
55 % FIXME change when page size changes, use {x}{x*1.2}
57 % Note, these numbers are not correct any more for the sizes mentioned:
58 % \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
59 % \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
60 % \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
62 \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page
63 \setlength{\parskip}{0.5em} %
64 \setlength{\parindent}{0pt} %
68 \titleformat{\chapter}{\huge}{\thechapter.}{20pt}{\hyphenpenalty=10000 \Huge}
69 \titleformat{\section}{\Large}{\thesection}{1em}{}
70 \titleformat{\subsection}{\large}{\thesubsection}{1em}{}
71 %% \titleformat{\paragraph}{\normalsize}{\theparagraph}{1em}{}
72 %% \titleformat{\subparagraph}{\normalsize}{\thesubparagraph}{1em}{}
76 % indented subsection (in toc)
79 {\vskip 0.5em} % above code
81 {\Large\thecontentslabel\quad}%
83 {\Large} % unnumbered format
84 {\hfill \contentspage \vskip 0.2em} % filler-page-format, e.g dots
87 % indented subsection (in toc)
88 \titlecontents{chapter}
92 {\large\thecontentslabel.\quad}%
94 {\large} % unnumbered format
95 {\hfill \contentspage} % filler-page-format, e.g dots
97 % We have many short chapters. Avoid them all starting on right-side
98 % pages, as it wastes too much space
99 \let\cleardoublepage\clearpage