Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 280 lines (244 sloc) 6.558 kb
6610af8e » nniclausse
2009-03-05 add missing files for rebuilding pdf
1 %% $Id :$
2
3 \NeedsTeXFormat{LaTeX2e}
4 \ProvidesClass{TSUNG-en}[2002/12/02 0.1]
5
6 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
7 \ProcessOptions
8 \LoadClass[10pt]{article}
9
10 \RequirePackage[colorlinks=false]{hyperref}
11 \RequirePackage{url}
12 \RequirePackage{xspace}
13
14 \RequirePackage[T1]{fontenc}
15 %\RequirePackage[cyr]{aeguill}
16 %\RequirePackage{ae}
17 \RequirePackage{a4wide}
18 \RequirePackage{fancyhdr}
19 \RequirePackage{lastpage}
20 \RequirePackage{color}
21 \RequirePackage{colortbl} % Cf. _LaTeX par la pratique_, p. 300...
22 \RequirePackage{nopageno}
23 % \RequirePackage[latin1]{inputenc}
24 % \RequirePackage{ucs}
25 \RequirePackage[utf8]{inputenc}
26 %\RequirePackage[francais,english]{babel}
27 \RequirePackage[english]{babel}
28 \RequirePackage{tabularx}
29 \RequirePackage{hhline}
30 \RequirePackage{textcomp}
31 \RequirePackage{times}
32 %\RequirePackage[english]{varioref} % références en français
33 \RequirePackage[debugshow,final]{graphics}
34
35 \RequirePackage{fancyvrb} % paquetage verbatim évolué
36 \fvset{fontsize=\scriptsize,numbers=left,frame=single}
37
38 \newcommand{\GreyShade}{0.95}
39 \newcommand{\GrayShade}{\GreyShade}
40
41 \newif\ifpdf
42 \ifx\pdfoutput\undefined
43 \pdffalse % we are not running PDFLaTeX
44 \else
45 \pdfoutput=1 % we are running PDFLaTeX
46 \pdftrue
47 \fi
48
49 \ifpdf
50 \RequirePackage[pdftex]{graphicx}
51 \pdfcompresslevel=9
52 \DeclareGraphicsExtensions{.png,.jpg,.pdf,.mps}
53 \else
54 \RequirePackage{graphicx}
55 \DeclareGraphicsExtensions{.ps,.eps}
56 \fi
57
58 %%
59 \setlength{\voffset}{-.4in}
60 %\setlength{\headheight}{14.5mm}
61 \setlength{\headheight}{50pt}
62 \setlength{\textheight}{215mm}
63
64 \definecolor{idxgreen}{rgb}{0.22,0.50,0.18}%#39812F
65 %% Headers
66
67
68 %% Headers
69 \pagestyle{fancy}
70 \renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}}
71 \renewcommand{\subsectionmark}[1]{\markright{#1}}
72 \rhead{\emph{\leftmark\\\rightmark}}
73 \lhead{\logo{2}}
74 \rfoot{\small{Page \thepage\//\pageref{LastPage}}}
75 %\rhead{\leftmark}
76 \cfoot{\scriptsize {Tsung Users manual: \url{http://tsung.erlang-projects.org}}}
77 \renewcommand{\footrulewidth}{0.2pt}
78 \lfoot{}
79
80 %% same thing without subsection
81 \fancypagestyle{fancytoc}{%
82 \fancyhf{}
83 \rhead{\emph{\leftmark}}
84 \lhead{\logo{2}\\%
85 \it{\textcolor{idxgreen}{Tsung} manual}}
86 \cfoot{\scriptsize {Tsung Users manual: \url{http://tsung.erlang-projects.org}}}
87 }
88
89 %% change fancy headers for toc:
90 \let\myTOC\tableofcontents
91 \renewcommand{\tableofcontents}{%
92 \begingroup
93 \let\ps@plain\ps@empty
94 \pagestyle{fancytoc}
95 \myTOC
96 \clearpage
97 \endgroup%
98 }
99
100 %%
101 %% Build title page
102 \renewcommand{\@maketitle}{%
103 % \newpage
104 % \null
105 %FIXME : Need to define a minipage to be sure changing page after maketitle
106 %\begin{minipage}[t][0.95\textheight][t]{\textwidth}
107 % \usebox{\addressbox}%
108 % \vspace*{1cm}
109 \begin{flushright}%
110 \fontsize{14}{18}\selectfont%
111 \usebox{\titlebox} \\%
112 % \usebox{\numberbox}\\
113 % \usebox{\datebox}
114 % \usebox{\authorbox}\\[2ex]%
115 \end{flushright}%
116
117 \vspace*{\fill}
118 \begin{tabular}{p{20mm} r}
119 & \includegraphics[scale=0.7]{logo_tsung} \\
120 \end{tabular}
121 \vspace*{\fill}
122
123 \CartoucheGeneral
124 \thispagestyle{plain}
125 % \newpage
126
127
128 % \begin{flushleft}%
129 % \usebox{\doccopyrightbox}\\%
130 % \end{flushleft}%
131 % \vspace{2cm}
132 % \begin{flushleft}%
133 % {\huge\textbf{Written by:}}
134 % \begin{minipage}[t]{\textwidth}%
135 % \usebox{\authorbox}\\[2ex]%
136 % \end{minipage}
137 % \end{flushleft}%
138 % \vspace{2cm}
139 % \par
140
141 %\end{minipage}
142 }
143
144 \newcommand{\CartoucheGeneral}{%
145 \begin{center}
146 \newcolumntype{Y}{>{\columncolor[gray]{\GrayShade}}r}
147 \begin{tabular}{|Yl|}
148 \hline
149 % Version: & \verb@version \DocumentVersion{} \\
150 Version: & \idxversion \\
151 References: & \idxref \\
152 % Date de Publication: & \idxreldate{} \\
153 Printing Date: & \today \\
154 \hline
155 \end{tabular}
156 \end{center}
157 }
158
159 \newcommand{\logo}[1]{%
160 \includegraphics[width=30mm]{logo_tsung}
161 }
162
163
164 % Boxes for the title
165 \newsavebox{\authorbox}
166 \savebox{\authorbox}{}
167 \newsavebox{\titlebox}
168 \newsavebox{\numberbox}
169 \newsavebox{\datebox}
170 \newsavebox{\addressbox}
171 \newsavebox{\doccopyrightbox}
172
173
174 \savebox{\addressbox}{%
175 \begin{minipage}[t]{\textwidth}%
176 \logo{3} \hfill \parbox[c]{5cm}{
177 \flushright%
178 OLDSTUFF
179 }
180
181 \end{minipage}
182 }
183 %
184
185 \newcommand{\addauthor}[3]{%
186 \savebox{\authorbox}{%
187 \parbox[t]{\textwidth}{%
188 \flushleft%
189 \usebox{\authorbox}\\%
190 {\fontfamily{\familydefault}\fontsize{10}{11}%
191 \fontseries{m}\fontshape{n}\selectfont%
192 #1 }
193 {\fontfamily{\familydefault}\fontsize{12}{14}%
194 \fontshape{sc}\selectfont%
195 #2 }%
196 \fontsize{12}{12}\selectfont%
197 {\fontfamily{\familydefault}\fontsize{10}{11}%
198 \fontseries{m}\fontshape{n}\selectfont%
199 (\noexpand\url{#3}})%
200 }%
201 }
202 }
203 \newcommand{\Abstract}[1]{%
204 \begin{flushleft}
205 {\huge{\textbf{Abstract:}}}\\
206 \end{flushleft}
207 \begin{center}
208 \vspace{5mm}
209 {\em
210 \begin{tabular}{|p{1mm}p{120mm}p{1mm}|}
211 \hline
212 & & \\
213 & #1 & \\
214 & & \\
215 \hline
216 \end{tabular}
217 }
218 \end{center}
219 }
220
221 \newcommand{\doctitle}[1]{%
222 \savebox{\titlebox}{%
223 \parbox[b]{\textwidth}%
224 % {\begin{flushright}%
225 % {\Huge \textbf{#1}\par}%
226 % \Huge{\vspace{2ex}}%
227 % \end{flushright}%
228 % }%
229 {\flushright%
230 \rule[0.5ex]{\textwidth}{0.5mm}\\%
231 \vspace{5mm}%
232 % \fontfamily{\familydefault}\fontsize{18}{22}%
233 \fontfamily{\familydefault}\Huge%
234 \fontseries{b}\fontshape{n}\selectfont%
235 #1 \\%
236 \rule[0.5ex]{\textwidth}{0.5mm}%
237 }%
238 }%
239 }
240 \@onlypreamble{\doctitle}
241
242 \newcommand{\docref}[1]{%
243 \newcommand{\idxref}{\texttt{#1}}
244 }
245 \newcommand{\docversion}[1]{%
246 \newcommand{\idxversion}{#1}
247 \savebox{\numberbox}{
248 \fontfamily{\familydefault}\fontsize{14}{18}%
249 \fontseries{b}\fontshape{n}\selectfont%
250 Version: #1}%
251 }
252
253 \newcommand{\docreldate}[1]{%
254 \newcommand{\idxreldate}{#1}
255 \savebox{\datebox}{
256 \fontfamily{\familydefault}\fontsize{14}{18}%
257 \fontseries{m}\fontshape{n}\selectfont%
258 #1}%
259 }
260
261 \newcommand{\doccopyright}[1]{%
262 \savebox{\doccopyrightbox}{%
263 {\fontfamily{\familydefault}\fontsize{8}{10}%
264 \fontseries{m}\fontshape{n}\selectfont%
265 Copyright: {\copyright} Nicolas Niclausse}%
266 }%
267 }
268
269
270 \renewcommand{\abstract}{
271 \section*{Résumé}%
272 }
273
274 \newcommand{\docobjectifs}{%
275 \section{Objectifs}
276 }
277
278 \newcommand{\docperimetre}{%
279 \section{perimeter}
280 }
281
282
283
284
Something went wrong with that request. Please try again.