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

Subversion Repositories present

[/] [present/] [trunk/] [PureTesting/] [doc/] [src/] [gajewski.cls] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 gajos
%partly based on ruschidoc.cls file from Avalon AES ECB-Core project
2
\ProvidesClass{gajewski}
3
\LoadClass[11pt,a4paper,twoside]{article}
4
\RequirePackage[intlimits,sumlimits]{amsmath}
5
\RequirePackage{fancyhdr}
6
\RequirePackage[T1]{fontenc}
7
\RequirePackage[latin1]{inputenc}
8
\RequirePackage{amsmath}
9
\RequirePackage{helvet}
10
\RequirePackage{lastpage}
11
\RequirePackage{tabularx}
12
\RequirePackage{textcomp}
13
\RequirePackage{graphicx}
14
\RequirePackage{graphics}
15
\RequirePackage[bookmarks, plainpages={false}]{hyperref}
16
\RequirePackage{capt-of}
17
\graphicspath{{img/}}
18
 
19
% ************************ Page layout ************************
20
\topmargin              -20mm
21
\headheight                     30mm
22
\headsep                6mm
23
\footskip                       11mm
24
\oddsidemargin  2mm
25
\evensidemargin         2mm
26
\marginparsep           145mm
27
\marginparwidth         8mm
28
\textwidth                      162mm
29
\textheight                     225mm
30
\parindent                      0mm
31
\parskip                                3mm
32
 
33
% Section and subsection are de-idented (text body is idented)
34
\def\@secindent{8mm}
35
% how wide is the header
36
\def\@htwidth{172mm}
37
 
38
%% Change the font
39
\renewcommand{\familydefault}{\sfdefault}
40
%% Make Registered Trademark symbol raised
41
\newcommand{\tm}{\textsuperscript{\texttrademark}}
42
\newcommand{\rtm}{\textsuperscript{\textregistered}}
43
\renewcommand{\copyright}{\textcopyright}
44
 
45
\renewcommand{\paragraph}[1]{\newpar{#1}\ \vspace{0.3cm}\\}
46
 
47
\renewcommand{\section}{\@startsection
48
{section}%                   % the name
49
{1}%                         % the level
50
{-\@secindent}%              % the indent
51
{-18pt}%
52
{6pt}%          % the after skip
53
{\huge\bf}}     % the style
54
 
55
\renewcommand{\subsection}{\@startsection
56
{subsection}%                   % the name
57
{1}%                         % the level
58
{-\@secindent}%                       % the indent
59
{-6pt}%
60
{6pt}%          % the after skip
61
{\large\bf}} % the style
62
 
63
\renewcommand{\subsubsection}{\@startsection
64
{subsubsection}%                   % the name
65
{1}%                         % the level
66
{-\@secindent}%                       % the indent
67
{-6pt}%
68
{6pt}%          % the after skip
69
{\bf}} % the style
70
 
71
% ************************ Date format ************************
72
\def\shorttoday{\ifcase\month\or
73
 Jan\or Feb\or Mar\or Apr\or May\or Jun\or Jul\or Aug\or
74
 Sep\or Oct\or Nov\or Dec\fi~\number\day, \number\year}
75
 
76
\def\shorttoday{\number\day-\ifcase\month\or
77
 Jan\or Feb\or Mar\or Apr\or May\or Jun\or Jul\or Aug\or
78
 Sep\or Oct\or Nov\or Dec\fi-\number\year}
79
 
80
\newcommand{\paddedday}{\ifnum\number\day<10 0\number\day\else \number\day\fi}
81
\newcommand{\paddedmonth}{\ifnum\number\month<10 0\number\month\else \number\month\fi}
82
 
83
\def\shorttoday{\number\year/\paddedmonth/\paddedday}
84
 
85
% ************************ Document Variables ************************
86
% main author
87
\newcommand*{\authorName}[1]{\def\@authorName{#1}}
88
\authorName{}
89
% Additional Authors
90
\newcommand*{\authorAddress}[1]{\def\@authorAddress{#1}}
91
\authorAddress{}
92
\newcommand*{\authorURL}[1]{\def\@authorURL{#1}}
93
\authorURL{}
94
\newcommand*{\authorEmail}[1]{\def\@authorEmail{#1}}
95
\authorEmail{}
96
% When was the document written/submitted (not compiled)
97
\newcommand*{\docDate}[1]{\def\@docDate{#1}}
98
\docDate{}
99
% unique identifier
100
\newcommand*{\docID}[1]{\def\@docID{#1}}
101
\docID{}
102
% type of document
103
\newcommand*{\docType}[1]{\def\@docType{#1}}
104
\docType{Technical Note}
105
% Title of the document
106
\newcommand*{\docTitle}[1]{\def\@docTitle{#1}}
107
\docTitle{}
108
% Title of the document
109
\newcommand*{\docTitleShort}[1]{\def\@docTitleShort{#1}}
110
\docTitleShort{}
111
% Title of the document
112
\newcommand*{\docSubtitle}[1]{\def\@docSubtitle{#1}}
113
\docSubtitle{}
114
% current revision
115
\newcommand*{\docRevision}[1]{\def\@docRevision{#1}}
116
\docRevision{0.1}
117
% Status Draft/revision/ final
118
\newcommand*{\docStatus}[1]{\def\@docStatus{#1}}
119
\docStatus{Draft}
120
% Who will receive the doc -- differnece to customers???
121
\newcommand*{\recipientList}[1]{\def\@recipientList{#1}}
122
% list of keywords
123
\newcommand*{\keywords}[1]{\def\@keywords{#1}}
124
\keywords{}
125
% list of revisions
126
\newcommand*{\revisionList}[1]{\def\@revisionList{#1}}
127
\revisionList{}
128
 
129
% ************************ Header/footer ************************
130
\def\@secindent{8mm}
131
 
132
\pagestyle{fancy}
133
\renewcommand{\headrulewidth}{0.4pt}
134
\renewcommand{\footrulewidth}{0.4pt}
135
 
136
\fancyhead[O,E]{
137
 \leftskip-\@secindent
138
 \begin{tabularx}{185mm}{p{98mm}   p{45mm}  p{25mm}}
139
 \hskip2mm \sc{ \@docTitleShort } &    & \hskip2mm \thepage / \pageref{LastPage}
140
 \end{tabularx}
141
}
142
 
143
 \fancyfoot{}
144
 \fancyfoot[ER,OL]{
145
   \tiny{All rights reserved - \copyright \number\year \ \@authorName}
146
 }
147
 \fancyfoot[EL,OR]{
148
   \tiny{\@docID \  (v. \@docRevision) - \@\shorttoday}
149
 }
150
 
151
\fancypagestyle{plain}{
152
   \renewcommand{\headrulewidth}{0.0pt}
153
   \renewcommand{\footrulewidth}{0.0pt}
154
   \fancyhead{}
155
   \fancyfoot[EL,OL]{}
156
   \renewcommand{\headrulewidth}{0pt}
157
 }
158
 
159
% ************************ Revision table *********************
160
\newcommand{ \revisionTable } {
161
    \section*{Change History}
162
        \begin{tabularx}{\textwidth} {| p{11mm} | p{14mm} | p{23mm} | X | p{32mm} |}
163
        \hline
164
        Rev. & Chapter & Date & Description & Reviewer \\
165
        \hline
166
        \@revisionList
167
        \hline
168
    \end{tabularx}
169
}
170
 
171
% ************************ Cover table ************************
172
\def\@maketitle{
173
         \vglue40mm
174
 %% Title
175
      \begin{minipage}{0.65\linewidth}
176
        \begin{flushleft}
177
           \Huge{\textbf{\sc{\@docTitle}}} \\
178
           \LARGE{documentation}
179
       \end{flushleft}
180
       \end{minipage}
181
%% fancy line
182
        \vskip4pt
183
        \leftskip-17mm
184
        \vspace{3pt}
185
%% addes5mm
186
        \vglue95mm
187
        \begin{tabularx}{\textwidth}{p{55mm} X p{65mm}}
188
      \begin{minipage}{60mm}
189
                \includegraphics[width=0.3\textwidth]{logo.png}
190
      \end{minipage} &  &
191
      \begin{minipage}{62mm}
192
                \Large{\@authorName} \\
193
                \large{\@authorAddress}
194
      \end{minipage} \\
195
        & & \\
196
      \large{\@authorURL} & & \large{\@authorEmail}  \\
197
        \end{tabularx}
198
        \vspace{2ex}
199
}  %% End of maketitle

powered by: WebSVN 2.1.0

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