Mention nick and Matej Pfajfar's copyright in debian/copyright
[tor.git] / doc / latex8.sty
blob2028cee9c70e27fd2d44e7425c27d004d541db38
3 % ---------------------------------------------------------------
5 % $Id$
6 %
7 % by Paolo.Ienne@di.epfl.ch
9 % ---------------------------------------------------------------
11 % no guarantee is given that the format corresponds perfectly to
12 % IEEE 8.5" x 11" Proceedings, but most features should be ok.
14 % ---------------------------------------------------------------
15 % with LaTeX2e:
16 % =============
18 % use as
19 % \documentclass[times,10pt,twocolumn]{article}
20 % \usepackage{latex8}
21 % \usepackage{times}
23 % ---------------------------------------------------------------
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{\columnsep}{0.26in}
64 \setlength{\topmargin}{0in}
65 \setlength{\headheight}{0in}
66 \setlength{\headsep}{.5in}
67 \setlength{\parindent}{1pc}
68 \setlength{\oddsidemargin}{-.304in}
69 \setlength{\evensidemargin}{-.304in}
71 % memento from size10.clo
72 % \normalsize{\@setfontsize\normalsize\@xpt\@xiipt}
73 % \small{\@setfontsize\small\@ixpt{11}}
74 % \footnotesize{\@setfontsize\footnotesize\@viiipt{9.5}}
75 % \scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
76 % \tiny{\@setfontsize\tiny\@vpt\@vipt}
77 % \large{\@setfontsize\large\@xiipt{14}}
78 % \Large{\@setfontsize\Large\@xivpt{18}}
79 % \LARGE{\@setfontsize\LARGE\@xviipt{22}}
80 % \huge{\@setfontsize\huge\@xxpt{25}}
81 % \Huge{\@setfontsize\Huge\@xxvpt{30}}
83 \def\@maketitle
85 \newpage
86 \null
87 \vskip .375in
88 \begin{center}
89 {\Large \bf \@title \par}
90 % additional two empty lines at the end of the title
91 \vspace*{24pt}
93 \large
94 \lineskip .5em
95 \begin{tabular}[t]{c}
96 \@author
97 \end{tabular}
98 \par
100 % additional small space at the end of the author name
101 \vskip .5em
103 \large
104 \begin{tabular}[t]{c}
105 \@affiliation
106 \end{tabular}
107 \par
108 \ifx \@empty \@email
109 \else
110 \begin{tabular}{r@{~}l}
111 E-mail: & {\tt \@email}
112 \end{tabular}
113 \par
116 % additional empty line at the end of the title block
117 \vspace*{12pt}
118 \end{center}
121 \def\abstract
123 \centerline{\large\bf Abstract}%
124 \vspace*{12pt}%
125 \it%
128 \def\endabstract
130 % additional empty line at the end of the abstract
131 \vspace*{12pt}
134 \def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}
136 \def\email#1{\gdef\@email{#1}}
137 \gdef\@email{}
139 \newlength{\@ctmp}
140 \newlength{\@figindent}
141 \setlength{\@figindent}{1pc}
143 \long\def\@makecaption#1#2{
144 \vskip 10pt
145 \setbox\@tempboxa\hbox{\tenhv\noindent #1.~#2}
146 \setlength{\@ctmp}{\hsize}
147 \addtolength{\@ctmp}{-\@figindent}\addtolength{\@ctmp}{-\@figindent}
148 % IF longer than one indented paragraph line
149 \ifdim \wd\@tempboxa >\@ctmp
150 % THEN set as an indented paragraph
151 \begin{list}{}{\leftmargin\@figindent \rightmargin\leftmargin}
152 \item[]\tenhv #1.~#2\par
153 \end{list}
154 \else
155 % ELSE center
156 \hbox to\hsize{\hfil\box\@tempboxa\hfil}
157 \fi}
159 % correct heading spacing and type
160 \def\section{\@startsection {section}{1}{\z@}
161 {14pt plus 2pt minus 2pt}{14pt plus 2pt minus 2pt} {\large\bf}}
162 \def\subsection{\@startsection {subsection}{2}{\z@}
163 {13pt plus 2pt minus 2pt}{13pt plus 2pt minus 2pt} {\elvbf}}
165 % add the period after section numbers
166 \newcommand{\Section}[1]{\section{\hskip -1em.~#1}}
167 \newcommand{\SubSection}[1]{\subsection{\hskip -1em.~#1}}
169 % end of file latex8.sty
170 % ---------------------------------------------------------------