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}
13 \newcommand{\beforetitle}{}
14 \newcommand{\publisherlogos}{}
20 % Customize the titlepage: remove the date, place the publisher name, and
21 % load a specific file for the verso page, containing some legal notices
27 \def\titlerecto{\begin{titlepage}%
33 {\LARGE \@title \par}%
37 \begin{tabular}[t]{c}%
41 {\large \DBKpublishername \par}
43 {\large \DBKpublisheraddress \par}%
50 \def\titlepagefile{titlepg.input.tex}
51 \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
54 % Allow line break on hyphen (-) in URLs, to make sure long URLs in
55 % footnotes do not pass out of the margins.
56 \usepackage[hyphens]{url}
58 \newenvironment{colophon}{
60 % FIXME change when page size changes, use {x}{x*1.2}
62 % Note, these numbers are not correct any more for the sizes mentioned:
63 % \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
64 % \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
65 % \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
67 \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page
68 \setlength{\parskip}{0.5em} %
69 \setlength{\parindent}{0pt} %
73 \titleformat{\chapter}{\huge}{\thechapter.}{20pt}{\hyphenpenalty=10000 \Huge}
74 \titleformat{\section}{\Large}{\thesection}{1em}{}
75 \titleformat{\subsection}{\large}{\thesubsection}{1em}{}
76 %% \titleformat{\paragraph}{\normalsize}{\theparagraph}{1em}{}
77 %% \titleformat{\subparagraph}{\normalsize}{\thesubparagraph}{1em}{}
81 % indented subsection (in toc)
84 {\vskip 0.5em} % above code
86 {\Large\thecontentslabel\quad}%
88 {\Large} % unnumbered format
89 {\hfill \contentspage \vskip 0.2em} % filler-page-format, e.g dots
92 % indented subsection (in toc)
93 \titlecontents{chapter}
97 {\large\thecontentslabel.\quad}%
99 {\large} % unnumbered format
100 {\hfill \contentspage} % filler-page-format, e.g dots
102 % We have many short chapters. Avoid them all starting on right-side
103 % pages, as it wastes too much space
104 \let\cleardoublepage\clearpage