]> AND Private Git Repository - Sensornets15.git/blob - ijuc.cls
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Files for Adhoc and Sensor Wireless Networks added
[Sensornets15.git] / ijuc.cls
1 \NeedsTeXFormat{LaTeX2e}\r
2 \ProvidesClass{ijuc}[10/12/2004 v0.2 IJUC]\r
3 \LoadClass[twoside]{article}\r
4 \r
5 \setlength{\textwidth}{108mm}\r
6 \setlength{\textheight}{180mm}\r
7 \oddsidemargin 30mm\r
8 \setlength{\parindent}{4.25mm}\r
9 \setlength{\parskip}{0mm}\r
10 \renewcommand{\baselinestretch}{1.1}  % approx 13pt leading\r
11 \setcounter{secnumdepth}{2} % number first and second level headings\r
12 \bibliographystyle{ijuc}\r
13 \r
14 % Times font\r
15 % These three commands make up the entire times.sty package.\r
16 \renewcommand{\sfdefault}{phv}\r
17 \renewcommand{\rmdefault}{ptm}\r
18 \renewcommand{\ttdefault}{pcr}\r
19 % enable Times now \r
20 \normalfont\selectfont\r
21 \r
22 \r
23 %===================\r
24 %  title section  (adapted from LLNCS)\r
25 %===================\r
26 \r
27 \newcounter{@inst}\r
28 %\newcounter{@auth}\r
29 \r
30 \def\institute#1{\gdef\@institute{#1}}\r
31 \def\email#1{\unskip\footnote{email: {\tt#1}}{~}}\r
32 \def\inst#1{\unskip$^{#1}$}\r
33 \r
34 \def\institutename{\par\r
35  \begingroup\r
36  \parskip=\z@\r
37  \parindent=\z@\r
38  \setcounter{@inst}{1}%\r
39  \def\and{\par\stepcounter{@inst}%\r
40  \noindent$^{\the@inst}$\enspace\ignorespaces}%\r
41  \setbox0=\vbox{\def\thanks##1{}\@institute}%\r
42  \ifnum\c@@inst=1\relax\r
43    \gdef\fnnstart{0}%\r
44  \else\r
45    \xdef\fnnstart{\c@@inst}%\r
46    \setcounter{@inst}{1}%\r
47    \noindent$^{\the@inst}$\enspace\r
48  \fi\r
49  \ignorespaces\r
50  \@institute\par\r
51  \endgroup}\r
52 \r
53 \r
54 \def\received{}\r
55 \r
56 \def\@maketitle{%\r
57   \def\and{\unskip, }\r
58   \newpage\r
59   \begin{center}%\r
60     \phantom{\rule{0pt}{10mm}}\r
61     {\Large \bfseries\boldmath\@title \par}\vskip 8mm\r
62     \textsc{\@author}\vskip 1mm\r
63     {\small\textit{\institutename}\r
64       \vskip 3mm\r
65       \received\vskip13.5mm}\r
66   \end{center}%\r
67 }\r
68 \r
69 \renewenvironment{abstract}{%\r
70   \renewcommand{\baselinestretch}{1.0}\normalsize\r
71   \begin{quote}\r
72 }{\end{quote}}\r
73 \r
74 \def\keywords#1{%\r
75   \renewcommand{\baselinestretch}{1.0}\small\r
76   \vskip 2mm\r
77   \begin{quote}\textit{Key words:} #1\end{quote}\r
78   \vskip 2mm\r
79   \renewcommand{\baselinestretch}{1.1}\normalsize\r
80 }\r
81 \r
82 %===================\r
83 %  figure/table captions: small font, normal leading, 5mm before, 10mm after\r
84 %     FIGURE/TABLE nn\r
85 %     caption text\r
86 %===================\r
87 \r
88 \def\figurename{FIGURE}\r
89 \def\tablename{TABLE}\r
90 \def\fnum@figure{\figurename~\thefigure}\r
91 \def\fnum@table{\tablename~\thetable}\r
92 \r
93 \r
94 \long\def\@caption#1[#2]#3{\r
95   \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\r
96 }\r
97 \r
98 \long\def\@makecaption#1#2{%\r
99   \vskip 5mm\r
100   \renewcommand{\baselinestretch}{1.0}\small\r
101   {#1}\newline #2\par\r
102   \renewcommand{\baselinestretch}{1.1}\normalsize\r
103   \vskip 6mm\r
104 }\r
105 \r
106 %===================\r
107 %  figure/table captions: small font, normal leading, 5mm before, 10mm after\r
108 %     FIGURE/TABLE nn\r
109 %     caption text\r
110 %===================\r
111 \r
112 \def\@fnsymbol#1{%\r
113   \ensuremath{%\r
114     \ifcase#1\r
115       \or \star\r
116       \or \dagger\r
117       \or \ddagger\r
118       \or \P\r
119       \or \S\r
120       \or ||\r
121       \or \#\r
122       \or \star\star\r
123       \or \dagger\dagger\r
124       \or \ddagger\ddagger\r
125       \or \P\P\r
126       \or \S\S\r
127       \or ||||\r
128       \or \#\#\r
129       \else\@ctrerr\fi\r
130   }\r
131 }\r
132 \r
133 \renewcommand\thefootnote{\@fnsymbol\c@footnote}\r
134 \r
135 %===================\r
136 %  section: 2 lines before, one after, bold, normal size, all caps\r
137 %  subsection: 1 line before, none after, bold, normal size\r
138 %  subsection: 1 line before, none after, italic, normal size\r
139 %===================\r
140 \r
141 \renewcommand\section{\@startsection{section}{1}{\z@}%\r
142                        {-20\p@ \@plus -4\p@ \@minus -4\p@}%\r
143                        {10\p@ \@plus 4\p@ \@minus 4\p@}%\r
144                        {\normalfont\bfseries\boldmath\MakeUppercase}}\r
145 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%\r
146                        {-10\p@ \@plus -4\p@ \@minus -4\p@}%\r
147                        {1\p@ \@plus 1\p@ \@minus 1\p@}%\r
148                        {\normalfont\normalsize\bfseries\boldmath}}\r
149 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%\r
150                        {-10\p@ \@plus -4\p@ \@minus -4\p@}%\r
151                        {1pt \@plus 1\p@ \@minus 1\p@}%\r
152                        {\normalfont\normalsize\itshape}}\r
153 \r
154 \r
155 %===================\r
156 %  bibliography\r
157 %===================\r
158 \r
159 \renewenvironment{thebibliography}[1]{%\r
160   \section*{References}\r
161   \renewcommand{\baselinestretch}{1.0}\r
162   \footnotesize\r
163   \list{%\r
164     \@biblabel{\@arabic\c@enumiv}}%\r
165     {\settowidth\labelwidth{\@biblabel{#1}}%\r
166       \leftmargin\labelwidth\r
167       \advance\leftmargin\labelsep\r
168       \usecounter{enumiv}%\r
169       \let\p@enumiv\@empty\r
170       \renewcommand\theenumiv{\@arabic\c@enumiv}\r
171   }%\r
172 }%\r
173 { \endlist\r
174   \renewcommand{\baselinestretch}{1.1}\r
175   \normalsize\r
176 }\r
177 \r
178 \r
179 \r
180 \r