You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
4.5 KiB

7 years ago
  1. % ---------------------------------------------------------------
  2. %
  3. % $Id: latex8.sty,v 1.2 1995/09/15 15:31:13 ienne Exp $
  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{\topmargin}{0in}
  58. \setlength{\headheight}{0in}
  59. \setlength{\headsep}{0in}
  60. \setlength{\parindent}{1pc}
  61. \setlength{\oddsidemargin}{-.304in}
  62. \setlength{\evensidemargin}{-.304in}
  63. % memento from size10.clo
  64. % \normalsize{\@setfontsize\normalsize\@xpt\@xiipt}
  65. % \small{\@setfontsize\small\@ixpt{11}}
  66. % \footnotesize{\@setfontsize\footnotesize\@viiipt{9.5}}
  67. % \scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
  68. % \tiny{\@setfontsize\tiny\@vpt\@vipt}
  69. % \large{\@setfontsize\large\@xiipt{14}}
  70. % \Large{\@setfontsize\Large\@xivpt{18}}
  71. % \LARGE{\@setfontsize\LARGE\@xviipt{22}}
  72. % \huge{\@setfontsize\huge\@xxpt{25}}
  73. % \Huge{\@setfontsize\Huge\@xxvpt{30}}
  74. \def\@maketitle
  75. {
  76. \newpage
  77. \null
  78. \vskip .375in
  79. \begin{center}
  80. {\Large \bf \@title \par}
  81. % additional two empty lines at the end of the title
  82. \vspace*{24pt}
  83. {
  84. \large
  85. \lineskip .5em
  86. \begin{tabular}[t]{c}
  87. \@author
  88. \end{tabular}
  89. \par
  90. }
  91. % additional small space at the end of the author name
  92. \vskip .5em
  93. {
  94. \large
  95. \begin{tabular}[t]{c}
  96. \@affiliation
  97. \end{tabular}
  98. \par
  99. \ifx \@empty \@email
  100. \else
  101. \begin{tabular}{r@{~}l}
  102. E-mail: & {\tt \@email}
  103. \end{tabular}
  104. \par
  105. \fi
  106. }
  107. % additional empty line at the end of the title block
  108. \vspace*{12pt}
  109. \end{center}
  110. }
  111. \def\abstract
  112. {%
  113. \centerline{\large\bf Abstract}%
  114. \vspace*{12pt}%
  115. \it%
  116. }
  117. \def\endabstract
  118. {
  119. % additional empty line at the end of the abstract
  120. \vspace*{12pt}
  121. }
  122. \def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}
  123. \def\email#1{\gdef\@email{#1}}
  124. \gdef\@email{}
  125. \newlength{\@ctmp}
  126. \newlength{\@figindent}
  127. \setlength{\@figindent}{1pc}
  128. \long\def\@makecaption#1#2{
  129. \vskip 10pt
  130. \setbox\@tempboxa\hbox{\tenhv\noindent #1.~#2}
  131. \setlength{\@ctmp}{\hsize}
  132. \addtolength{\@ctmp}{-\@figindent}\addtolength{\@ctmp}{-\@figindent}
  133. % IF longer than one indented paragraph line
  134. \ifdim \wd\@tempboxa >\@ctmp
  135. % THEN set as an indented paragraph
  136. \begin{list}{}{\leftmargin\@figindent \rightmargin\leftmargin}
  137. \item[]\tenhv #1.~#2\par
  138. \end{list}
  139. \else
  140. % ELSE center
  141. \hbox to\hsize{\hfil\box\@tempboxa\hfil}
  142. \fi}
  143. % correct heading spacing and type
  144. \def\section{\@startsection {section}{1}{\z@}
  145. {14pt plus 2pt minus 2pt}{14pt plus 2pt minus 2pt} {\large\bf}}
  146. \def\subsection{\@startsection {subsection}{2}{\z@}
  147. {13pt plus 2pt minus 2pt}{13pt plus 2pt minus 2pt} {\elvbf}}
  148. % add the period after section numbers
  149. \newcommand{\Section}[1]{\section{\hskip -1em.~#1}}
  150. \newcommand{\SubSection}[1]{\subsection{\hskip -1em.~#1}}
  151. % end of file latex8.sty
  152. % ---------------------------------------------------------------