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