1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{myclass}[]
4 %% Just use the original class and pass the options
5 \LoadClassWithOptions{report}
7 \renewcommand{\baselinestretch}{1.2}
12 % Customize the titlepage: remove the date, place the publisher name, and
13 % load a specific file for the verso page, containing some legal notices
19 \def\titlerecto{\begin{titlepage}%
23 {\LARGE \@title \par}%
27 \begin{tabular}[t]{c}%
31 {\large \DBKpublishername \par}
33 {\large \DBKpublisheraddress \par}%
39 \def\titlepagefile{titlepg.input.tex}
40 \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
43 % Allow line break on hyphen (-) in URLs, to make sure long URLs in
44 % footnotes do not pass out of the margins.
45 \usepackage[hyphens]{url}
47 \newenvironment{colophon}{
49 % FIXME change when page size changes, use {x}{x*1.2}
51 % Note, these numbers are not correct any more for the sizes mentioned:
52 % \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
53 % \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
54 % \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
56 \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page
57 \setlength{\parskip}{0.5em} %
58 \setlength{\parindent}{0pt} %
62 \titleformat{\chapter}{\huge}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
63 \titleformat{\section}{\Large}{\thesection}{1em}{}
64 \titleformat{\subsection}{\large}{\thesubsection}{1em}{}
65 %% \titleformat{\paragraph}{\normalsize}{\theparagraph}{1em}{}
66 %% \titleformat{\subparagraph}{\normalsize}{\thesubparagraph}{1em}{}
70 % indented subsection (in toc)
73 {\vskip 0.5em} % above code
75 {\Large\thecontentslabel\quad}%
77 {\Large} % unnumbered format
78 {\hfill \contentspage \vskip 0.2em} % filler-page-format, e.g dots
81 % indented subsection (in toc)
82 \titlecontents{chapter}
86 {\large\thecontentslabel.\quad}%
88 {\large} % unnumbered format
89 {\hfill \contentspage} % filler-page-format, e.g dots