added comment
[ana-net.git] / doc / misc / 1 / main.sty
blobbc54855bfee27200a3819a6990432043eab17042
2 % ---------------------------------------------------------------
4 % $Id: latex8.sty,v 1.2 1995/09/15 15:31:13 ienne Exp $
5 %
6 % by Paolo.Ienne@di.epfl.ch
8 % ---------------------------------------------------------------
10 % no guarantee is given that the format corresponds perfectly to
11 % IEEE 8.5" x 11" Proceedings, but most features should be ok.
13 % ---------------------------------------------------------------
14 % with LaTeX2e:
15 % =============
17 % use as
18 % \documentclass[times,10pt,twocolumn]{article}
19 % \usepackage{latex8}
20 % \usepackage{times}
22 % ---------------------------------------------------------------
24 % with LaTeX 2.09:
25 % ================
27 % use as
28 % \documentstyle[times,art10,twocolumn,latex8]{article}
30 % ---------------------------------------------------------------
31 % with both versions:
32 % ===================
34 % specify \pagestyle{empty} to omit page numbers in the final
35 % version
37 % specify references as
38 % \bibliographystyle{latex8}
39 % \bibliography{...your files...}
41 % use Section{} and SubSection{} instead of standard section{}
42 % and subsection{} to obtain headings in the form
43 % "1.3. My heading"
45 % ---------------------------------------------------------------
47 \typeout{IEEE 8.5 x 11-Inch Proceedings Style `latex8.sty'.}
49 % ten point helvetica bold required for captions
50 % in some sites the name of the helvetica bold font may differ,
51 % change the name here:
52 \font\tenhv = phvb at 10pt
53 %\font\tenhv = phvb7t at 10pt
55 % eleven point times bold required for second-order headings
56 % \font\elvbf = cmbx10 scaled 1100
57 \font\elvbf = ptmb scaled 1100
59 % set dimensions of columns, gap between columns, and paragraph indent
60 \setlength{\textheight}{8.875in}
61 \setlength{\textwidth}{6.875in}
62 \setlength{\columnsep}{0.3125in}
63 \setlength{\topmargin}{0in}
64 \setlength{\headheight}{0in}
65 \setlength{\headsep}{0in}
66 \setlength{\parindent}{1pc}
67 \setlength{\oddsidemargin}{-.304in}
68 \setlength{\evensidemargin}{-.304in}
70 % memento from size10.clo
71 % \normalsize{\@setfontsize\normalsize\@xpt\@xiipt}
72 % \small{\@setfontsize\small\@ixpt{11}}
73 % \footnotesize{\@setfontsize\footnotesize\@viiipt{9.5}}
74 % \scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
75 % \tiny{\@setfontsize\tiny\@vpt\@vipt}
76 % \large{\@setfontsize\large\@xiipt{14}}
77 % \Large{\@setfontsize\Large\@xivpt{18}}
78 % \LARGE{\@setfontsize\LARGE\@xviipt{22}}
79 % \huge{\@setfontsize\huge\@xxpt{25}}
80 % \Huge{\@setfontsize\Huge\@xxvpt{30}}
82 \def\@maketitle
84 \newpage
85 \null
86 \vskip .375in
87 \begin{center}
88 {\Large \bf \@title \par}
89 % additional two empty lines at the end of the title
90 \vspace*{24pt}
92 \large
93 \lineskip .5em
94 \begin{tabular}[t]{c}
95 \@author
96 \end{tabular}
97 \par
99 % additional small space at the end of the author name
100 \vskip .5em
102 \large
103 \begin{tabular}[t]{c}
104 \@affiliation
105 \end{tabular}
106 \par
107 \ifx \@empty \@email
108 \else
109 \begin{tabular}{r@{~}l}
110 E-mail: & {\tt \@email}
111 \end{tabular}
112 \par
115 % additional empty line at the end of the title block
116 \vspace*{12pt}
117 \end{center}
120 \def\abstract
122 \centerline{\large\bf Abstract}%
123 \vspace*{12pt}%
124 \it%
127 \def\endabstract
129 % additional empty line at the end of the abstract
130 \vspace*{12pt}
133 \def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}
135 \def\email#1{\gdef\@email{#1}}
136 \gdef\@email{}
138 \newlength{\@ctmp}
139 \newlength{\@figindent}
140 \setlength{\@figindent}{1pc}
142 \long\def\@makecaption#1#2{
143 \vskip 10pt
144 \setbox\@tempboxa\hbox{\tenhv\noindent #1.~#2}
145 \setlength{\@ctmp}{\hsize}
146 \addtolength{\@ctmp}{-\@figindent}\addtolength{\@ctmp}{-\@figindent}
147 % IF longer than one indented paragraph line
148 \ifdim \wd\@tempboxa >\@ctmp
149 % THEN set as an indented paragraph
150 \begin{list}{}{\leftmargin\@figindent \rightmargin\leftmargin}
151 \item[]\tenhv #1.~#2\par
152 \end{list}
153 \else
154 % ELSE center
155 \hbox to\hsize{\hfil\box\@tempboxa\hfil}
156 \fi}
158 % correct heading spacing and type
159 \def\section{\@startsection {section}{1}{\z@}
160 {14pt plus 2pt minus 2pt}{14pt plus 2pt minus 2pt} {\large\bf}}
161 \def\subsection{\@startsection {subsection}{2}{\z@}
162 {13pt plus 2pt minus 2pt}{13pt plus 2pt minus 2pt} {\elvbf}}
164 % add the period after section numbers
165 \newcommand{\Section}[1]{\section{\hskip -1em.~#1}}
166 \newcommand{\SubSection}[1]{\subsection{\hskip -1em.~#1}}
167 \newcommand{\SubSubSection}[1]{\subsubsection{\hskip -1em.~#1}}
169 % end of file latex8.sty
170 % ---------------------------------------------------------------