OpenCores
URL https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [doc/] [src/] [gqtekspec.cls] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.