1 |
10 |
dgisselq |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%/
|
2 |
|
|
%
|
3 |
|
|
% Copyright (C) 2015, Gisselquist Technology, LLC
|
4 |
|
|
%
|
5 |
|
|
% This template is free software: you can redistribute it and/or modify it
|
6 |
|
|
% under the terms of the GNU General Public License as published by the
|
7 |
|
|
% Free Software Foundation, either version 3 of the License, or (at your
|
8 |
|
|
% option) any later version.
|
9 |
|
|
%
|
10 |
|
|
% This template is distributed in the hope that it will be useful, but WITHOUT
|
11 |
|
|
% ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
12 |
|
|
% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
13 |
|
|
% for more details.
|
14 |
|
|
%
|
15 |
|
|
% You should have received a copy of the GNU General Public License along
|
16 |
|
|
% with this program. If not, see for a copy.
|
17 |
|
|
%
|
18 |
|
|
% License: GPL, v3, as defined and found on www.gnu.org,
|
19 |
|
|
% http://www.gnu.org/licenses/gpl.html
|
20 |
|
|
%
|
21 |
|
|
%
|
22 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
23 |
|
|
% \NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
24 |
12 |
dgisselq |
\ProvidesClass{gqtekspec}[2015/03/03 v0.1 -- Gisselquist Technology Specification]
|
25 |
10 |
dgisselq |
\typeout{by Dan Gisselquist}
|
26 |
|
|
\LoadClassWithOptions{report}
|
27 |
|
|
\usepackage{datetime}
|
28 |
|
|
\usepackage{graphicx}
|
29 |
|
|
\usepackage[dvips]{pstricks}
|
30 |
25 |
dgisselq |
\usepackage{colortbl}
|
31 |
10 |
dgisselq |
\newdateformat{headerdate}{\THEYEAR/\twodigit{\THEMONTH}/\twodigit{\THEDAY}}
|
32 |
|
|
\setlength{\hoffset}{0.25in}
|
33 |
|
|
\setlength{\voffset}{-0.5in}
|
34 |
|
|
\setlength{\marginparwidth}{0in}
|
35 |
|
|
\setlength{\marginparsep}{0in}
|
36 |
|
|
\setlength{\textwidth}{6in}
|
37 |
|
|
\setlength{\oddsidemargin}{0in}
|
38 |
|
|
|
39 |
|
|
% **************************************
|
40 |
|
|
% * APPENDIX *
|
41 |
|
|
% **************************************
|
42 |
|
|
%
|
43 |
|
|
\newcommand\appfl@g{\appendixname} %used to test \@chapapp
|
44 |
|
|
%
|
45 |
|
|
% \renewcommand\appendix{\par\clearpage
|
46 |
|
|
% \setcounter{chapter}{0}%
|
47 |
|
|
% \setcounter{section}{0}%
|
48 |
|
|
% \renewcommand\@chapapp{\appendixname}%
|
49 |
|
|
% \renewcommand\thechapter{\Alph{chapter}}
|
50 |
|
|
% \if@nosectnum\else
|
51 |
|
|
% \renewcommand\thesection{\Alph{chapter}.\arabic{section}}
|
52 |
|
|
% \fi
|
53 |
|
|
% }
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
% FIGURE
|
57 |
|
|
% redefine the @caption command to put a period after the figure or
|
58 |
|
|
% table number in the lof and lot tables
|
59 |
|
|
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
|
60 |
|
|
ext@#1\endcsname}{#1}{\protect\numberline{\csname
|
61 |
|
|
the#1\endcsname.}{\ignorespaces #2}}\begingroup
|
62 |
|
|
\@parboxrestore
|
63 |
|
|
\normalsize
|
64 |
|
|
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
|
65 |
|
|
\endgroup}
|
66 |
|
|
|
67 |
|
|
% ****************************************
|
68 |
|
|
% * TABLE OF CONTENTS, ETC. *
|
69 |
|
|
% ****************************************
|
70 |
|
|
|
71 |
|
|
\renewcommand\contentsname{Contents}
|
72 |
|
|
\renewcommand\listfigurename{Figures}
|
73 |
|
|
\renewcommand\listtablename{Tables}
|
74 |
|
|
|
75 |
|
|
\newif\if@toc \@tocfalse
|
76 |
|
|
\renewcommand\tableofcontents{%
|
77 |
|
|
\begingroup% temporarily set if@toc so that \@schapter will not
|
78 |
|
|
% put Table of Contents in the table of contents.
|
79 |
|
|
\@toctrue
|
80 |
|
|
\chapter*{\contentsname}
|
81 |
|
|
\endgroup
|
82 |
|
|
\thispagestyle{gqtekspecplain}
|
83 |
|
|
|
84 |
|
|
\baselineskip=10pt plus .5pt minus .5pt
|
85 |
|
|
|
86 |
|
|
{\raggedleft Page \par\vskip-\parskip}
|
87 |
|
|
\@starttoc{toc}%
|
88 |
|
|
\baselineskip=\normalbaselineskip
|
89 |
|
|
}
|
90 |
|
|
|
91 |
|
|
\def\l@appendix{\pagebreak[3]
|
92 |
|
|
\vskip 1.0em plus 1pt % space above appendix line
|
93 |
|
|
\@dottedtocline{0}{0em}{8em}}
|
94 |
|
|
|
95 |
|
|
\def\l@chapter{\pagebreak[3]
|
96 |
|
|
\vskip 1.0em plus 1pt % space above appendix line
|
97 |
|
|
\@dottedtocline{0}{0em}{4em}}
|
98 |
|
|
|
99 |
|
|
% \if@nosectnum\else
|
100 |
|
|
% \renewcommand\l@section{\@dottedtocline{1}{5.5em}{2.4em}}
|
101 |
|
|
% \renewcommand\l@subsection{\@dottedtocline{2}{8.5em}{3.2em}}
|
102 |
|
|
% \renewcommand\l@subsubsection{\@dottedtocline{3}{11em}{4.1em}}
|
103 |
|
|
% \renewcommand\l@paragraph{\@dottedtocline{4}{13.5em}{5em}}
|
104 |
|
|
% \renewcommand\l@subparagraph{\@dottedtocline{5}{16em}{6em}}
|
105 |
|
|
% \fi
|
106 |
|
|
|
107 |
|
|
% LIST OF FIGURES
|
108 |
|
|
%
|
109 |
|
|
\def\listoffigures{%
|
110 |
|
|
\begingroup
|
111 |
|
|
\chapter*{\listfigurename}%
|
112 |
|
|
\endgroup
|
113 |
|
|
\thispagestyle{gqtekspecplain}%
|
114 |
|
|
|
115 |
|
|
\baselineskip=10pt plus .5pt minus .5pt%
|
116 |
|
|
|
117 |
|
|
{\hbox to \hsize{Figure\hfil Page} \par\vskip-\parskip}%
|
118 |
|
|
|
119 |
|
|
\rule[2mm]{\textwidth}{0.5mm}\par
|
120 |
|
|
|
121 |
|
|
\@starttoc{lof}%
|
122 |
|
|
\baselineskip=\normalbaselineskip}%
|
123 |
|
|
|
124 |
|
|
\def\l@figure{\@dottedtocline{1}{1em}{4.0em}}
|
125 |
|
|
|
126 |
|
|
% LIST OF TABLES
|
127 |
|
|
%
|
128 |
|
|
\def\listoftables{%
|
129 |
|
|
\begingroup
|
130 |
|
|
\chapter*{\listtablename}%
|
131 |
|
|
\endgroup
|
132 |
|
|
\thispagestyle{gqtekspecplain}%
|
133 |
|
|
\baselineskip=10pt plus .5pt minus .5pt%
|
134 |
|
|
{\hbox to \hsize{Table\hfil Page} \par\vskip-\parskip}%
|
135 |
|
|
|
136 |
|
|
% Added line underneath headings, 20 Jun 01, Capt Todd Hale.
|
137 |
|
|
\rule[2mm]{\textwidth}{0.5mm}\par
|
138 |
|
|
|
139 |
|
|
\@starttoc{lot}%
|
140 |
|
|
\baselineskip=\normalbaselineskip}%
|
141 |
|
|
|
142 |
|
|
\let\l@table\l@figure
|
143 |
|
|
|
144 |
|
|
% ****************************************
|
145 |
|
|
% * PAGE STYLES *
|
146 |
|
|
% ****************************************
|
147 |
|
|
%
|
148 |
|
|
\def\ps@gqtekspectoc{%
|
149 |
|
|
\let\@mkboth\@gobbletwo
|
150 |
|
|
\def \@oddhead{}
|
151 |
|
|
\def \@oddfoot{\rm
|
152 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspectocn}}
|
153 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
154 |
|
|
\def\ps@gqtekspectocn{\let\@mkboth\@gobbletwo
|
155 |
|
|
\def \@oddhead{\rm \hfil\raisebox{10pt}{Page}}
|
156 |
|
|
\def \@oddfoot{\rm
|
157 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspectocn}}
|
158 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
159 |
|
|
|
160 |
|
|
\def\ps@gqtekspeclof{\let\@mkboth\@gobbletwo
|
161 |
|
|
\def \@oddhead{}
|
162 |
|
|
\def \@oddfoot{\rm
|
163 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspeclofn}}
|
164 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
165 |
|
|
\def\ps@gqtekspeclofn{\let\@mkboth\@gobbletwo
|
166 |
|
|
\def \@oddhead{\rm
|
167 |
|
|
\parbox{\textwidth}{\raisebox{0pt}{Figure}\hfil\raisebox{0pt}{Page} %
|
168 |
|
|
\raisebox{20pt}{\rule[10pt]{\textwidth}{0.5mm}} }}
|
169 |
|
|
|
170 |
|
|
\def \@oddfoot{\rm
|
171 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspeclofn}}
|
172 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
173 |
|
|
|
174 |
|
|
\def\ps@gqtekspeclot{\let\@mkboth\@gobbletwo
|
175 |
|
|
\def \@oddhead{}
|
176 |
|
|
\def \@oddfoot{\rm
|
177 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspeclotn}}
|
178 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
179 |
|
|
\def\ps@gqtekspeclotn{\let\@mkboth\@gobbletwo
|
180 |
|
|
\def \@oddhead{\rm
|
181 |
|
|
\parbox{\textwidth}{\raisebox{0pt}{Table}\hfil\raisebox{0pt}{Page} %
|
182 |
|
|
\raisebox{20pt}{\rule[10pt]{\textwidth}{0.5mm}} }}
|
183 |
|
|
|
184 |
|
|
\def \@oddfoot{\rm
|
185 |
|
|
\hfil\raisebox{-9pt}{\thepage}\hfil\thispagestyle{gqtekspeclotn}}
|
186 |
|
|
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
187 |
|
|
|
188 |
|
|
\def\ps@gqtekspecplain{\let\@mkboth\@gobbletwo
|
189 |
11 |
dgisselq |
\def \@oddhead{\rput(0,-2pt){\psline(0,0)(\textwidth,0)}\rm \hbox to 1in{\includegraphics[height=0.8\headheight]{GT.eps} Gisselquist Technology, LLC}\hfil\hbox{\@title}\hfil\hbox to 1in{\hfil\headerdate\@date}}
|
190 |
|
|
\def \@oddfoot{\rput(0,9pt){\psline(0,0)(\textwidth,0)}\rm \hbox to 1in{www.opencores.com\hfil}\hfil\hbox{\r@vision}\hfil\hbox to 1in{\hfil{\thepage}}}
|
191 |
10 |
dgisselq |
\let \@evenhead\@oddhead \let \@evenfoot\@oddfoot}
|
192 |
|
|
|
193 |
|
|
% \def\author#1{\def\auth@r{#1}}
|
194 |
|
|
% \def\title#1{\def\ti@tle{#1}}
|
195 |
|
|
|
196 |
|
|
\def\logo{\begin{pspicture}(0,0)(5.67in,0.75in)
|
197 |
|
|
\rput[lb](0.05in,0.10in){\includegraphics[height=0.75in]{GT.eps}}
|
198 |
|
|
\rput[lb](1.15in,0.05in){\scalebox{1.8}{\parbox{2.0in}{Gisselquist\\Technology, LLC}}}
|
199 |
|
|
\end{pspicture}}
|
200 |
|
|
% TITLEPAGE
|
201 |
|
|
%
|
202 |
|
|
\def\titlepage{\setcounter{page}{1}
|
203 |
|
|
\typeout{^^JTitle Page.}
|
204 |
|
|
\thispagestyle{empty}
|
205 |
|
|
\leftline{\rput(0,0){\psline(0,0)(\textwidth,0)}\hfill}
|
206 |
|
|
\vskip 2\baselineskip
|
207 |
|
|
\logo\hfil % Original is 3.91 in x 1.26 in, let's match V thus
|
208 |
11 |
dgisselq |
\vskip 2\baselineskip
|
209 |
|
|
\vspace*{10pt}\vfil
|
210 |
10 |
dgisselq |
\begin{minipage}{\textwidth}\raggedleft
|
211 |
|
|
\ifproject{\scalebox{1.2}{\Huge\bfseries\MakeUppercase\@project}} \\\fi
|
212 |
|
|
\vspace*{15pt}
|
213 |
|
|
\scalebox{1.2}{\Huge\bfseries\MakeUppercase\@title} \\
|
214 |
11 |
dgisselq |
\vskip 10\baselineskip
|
215 |
|
|
\Large \@author \\
|
216 |
|
|
\ifemail{\Large \@email}\\\fi
|
217 |
|
|
\vskip 6\baselineskip
|
218 |
|
|
\Large \usdate\@date \\
|
219 |
10 |
dgisselq |
\end{minipage}
|
220 |
|
|
% \baselineskip 22.5pt\large\rm\MakeUppercase\ti@tle
|
221 |
|
|
\vspace*{30pt}
|
222 |
|
|
\vfil
|
223 |
|
|
\newpage\baselineskip=\normalbaselineskip}
|
224 |
|
|
|
225 |
|
|
\newenvironment{license}{\clearpage\typeout{^^JLicense Page.}\ \vfill\noindent}%
|
226 |
|
|
{\vfill\newpage}
|
227 |
|
|
% ****************************************
|
228 |
|
|
% * CHAPTER DEFINITIONS *
|
229 |
|
|
% ****************************************
|
230 |
|
|
%
|
231 |
|
|
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
|
232 |
|
|
\thispagestyle{gqtekspecplain}%
|
233 |
|
|
\global\@topnum\z@
|
234 |
|
|
\@afterindentfalse
|
235 |
|
|
\secdef\@chapter\@schapter}
|
236 |
|
|
\renewcommand\@makechapterhead[1]{%
|
237 |
|
|
\hbox to \textwidth{\hfil\scalebox{1.8}{\Huge\bfseries \thechapter.}}\vskip 10\p@
|
238 |
|
|
\hbox to \textwidth{\rput(0,0){\psline[linewidth=0.04in](0,0)(\textwidth,0)}}\vskip \p@
|
239 |
|
|
\hbox to \textwidth{\rput(0,0){\psline[linewidth=0.04in](0,0)(\textwidth,0)}}\vskip 10\p@
|
240 |
|
|
\hbox to \textwidth{\hfill\scalebox{1.8}{\Huge\bfseries #1}}%
|
241 |
|
|
\par\nobreak\vskip 40\p@}
|
242 |
|
|
\renewcommand\@makeschapterhead[1]{%
|
243 |
|
|
\hbox to \textwidth{\hfill\scalebox{1.8}{\Huge\bfseries #1}}%
|
244 |
|
|
\par\nobreak\vskip 40\p@}
|
245 |
|
|
% ****************************************
|
246 |
|
|
% * INITIALIZATION *
|
247 |
|
|
% ****************************************
|
248 |
|
|
%
|
249 |
|
|
% Default initializations
|
250 |
|
|
|
251 |
|
|
\ps@gqtekspecplain % 'gqtekspecplain' page style with lowered page nos.
|
252 |
|
|
\onecolumn % Single-column.
|
253 |
|
|
\pagenumbering{roman} % the first chapter will change pagenumbering
|
254 |
|
|
% to arabic
|
255 |
|
|
\setcounter{page}{1} % in case a titlepage is not requested
|
256 |
|
|
% otherwise titlepage sets page to 1 since the
|
257 |
|
|
% flyleaf is not counted as a page
|
258 |
|
|
\widowpenalty 10000 % completely discourage widow lines
|
259 |
|
|
\clubpenalty 10000 % completely discourage club (orphan) lines
|
260 |
|
|
\raggedbottom % don't force alignment of bottom of pages
|
261 |
|
|
|
262 |
|
|
\date{\today}
|
263 |
|
|
\newif\ifproject\projectfalse
|
264 |
|
|
\def\project#1{\projecttrue\gdef\@project{#1}}
|
265 |
|
|
\def\@project{}
|
266 |
|
|
\newif\ifemail\emailfalse
|
267 |
|
|
\def\email#1{\emailtrue\gdef\@email{#1}}
|
268 |
|
|
\def\@email{}
|
269 |
|
|
\def\revision#1{\gdef\r@vision{#1}}
|
270 |
|
|
\def\r@vision{}
|
271 |
|
|
\def\at{\makeatletter @\makeatother}
|
272 |
|
|
\newdateformat{theyear}{\THEYEAR}
|
273 |
|
|
\newenvironment{revisionhistory}{\clearpage\typeout{^^JRevision History.}%
|
274 |
12 |
dgisselq |
\hbox to \textwidth{\hfil\scalebox{1.8}{\large\bfseries Revision History}}\vskip 10\p@\noindent%
|
275 |
|
|
\begin{tabular}{|p{0.5in}|p{1in}|p{1in}|p{2.875in}|}\hline
|
276 |
25 |
dgisselq |
\rowcolor[gray]{0.8} Rev. & Date & Author & Description\\\hline\hline}
|
277 |
10 |
dgisselq |
{\end{tabular}\clearpage}
|
278 |
12 |
dgisselq |
\newenvironment{portlist}{\begin{tabular}{|p{0.75in}|p{0.5in}|p{0.75in}|p{3.375in}|}\hline
|
279 |
25 |
dgisselq |
\rowcolor[gray]{0.85} Port & Width & Direction & Description \\\hline\hline}%
|
280 |
10 |
dgisselq |
{\end{tabular}}
|
281 |
|
|
\newenvironment{preface}{\chapter*{Preface}}{\par\bigskip\bigskip\leftline{\hfill\@author}}
|
282 |
|
|
\endinput
|