source: docs/HPCA2012/final_ieee/ieee/latex8.sty @ 1768

Last change on this file since 1768 was 1743, checked in by ashriram, 8 years ago

First pass final version [ashriram]

File size: 4.7 KB
Line 
1
2% ---------------------------------------------------------------
3%
4% $Id: latex8.sty,v 1.2 1995/09/15 15:31:13 ienne Exp $
5%
6% by Paolo.Ienne@di.epfl.ch
7%
8% ---------------------------------------------------------------
9%
10% no guarantee is given that the format corresponds perfectly to
11% IEEE 8.5" x 11" Proceedings, but most features should be ok.
12%
13% ---------------------------------------------------------------
14% with LaTeX2e:
15% =============
16%
17% use as
18%   \documentclass[times,10pt,twocolumn]{article}
19%   \usepackage{latex8}
20%   \usepackage{times}
21%
22% ---------------------------------------------------------------
23
24% with LaTeX 2.09:
25% ================
26%
27% use as
28%   \documentstyle[times,art10,twocolumn,latex8]{article}
29%
30% ---------------------------------------------------------------
31% with both versions:
32% ===================
33%
34% specify \pagestyle{empty} to omit page numbers in the final
35% version
36%
37% specify references as
38%   \bibliographystyle{latex8}
39%   \bibliography{...your files...}
40%
41% use Section{} and SubSection{} instead of standard section{}
42%    and subsection{} to obtain headings in the form
43%    "1.3. My heading"
44%
45% ---------------------------------------------------------------
46
47\typeout{IEEE 8.5 x 11-Inch Proceedings Style `latex8.sty'.}
48
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
54
55% eleven point times bold required for second-order headings
56\font\elvbf  = cmbx10 scaled 1100
57%\font\elvbf  = ptmb scaled 1100
58
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}
69
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}}
81
82\def\@maketitle
83   {
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} 
91      {
92      \large 
93      \lineskip .5em
94      \begin{tabular}[t]{c}
95         \@author
96      \end{tabular}
97      \par
98      } 
99      % additional small space at the end of the author name
100      \vskip .5em
101      {
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
113      \fi
114      }
115      % additional empty line at the end of the title block
116      \vspace*{12pt} 
117   \end{center}
118   } 
119
120\def\abstract
121   {%
122   \centerline{\large\bf Abstract}%
123   \vspace*{12pt}%
124   \it%
125   }
126
127\def\endabstract
128   {
129   % additional empty line at the end of the abstract
130   \vspace*{12pt} 
131   }
132
133\def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}
134
135\def\email#1{\gdef\@email{#1}}
136\gdef\@email{}
137
138\newlength{\@ctmp}
139\newlength{\@figindent}
140\setlength{\@figindent}{1pc}
141
142\long\def\@makecaption#1#2{
143   \vskip 40pt
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}
157
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}}
163
164% add the period after section numbers
165\newcommand{\Section}[1]{\section{\hskip -1em.~#1}} 
166\newcommand{\SubSection}[1]{\subsection{\hskip -1em.~#1}}
167
168% end of file latex8.sty
169% ---------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.