]> pere.pagekite.me Git - text-madewithcc.git/blob - myclass.cls
e7f2f018b16f515dc6738bc229ae158b7b4b6780
[text-madewithcc.git] / myclass.cls
1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{myclass}[]
3
4 %% Just use the original class and pass the options
5 \LoadClassWithOptions{report}
6
7 \makeatletter
8
9 %
10 % Customize the titlepage: remove the date, place the publisher name, and
11 % load a specific file for the verso page, containing some legal notices
12 %
13 \def\maketitle{%
14 \titlerecto%
15 \titleverso}
16
17 \def\titlerecto{\begin{titlepage}%
18 \null\vfil
19 \vskip 160\p@
20 \begin{center}%
21 {\LARGE \@title \par}%
22 \vskip 3em%
23 {\Large
24 \lineskip .75em%
25 \begin{tabular}[t]{c}%
26 \@author
27 \end{tabular}\par}%
28 \vskip 20em%
29 {\large \DBKpublishername \par}
30 \vskip .75em%
31 {\large \DBKpublisheraddress \par}%
32 \end{center}\par
33 \vfil\null
34 \end{titlepage}}%
35
36 \def\titleverso{%
37 \def\titlepagefile{titlepg.input.tex}
38 \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
39 }%
40
41 \newenvironment{colophon}{
42 \pagebreak %
43 % FIXME change when page size changes, use {x}{x*1.2}
44
45 % Note, these numbers are not correct any more for the sizes mentioned:
46 % \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
47 % \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
48 % \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
49
50 \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page
51 \setlength{\parskip}{0.5em} %
52 \setlength{\parindent}{0pt} %
53 }{}