]> pere.pagekite.me Git - text-madewithcc.git/blob - myclass.cls
Ask pandoc explicitly to generate docbook 4.
[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 % Allow line break on hyphen (-) in URLs, to make sure long URLs in
42 % footnotes do not pass out of the margins.
43 \usepackage[hyphens]{url}
44
45 \newenvironment{colophon}{
46 \pagebreak %
47 % FIXME change when page size changes, use {x}{x*1.2}
48
49 % Note, these numbers are not correct any more for the sizes mentioned:
50 % \fontsize{6.5}{7.8}\selectfont % fits in one 4.25x6.875" pocket size page
51 % \fontsize{7.5}{9}\selectfont % fits in one 5.06x7.71" size page
52 % \fontsize{9.1}{10.92}\selectfont % fits in one 5.5x8.5" digest size page
53
54 \fontsize{8.2}{9.84}\selectfont % fits in one 6x9'' size page
55 \setlength{\parskip}{0.5em} %
56 \setlength{\parindent}{0pt} %
57 }{}