latex8.sty 4.5 KB

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