📚 The CoCalc Library - books, templates and other resources
License: OTHER
% THIS IS SIGPROC-SP.TEX - VERSION 3.11% WORKS WITH V3.2SP OF ACM_PROC_ARTICLE-SP.CLS2% APRIL 20093%4% It is an example file showing how to use the 'acm_proc_article-sp.cls' V3.2SP5% LaTeX2e document class file for Conference Proceedings submissions.6% ----------------------------------------------------------------------------------------------------------------7% This .tex file (and associated .cls V3.2SP) *DOES NOT* produce:8% 1) The Permission Statement9% 2) The Conference (location) Info information10% 3) The Copyright Line with ACM data11% 4) Page numbering12% ---------------------------------------------------------------------------------------------------------------13% It is an example which *does* use the .bib file (from which the .bbl file14% is produced).15% REMEMBER HOWEVER: After having produced the .bbl file,16% and prior to final submission,17% you need to 'insert' your .bbl file into your source .tex file so as to provide18% ONE 'self-contained' source file.19%20% Questions regarding SIGS should be sent to21% Adrienne Griscti ---> [email protected]22%23% Questions/suggestions regarding the guidelines, .tex and .cls files, etc. to24% Gerald Murray ---> [email protected]25%26% For tracking purposes - this is V3.1SP - APRIL 20092728\documentclass{acm_proc_article-sp}2930\begin{document}3132\title{A Sample {\ttlit ACM} SIG Proceedings Paper in LaTeX33Format\titlenote{(Does NOT produce the permission block, copyright information nor page numbering). For use with ACM\_PROC\_ARTICLE-SP.CLS. Supported by ACM.}}34\subtitle{[Extended Abstract]35\titlenote{A full version of this paper is available as36\textit{Author's Guide to Preparing ACM SIG Proceedings Using37\LaTeX$2_\epsilon$\ and BibTeX} at38\texttt{www.acm.org/eaddress.htm}}}39%40% You need the command \numberofauthors to handle the 'placement41% and alignment' of the authors beneath the title.42%43% For aesthetic reasons, we recommend 'three authors at a time'44% i.e. three 'name/affiliation blocks' be placed beneath the title.45%46% NOTE: You are NOT restricted in how many 'rows' of47% "name/affiliations" may appear. We just ask that you restrict48% the number of 'columns' to three.49%50% Because of the available 'opening page real-estate'51% we ask you to refrain from putting more than six authors52% (two rows with three columns) beneath the article title.53% More than six makes the first-page appear very cluttered indeed.54%55% Use the \alignauthor commands to handle the names56% and affiliations for an 'aesthetic maximum' of six authors.57% Add names, affiliations, addresses for58% the seventh etc. author(s) as the argument for the59% \additionalauthors command.60% These 'additional authors' will be output/set for you61% without further effort on your part as the last section in62% the body of your article BEFORE References or any Appendices.6364\numberofauthors{8} % in this sample file, there are a *total*65% of EIGHT authors. SIX appear on the 'first-page' (for formatting66% reasons) and the remaining two appear in the \additionalauthors section.67%68\author{69% You can go ahead and credit any number of authors here,70% e.g. one 'row of three' or two rows (consisting of one row of three71% and a second row of one, two or three).72%73% The command \alignauthor (no curly braces needed) should74% precede each author name, affiliation/snail-mail address and75% e-mail address. Additionally, tag each line of76% affiliation/address with \affaddr, and tag the77% e-mail address with \email.78%79% 1st. author80\alignauthor81Ben Trovato\titlenote{Dr.~Trovato insisted his name be first.}\\82\affaddr{Institute for Clarity in Documentation}\\83\affaddr{1932 Wallamaloo Lane}\\84\affaddr{Wallamaloo, New Zealand}\\85\email{trovato@corporation.com}86% 2nd. author87\alignauthor88G.K.M. Tobin\titlenote{The secretary disavows89any knowledge of this author's actions.}\\90\affaddr{Institute for Clarity in Documentation}\\91\affaddr{P.O. Box 1212}\\92\affaddr{Dublin, Ohio 43017-6221}\\93\email{webmaster@marysville-ohio.com}94% 3rd. author95\alignauthor Lars Th{\o}rv{\"a}ld\titlenote{This author is the96one who did all the really hard work.}\\97\affaddr{The Th{\o}rv{\"a}ld Group}\\98\affaddr{1 Th{\o}rv{\"a}ld Circle}\\99\affaddr{Hekla, Iceland}\\100\email{larst@affiliation.org}101\and % use '\and' if you need 'another row' of author names102% 4th. author103\alignauthor Lawrence P. Leipuner\\104\affaddr{Brookhaven Laboratories}\\105\affaddr{Brookhaven National Lab}\\106\affaddr{P.O. Box 5000}\\107\email{lleipuner@researchlabs.org}108% 5th. author109\alignauthor Sean Fogarty\\110\affaddr{NASA Ames Research Center}\\111\affaddr{Moffett Field}\\112\affaddr{California 94035}\\113\email{fogartys@amesres.org}114% 6th. author115\alignauthor Charles Palmer\\116\affaddr{Palmer Research Laboratories}\\117\affaddr{8600 Datapoint Drive}\\118\affaddr{San Antonio, Texas 78229}\\119\email{cpalmer@prl.com}120}121% There's nothing stopping you putting the seventh, eighth, etc.122% author on the opening page (as the 'third row') but we ask,123% for aesthetic reasons that you place these 'additional authors'124% in the \additional authors block, viz.125\additionalauthors{Additional authors: John Smith (The Th{\o}rv{\"a}ld Group,126email: {\texttt{jsmith@affiliation.org}}) and Julius P.~Kumquat127(The Kumquat Consortium, email: {\texttt{jpkumquat@consortium.net}}).}128\date{30 July 1999}129% Just remember to make sure that the TOTAL number of authors130% is the number that will appear on the first page PLUS the131% number that will appear in the \additionalauthors section.132133\maketitle134\begin{abstract}135This paper provides a sample of a \LaTeX\ document which conforms to136the formatting guidelines for ACM SIG Proceedings.137It complements the document \textit{Author's Guide to Preparing138ACM SIG Proceedings Using \LaTeX$2_\epsilon$\ and Bib\TeX}. This139source file has been written with the intention of being140compiled under \LaTeX$2_\epsilon$\ and BibTeX.141142The developers have tried to include every imaginable sort143of ``bells and whistles", such as a subtitle, footnotes on144title, subtitle and authors, as well as in the text, and145every optional component (e.g. Acknowledgments, Additional146Authors, Appendices), not to mention examples of147equations, theorems, tables and figures.148149To make best use of this sample document, run it through \LaTeX\150and BibTeX, and compare this source code with the printed151output produced by the dvi file.152\end{abstract}153154% A category with the (minimum) three required fields155\category{H.4}{Information Systems Applications}{Miscellaneous}156%A category including the fourth, optional field follows...157\category{D.2.8}{Software Engineering}{Metrics}[complexity measures, performance measures]158159\terms{Theory}160161\keywords{ACM proceedings, \LaTeX, text tagging} % NOT required for Proceedings162163\section{Introduction}164The \textit{proceedings} are the records of a conference.165ACM seeks to give these conference by-products a uniform,166high-quality appearance. To do this, ACM has some rigid167requirements for the format of the proceedings documents: there168is a specified format (balanced double columns), a specified169set of fonts (Arial or Helvetica and Times Roman) in170certain specified sizes (for instance, 9 point for body copy),171a specified live area (18 $\times$ 23.5 cm [7" $\times$ 9.25"]) centered on172the page, specified size of margins (1.9 cm [0.75"]) top, (2.54 cm [1"]) bottom173and (1.9 cm [.75"]) left and right; specified column width174(8.45 cm [3.33"]) and gutter size (.83 cm [.33"]).175176The good news is, with only a handful of manual177settings\footnote{Two of these, the {\texttt{\char'134 numberofauthors}}178and {\texttt{\char'134 alignauthor}} commands, you have179already used; another, {\texttt{\char'134 balancecolumns}}, will180be used in your very last run of \LaTeX\ to ensure181balanced column heights on the last page.}, the \LaTeX\ document182class file handles all of this for you.183184The remainder of this document is concerned with showing, in185the context of an ``actual'' document, the \LaTeX\ commands186specifically available for denoting the structure of a187proceedings paper, rather than with giving rigorous descriptions188or explanations of such commands.189190\section{The {\secit Body} of The Paper}191Typically, the body of a paper is organized192into a hierarchical structure, with numbered or unnumbered193headings for sections, subsections, sub-subsections, and even194smaller sections. The command \texttt{{\char'134}section} that195precedes this paragraph is part of such a196hierarchy.\footnote{This is the second footnote. It197starts a series of three footnotes that add nothing198informational, but just give an idea of how footnotes work199and look. It is a wordy one, just so you see200how a longish one plays out.} \LaTeX\ handles the numbering201and placement of these headings for you, when you use202the appropriate heading commands around the titles203of the headings. If you want a sub-subsection or204smaller part to be unnumbered in your output, simply append an205asterisk to the command name. Examples of both206numbered and unnumbered headings will appear throughout the207balance of this sample document.208209Because the entire article is contained in210the \textbf{document} environment, you can indicate the211start of a new paragraph with a blank line in your212input file; that is why this sentence forms a separate paragraph.213214\subsection{Type Changes and {\subsecit Special} Characters}215We have already seen several typeface changes in this sample. You216can indicate italicized words or phrases in your text with217the command \texttt{{\char'134}textit}; emboldening with the218command \texttt{{\char'134}textbf}219and typewriter-style (for instance, for computer code) with220\texttt{{\char'134}texttt}. But remember, you do not221have to indicate typestyle changes when such changes are222part of the \textit{structural} elements of your223article; for instance, the heading of this subsection will224be in a sans serif\footnote{A third footnote, here.225Let's make this a rather short one to226see how it looks.} typeface, but that is handled by the227document class file. Take care with the use228of\footnote{A fourth, and last, footnote.}229the curly braces in typeface changes; they mark230the beginning and end of231the text that is to be in the different typeface.232233You can use whatever symbols, accented characters, or234non-English characters you need anywhere in your document;235you can find a complete list of what is236available in the \textit{\LaTeX\237User's Guide}\cite{Lamport:LaTeX}.238239\subsection{Math Equations}240You may want to display math equations in three distinct styles:241inline, numbered or non-numbered display. Each of242the three are discussed in the next sections.243244\subsubsection{Inline (In-text) Equations}245A formula that appears in the running text is called an246inline or in-text formula. It is produced by the247\textbf{math} environment, which can be248invoked with the usual \texttt{{\char'134}begin. . .{\char'134}end}249construction or with the short form \texttt{\$. . .\$}. You250can use any of the symbols and structures,251from $\alpha$ to $\omega$, available in252\LaTeX\cite{Lamport:LaTeX}; this section will simply show a253few examples of in-text equations in context. Notice how254this equation: \begin{math}\lim_{n\rightarrow \infty}x=0\end{math},255set here in in-line math style, looks slightly different when256set in display style. (See next section).257258\subsubsection{Display Equations}259A numbered display equation -- one set off by vertical space260from the text and centered horizontally -- is produced261by the \textbf{equation} environment. An unnumbered display262equation is produced by the \textbf{displaymath} environment.263264Again, in either environment, you can use any of the symbols265and structures available in \LaTeX; this section will just266give a couple of examples of display equations in context.267First, consider the equation, shown as an inline equation above:268\begin{equation}\lim_{n\rightarrow \infty}x=0\end{equation}269Notice how it is formatted somewhat differently in270the \textbf{displaymath}271environment. Now, we'll enter an unnumbered equation:272\begin{displaymath}\sum_{i=0}^{\infty} x + 1\end{displaymath}273and follow it with another numbered equation:274\begin{equation}\sum_{i=0}^{\infty}x_i=\int_{0}^{\pi+2} f\end{equation}275just to demonstrate \LaTeX's able handling of numbering.276277\subsection{Citations}278Citations to articles \cite{bowman:reasoning, clark:pct, braams:babel, herlihy:methodology},279conference280proceedings \cite{clark:pct} or books \cite{salas:calculus, Lamport:LaTeX} listed281in the Bibliography section of your282article will occur throughout the text of your article.283You should use BibTeX to automatically produce this bibliography;284you simply need to insert one of several citation commands with285a key of the item cited in the proper location in286the \texttt{.tex} file \cite{Lamport:LaTeX}.287The key is a short reference you invent to uniquely288identify each work; in this sample document, the key is289the first author's surname and a290word from the title. This identifying key is included291with each item in the \texttt{.bib} file for your article.292293The details of the construction of the \texttt{.bib} file294are beyond the scope of this sample document, but more295information can be found in the \textit{Author's Guide},296and exhaustive details in the \textit{\LaTeX\ User's297Guide}\cite{Lamport:LaTeX}.298299This article shows only the plainest form300of the citation command, using \texttt{{\char'134}cite}.301This is what is stipulated in the SIGS style specifications.302No other citation format is endorsed.303304\subsection{Tables}305Because tables cannot be split across pages, the best306placement for them is typically the top of the page307nearest their initial cite. To308ensure this proper ``floating'' placement of tables, use the309environment \textbf{table} to enclose the table's contents and310the table caption. The contents of the table itself must go311in the \textbf{tabular} environment, to312be aligned properly in rows and columns, with the desired313horizontal and vertical rules. Again, detailed instructions314on \textbf{tabular} material315is found in the \textit{\LaTeX\ User's Guide}.316317Immediately following this sentence is the point at which318Table 1 is included in the input file; compare the319placement of the table here with the table in the printed320dvi output of this document.321322\begin{table}323\centering324\caption{Frequency of Special Characters}325\begin{tabular}{|c|c|l|} \hline326Non-English or Math&Frequency&Comments\\ \hline327\O & 1 in 1,000& For Swedish names\\ \hline328$\pi$ & 1 in 5& Common in math\\ \hline329\$ & 4 in 5 & Used in business\\ \hline330$\Psi^2_1$ & 1 in 40,000& Unexplained usage\\331\hline\end{tabular}332\end{table}333334To set a wider table, which takes up the whole width of335the page's live area, use the environment336\textbf{table*} to enclose the table's contents and337the table caption. As with a single-column table, this wide338table will ``float" to a location deemed more desirable.339Immediately following this sentence is the point at which340Table 2 is included in the input file; again, it is341instructive to compare the placement of the342table here with the table in the printed dvi343output of this document.344345346\begin{table*}347\centering348\caption{Some Typical Commands}349\begin{tabular}{|c|c|l|} \hline350Command&A Number&Comments\\ \hline351\texttt{{\char'134}alignauthor} & 100& Author alignment\\ \hline352\texttt{{\char'134}numberofauthors}& 200& Author enumeration\\ \hline353\texttt{{\char'134}table}& 300 & For tables\\ \hline354\texttt{{\char'134}table*}& 400& For wider tables\\ \hline\end{tabular}355\end{table*}356% end the environment with {table*}, NOTE not {table}!357358\subsection{Figures}359Like tables, figures cannot be split across pages; the360best placement for them361is typically the top or the bottom of the page nearest362their initial cite. To ensure this proper ``floating'' placement363of figures, use the environment364\textbf{figure} to enclose the figure and its caption.365366This sample document contains examples of \textbf{.eps}367and \textbf{.ps} files to be displayable with \LaTeX. More368details on each of these is found in the \textit{Author's Guide}.369370\begin{figure}371\centering372\epsfig{file=fly.eps}373\caption{A sample black and white graphic (.eps format).}374\end{figure}375376\begin{figure}377\centering378\epsfig{file=fly.eps, height=1in, width=1in}379\caption{A sample black and white graphic (.eps format)380that has been resized with the \texttt{epsfig} command.}381\end{figure}382383384As was the case with tables, you may want a figure385that spans two columns. To do this, and still to386ensure proper ``floating'' placement of tables, use the environment387\textbf{figure*} to enclose the figure and its caption.388389Note that either {\textbf{.ps}} or {\textbf{.eps}} formats are390used; use391the \texttt{{\char'134}epsfig} or \texttt{{\char'134}psfig}392commands as appropriate for the different file types.393394\subsection{Theorem-like Constructs}395Other common constructs that may occur in your article are396the forms for logical constructs like theorems, axioms,397corollaries and proofs. There are398two forms, one produced by the399command \texttt{{\char'134}newtheorem} and the400other by the command \texttt{{\char'134}newdef}; perhaps401the clearest and easiest way to distinguish them is402to compare the two in the output of this sample document:403404This uses the \textbf{theorem} environment, created by405the\linebreak\texttt{{\char'134}newtheorem} command:406\newtheorem{theorem}{Theorem}407\begin{theorem}408Let $f$ be continuous on $[a,b]$. If $G$ is409an antiderivative for $f$ on $[a,b]$, then410\begin{displaymath}\int^b_af(t)dt = G(b) - G(a).\end{displaymath}411\end{theorem}412413The other uses the \textbf{definition} environment, created414by the \texttt{{\char'134}newdef} command:415\newdef{definition}{Definition}416\begin{definition}417If $z$ is irrational, then by $e^z$ we mean the418unique number which has419logarithm $z$: \begin{displaymath}{\log e^z = z}\end{displaymath}420\end{definition}421422\begin{figure}423\centering424\psfig{file=rosette.ps, height=1in, width=1in}425\caption{A sample black and white graphic (.ps format) that has426been resized with the \texttt{psfig} command.}427\end{figure}428429Two lists of constructs that use one of these430forms is given in the431\textit{Author's Guidelines}.432433\begin{figure*}434\centering435\epsfig{file=flies.eps}436\caption{A sample black and white graphic (.eps format)437that needs to span two columns of text.}438\end{figure*}439and don't forget to end the environment with440{figure*}, not {figure}!441442There is one other similar construct environment, which is443already set up444for you; i.e. you must \textit{not} use445a \texttt{{\char'134}newdef} command to446create it: the \textbf{proof} environment. Here447is a example of its use:448\begin{proof}449Suppose on the contrary there exists a real number $L$ such that450\begin{displaymath}451\lim_{x\rightarrow\infty} \frac{f(x)}{g(x)} = L.452\end{displaymath}453Then454\begin{displaymath}455l=\lim_{x\rightarrow c} f(x)456= \lim_{x\rightarrow c}457\left[ g{x} \cdot \frac{f(x)}{g(x)} \right ]458= \lim_{x\rightarrow c} g(x) \cdot \lim_{x\rightarrow c}459\frac{f(x)}{g(x)} = 0\cdot L = 0,460\end{displaymath}461which contradicts our assumption that $l\neq 0$.462\end{proof}463464Complete rules about using these environments and using the465two different creation commands are in the466\textit{Author's Guide}; please consult it for more467detailed instructions. If you need to use another construct,468not listed therein, which you want to have the same469formatting as the Theorem470or the Definition\cite{salas:calculus} shown above,471use the \texttt{{\char'134}newtheorem} or the472\texttt{{\char'134}newdef} command,473respectively, to create it.474475\subsection*{A {\secit Caveat} for the \TeX\ Expert}476Because you have just been given permission to477use the \texttt{{\char'134}newdef} command to create a478new form, you might think you can479use \TeX's \texttt{{\char'134}def} to create a480new command: \textit{Please refrain from doing this!}481Remember that your \LaTeX\ source code is primarily intended482to create camera-ready copy, but may be converted483to other forms -- e.g. HTML. If you inadvertently omit484some or all of the \texttt{{\char'134}def}s recompilation will485be, to say the least, problematic.486487\section{Conclusions}488This paragraph will end the body of this sample document.489Remember that you might still have Acknowledgments or490Appendices; brief samples of these491follow. There is still the Bibliography to deal with; and492we will make a disclaimer about that here: with the exception493of the reference to the \LaTeX\ book, the citations in494this paper are to articles which have nothing to495do with the present subject and are used as496examples only.497%\end{document} % This is where a 'short' article might terminate498499%ACKNOWLEDGMENTS are optional500\section{Acknowledgments}501This section is optional; it is a location for you502to acknowledge grants, funding, editing assistance and503what have you. In the present case, for example, the504authors would like to thank Gerald Murray of ACM for505his help in codifying this \textit{Author's Guide}506and the \textbf{.cls} and \textbf{.tex} files that it describes.507508%509% The following two commands are all you need in the510% initial runs of your .tex file to511% produce the bibliography for the citations in your paper.512\bibliographystyle{abbrv}513\bibliography{sigproc} % sigproc.bib is the name of the Bibliography in this case514% You must have a proper ".bib" file515% and remember to run:516% latex bibtex latex latex517% to resolve all references518%519% ACM needs 'a single self-contained file'!520%521%APPENDICES are optional522%\balancecolumns523\appendix524%Appendix A525\section{Headings in Appendices}526The rules about hierarchical headings discussed above for527the body of the article are different in the appendices.528In the \textbf{appendix} environment, the command529\textbf{section} is used to530indicate the start of each Appendix, with alphabetic order531designation (i.e. the first is A, the second B, etc.) and532a title (if you include one). So, if you need533hierarchical structure534\textit{within} an Appendix, start with \textbf{subsection} as the535highest level. Here is an outline of the body of this536document in Appendix-appropriate form:537\subsection{Introduction}538\subsection{The Body of the Paper}539\subsubsection{Type Changes and Special Characters}540\subsubsection{Math Equations}541\paragraph{Inline (In-text) Equations}542\paragraph{Display Equations}543\subsubsection{Citations}544\subsubsection{Tables}545\subsubsection{Figures}546\subsubsection{Theorem-like Constructs}547\subsubsection*{A Caveat for the \TeX\ Expert}548\subsection{Conclusions}549\subsection{Acknowledgments}550\subsection{Additional Authors}551This section is inserted by \LaTeX; you do not insert it.552You just add the names and information in the553\texttt{{\char'134}additionalauthors} command at the start554of the document.555\subsection{References}556Generated by bibtex from your ~.bib file. Run latex,557then bibtex, then latex twice (to resolve references)558to create the ~.bbl file. Insert that ~.bbl file into559the .tex source file and comment out560the command \texttt{{\char'134}thebibliography}.561% This next section command marks the start of562% Appendix B, and does not continue the present hierarchy563\section{More Help for the Hardy}564The acm\_proc\_article-sp document class file itself is chock-full of succinct565and helpful comments. If you consider yourself a moderately566experienced to expert user of \LaTeX, you may find reading567it useful but please remember not to change it.568\balancecolumns569% That's all folks!570\end{document}571572573