-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecsectionalv2.cls
More file actions
162 lines (127 loc) · 4.79 KB
/
decsectionalv2.cls
File metadata and controls
162 lines (127 loc) · 4.79 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{decsectionalv2}[2025/03/24 Digital Equipment Corporation]
\LoadClass{decv2}
\renewcommand{\thepage}{\thechapter-\arabic{page}}
\renewcommand{\toc}{%
\pagestyle{preface}
\begingroup
\setlength{\parskip}{0.5em}
\let\clearpage\relax
\tableofcontents
\thispagestyle{preface}
\vspace{1em}
\subsubsection*{Figures}
\listoffigures
\thispagestyle{preface}
\vspace{1em}
\subsubsection*{Tables}
\listoftables
\thispagestyle{preface}
\endgroup
}
\setcounter{secnumdepth}{5}
\titleformat{\chapter}[display]{\raggedleft\fontfamily{phv}\selectfont\bfseries\huge}{\Huge \thechapter}{-0.5em}{}[\hrule]
\titlespacing{\chapter}{0pc}{9em}{2em}
\titleformat{\section}{\raggedright\fontfamily{phv}\selectfont\bfseries\Large}{\thesection \hspace{1em}}{0.0em}{}[]
\titlespacing{\section}{0em}{1em}{1em}
\titleformat{\subsection}{\raggedright\fontfamily{phv}\selectfont\bfseries\large}{\thesubsection\hspace{1em}}{0.0em}{}[]
\titlespacing{\subsection}{0em}{1em}{1em}
\titleformat{\subsubsection}{\raggedright\fontfamily{phv}\selectfont\bfseries}{\thesubsubsection\hspace{1em}}{0.0em}{}[]
\titlespacing{\subsubsection}{0em}{0.4em}{-0.4em}
\renewcommand{\boilerplate}{%
\justifying
\setlength{\parindent}{0pt}
\thispagestyle{empty}
\footnotesize
\vspace*{4cm}
First Edition, {\@pubmonth} {\@pubyear}
Copyright \copyright{\@pubyear} by Digital Equipment Corporation.\\
All Rights Reserved.\\
Printed in U.S.A.
The information in this document is subject to change without notice and should not be construed as a commitment by Digital Equipment Corporation.
Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document.
The software, if any, described in this document is furnished under a license and may be used or copied only in accordance with the terms of
such license. No responsibility is assumed for the use or reliability of software or equipment that is not supplied by Digital Equipment Corporation
or its affiliated companies.
The following are trademarks of Digital Equipment Corporation:
\begin{tabular}{ m{3.5cm} m{3.5cm} l}
\raisebox{-0.35\height}{\includegraphics[height=10pt]{logos/digital}} \textsuperscript{TM} & EDCS & RSTS \\
BASEWAY & FMS & RSX \\
BIBus & MASSBUS & RT \\
COMPACTape & Micro/RSTS & ThinWire \\
DEC & MicroPDP-11 & UNIBUS \\
DECconnect & Micro/RSX & VAX \\
DEC/MAP & MicroVAX II & VAXeluster \\
DECmate & PDP & VAXstation II \\
DECnet & P/OS & VAXstation II/GPX \\
DECUS & Professional & VMS \\
DECwriter & Q-Bus & VT \\
DIBOL & Rainbow & \\
\end{tabular}
\normalsize
\newpage
}
\let\Chaptermark\chaptermark
\def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}}
\fancypagestyle{preface} {
\fancyhf{}
\fancyfoot[LE]{\small\fontfamily{phv}\selectfont \textbf{\thepage}}
\fancyfoot[RO]{\small\fontfamily{phv}\selectfont \textbf{\thepage}}
}
\fancypagestyle{main} {
\fancyhf{}
\fancyfoot[LE]{\small\fontfamily{phv}\selectfont \textbf{\thechapter-\thepage} \hspace{1em} \@product \hspace{1pt} \@title}
\fancyfoot[RO]{\small\fontfamily{phv}\selectfont \Chaptername \hspace{1em} \textbf{\thechapter-\thepage}}
}
\fancypagestyle{plain}{%
\fancyhf{}%
% \fancyfoot[LE]{\small\fontfamily{phv}\selectfont \textbf{\thechapter-\thepage} \hspace{1em} \@product \hspace{1pt} \@title}
% \fancyfoot[RO]{\small\fontfamily{phv}\selectfont \Chaptername \hspace{1em} \textbf{\thechapter-\thepage}}
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
\renewcommand{\footrulewidth}{0pt}% Line at the footer visible
}
\renewcommand\thefigure{\thechapter-\arabic{figure}}
\renewcommand\thetable{\thechapter-\arabic{table}}
\RenewEnviron{tbl}[2]{
\begin{table}[H]
\IfStrEq{X#1}{X}{}{
\label{table:\tbllabel}
\captionsetup{font=large}
\caption{#1}
}
\normalsize
\begin{tabularx}{\textwidth}{#2}
\hline
\BODY
\hline
\end{tabularx}
\end{table}
}
\RenewEnviron{tblcont}[2]{
\begin{table}[H]
\IfStrEq{X#1}{X}{}{
\addtocounter{table}{-1}
\renewcommand\thetable{\thechapter-\arabic{table} (Cont.)}
\captionsetup{font=Large}
\caption[]{#1}
}
\normalsize
\begin{tabularx}{\textwidth}{#2}
\hline
\BODY
\hline
\end{tabularx}
\end{table}
}
\renewcommand{\figlabel}{\thechapter-\arabic{figure}}
\renewcommand{\tbllabel}{\thechapter-\arabic{table}}
\fancypagestyle{preface} {
\fancyhf{}
\fancyhead[LE]{\small\fontfamily{phv}\selectfont \textbf{\thepage}}
\fancyhead[RO]{\small\fontfamily{phv}\selectfont \textbf{\thepage}}
}
\fancypagestyle{main} {
\fancyhf{}
\fancyhead[LE]{\small\fontfamily{phv}\selectfont \textbf{\thechapter-\thepage} \hspace{1em} \Chaptername}
\fancyhead[RO]{\small\fontfamily{phv}\selectfont \Chaptername \hspace{1em} \textbf{\thechapter-\thepage}}
}