latex12.sty 5.1 KB

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