-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathol-softwaremanual.cls
64 lines (53 loc) · 1.64 KB
/
ol-softwaremanual.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ol-softwaremanual}
% sample software documentation format
% set default smaller margins, separated paragraphs, bigger line spacing
% (fullpage used as fallback if geometry package removed from main preamble)
\RequirePackage{fullpage,parskip}
%\linespread{1.1}
% use Roboto as the main font
%\RequirePackage[utf8]{inputenc}
%\RequirePackage[T1]{fontenc}
%\RequirePackage{lmodern}
%\RequirePackage{sfmath}
% load the base class with default options
\LoadClass[a4paper,11pt]{article}
% extra front matter commands
\DeclareRobustCommand*{\softwarelogo}[1]{\gdef\@logocmd{#1}}
\DeclareRobustCommand*{\version}[1]{\gdef\@ver{Version #1}}
% default values
\gdef\@logocmd{\@latex@warning{No logo command specified for title page. Ignoring.}}
\gdef\@ver{\@latex@warning{No version number specified for title page. Ignoring.}}
% modify the stock \maketitle command
\renewcommand\maketitle{
\begin{titlepage}
\centering
\@logocmd\par
{\huge\bfseries\@title\par}
\bigskip
{\Large\@ver\par}
\vfill
{\Large \@author\par}
\@date
\end{titlepage}
}
\RequirePackage{fancyhdr}
%% now reset the headers and footers
\fancyhead{}
\fancyfoot{}
\pagestyle{fancy}
\renewcommand{\baselinestretch}{1.05}
\small\normalsize
\RequirePackage{scalefnt}
\scalefont{1.08}
\AtEndPreamble{%
% set some hyperref options if it's loaded
% leave loading it to the user so they can get the order right
\@ifpackageloaded{hyperref}{%
\RequirePackage{xcolor}
\providecolor{manuallinkcolor}{HTML}{004a0e}
\hypersetup{colorlinks,allcolors=manuallinkcolor}%
}{}%
% let minted's listing captions use the correct font
\@ifpackageloaded{minted}{\let\@float@c@listing\@caption}{}
}