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

Subversion Repositories present

[/] [present/] [trunk/] [Decode/] [doc/] [src/] [gajewski.cls] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 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*{\docSubtitle}[1]{\def\@docSubtitle{#1}}
110
\docSubtitle{}
111
% current revision
112
\newcommand*{\docRevision}[1]{\def\@docRevision{#1}}
113
\docRevision{0.1}
114
% Status Draft/revision/ final
115
\newcommand*{\docStatus}[1]{\def\@docStatus{#1}}
116
\docStatus{Draft}
117
% Who will receive the doc -- differnece to customers???
118
\newcommand*{\recipientList}[1]{\def\@recipientList{#1}}
119
% list of keywords
120
\newcommand*{\keywords}[1]{\def\@keywords{#1}}
121
\keywords{}
122
% list of revisions
123
\newcommand*{\revisionList}[1]{\def\@revisionList{#1}}
124
\revisionList{}
125
 
126
% ************************ Header/footer ************************
127
\def\@secindent{8mm}
128
 
129
\pagestyle{fancy}
130
\renewcommand{\headrulewidth}{0.4pt}
131
\renewcommand{\footrulewidth}{0.4pt}
132
 
133
\fancyhead[O,E]{
134
 \leftskip-\@secindent
135
 \begin{tabularx}{185mm}{p{98mm}   p{45mm}  p{25mm}}
136
 \hskip2mm \sc{ \@docTitle } &    & \hskip2mm \thepage / \pageref{LastPage}
137
 \end{tabularx}
138
}
139
 
140
 \fancyfoot{}
141
 \fancyfoot[ER,OL]{
142
   \tiny{All rights reserved - \copyright \number\year \ \@authorName}
143
 }
144
 \fancyfoot[EL,OR]{
145
   \tiny{\@docID \  (v. \@docRevision) - \@\shorttoday}
146
 }
147
 
148
\fancypagestyle{plain}{
149
   \renewcommand{\headrulewidth}{0.0pt}
150
   \renewcommand{\footrulewidth}{0.0pt}
151
   \fancyhead{}
152
   \fancyfoot[EL,OL]{}
153
   \renewcommand{\headrulewidth}{0pt}
154
 }
155
 
156
% ************************ Revision table *********************
157
\newcommand{ \revisionTable } {
158
    \section*{Change History}
159
        \begin{tabularx}{\textwidth} {| p{11mm} | p{14mm} | p{23mm} | X | p{32mm} |}
160
        \hline
161
        Rev. & Chapter & Date & Description & Reviewer \\
162
        \hline
163
        \@revisionList
164
        \hline
165
    \end{tabularx}
166
}
167
 
168
% ************************ Cover table ************************
169
\def\@maketitle{
170
         \vglue40mm
171
 %% Title
172
      \begin{minipage}{0.65\linewidth}
173
        \begin{flushleft}
174
           \Huge{\textbf{\sc{\@docTitle}}} \\
175
           \LARGE{documentation}
176
       \end{flushleft}
177
       \end{minipage}
178
%% fancy line
179
        \vskip4pt
180
        \leftskip-17mm
181
        \vspace{3pt}
182
%% addes5mm
183
        \vglue95mm
184
        \begin{tabularx}{\textwidth}{p{55mm} X p{65mm}}
185
      \begin{minipage}{60mm}
186
                \includegraphics[width=0.3\textwidth]{logo.png}
187
      \end{minipage} &  &
188
      \begin{minipage}{62mm}
189
                \Large{\@authorName} \\
190
                \large{\@authorAddress}
191
      \end{minipage} \\
192
        & & \\
193
      \large{\@authorURL} & & \large{\@authorEmail}  \\
194
        \end{tabularx}
195
        \vspace{2ex}
196
}  %% End of maketitle

powered by: WebSVN 2.1.0

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