templates/acl/acl_latex.tex
templates/acl/acl_latex.texBrowse 56 files
4,104 tokens
14,533 bytes
Token encoding: o200k_base
Snapshot 24fd22b
← Back to SKILL.md
1\documentclass[11pt]{article}2 3% Change "review" to "final" to generate the final (sometimes called camera-ready) version.4% Change to "preprint" to generate a non-anonymous version with page numbers.5\usepackage[review]{acl}6 7% Standard package includes8\usepackage{times}9\usepackage{latexsym}10 11% For proper rendering and hyphenation of words containing Latin characters (including in bib files)12\usepackage[T1]{fontenc}13% For Vietnamese characters14% \usepackage[T5]{fontenc}15% See https://www.latex-project.org/help/documentation/encguide.pdf for other character sets16 17% This assumes your files are encoded as UTF818\usepackage[utf8]{inputenc}19 20% This is not strictly necessary, and may be commented out,21% but it will improve the layout of the manuscript,22% and will typically save some space.23\usepackage{microtype}24 25% This is also not strictly necessary, and may be commented out.26% However, it will improve the aesthetics of text in27% the typewriter font.28\usepackage{inconsolata}29 30%Including images in your LaTeX document requires adding31%additional package(s)32\usepackage{graphicx}33 34% If the title and author information does not fit in the area allocated, uncomment the following35%36%\setlength\titlebox{<dim>}37%38% and set <dim> to something 5cm or larger.39 40\title{Instructions for *ACL Proceedings}41 42% Author information can be set in various styles:43% For several authors from the same institution:44% \author{Author 1 \and ... \and Author n \\45% Address line \\ ... \\ Address line}46% if the names do not fit well on one line use47% Author 1 \\ {\bf Author 2} \\ ... \\ {\bf Author n} \\48% For authors from different institutions:49% \author{Author 1 \\ Address line \\ ... \\ Address line50% \And ... \And51% Author n \\ Address line \\ ... \\ Address line}52% To start a separate ``row'' of authors use \AND, as in53% \author{Author 1 \\ Address line \\ ... \\ Address line54% \AND55% Author 2 \\ Address line \\ ... \\ Address line \And56% Author 3 \\ Address line \\ ... \\ Address line}57 58\author{First Author \\59 Affiliation / Address line 1 \\60 Affiliation / Address line 2 \\61 Affiliation / Address line 3 \\62 \texttt{email@domain} \\\And63 Second Author \\64 Affiliation / Address line 1 \\65 Affiliation / Address line 2 \\66 Affiliation / Address line 3 \\67 \texttt{email@domain} \\}68 69%\author{70% \textbf{First Author\textsuperscript{1}},71% \textbf{Second Author\textsuperscript{1,2}},72% \textbf{Third T. Author\textsuperscript{1}},73% \textbf{Fourth Author\textsuperscript{1}},74%\\75% \textbf{Fifth Author\textsuperscript{1,2}},76% \textbf{Sixth Author\textsuperscript{1}},77% \textbf{Seventh Author\textsuperscript{1}},78% \textbf{Eighth Author \textsuperscript{1,2,3,4}},79%\\80% \textbf{Ninth Author\textsuperscript{1}},81% \textbf{Tenth Author\textsuperscript{1}},82% \textbf{Eleventh E. Author\textsuperscript{1,2,3,4,5}},83% \textbf{Twelfth Author\textsuperscript{1}},84%\\85% \textbf{Thirteenth Author\textsuperscript{3}},86% \textbf{Fourteenth F. Author\textsuperscript{2,4}},87% \textbf{Fifteenth Author\textsuperscript{1}},88% \textbf{Sixteenth Author\textsuperscript{1}},89%\\90% \textbf{Seventeenth S. Author\textsuperscript{4,5}},91% \textbf{Eighteenth Author\textsuperscript{3,4}},92% \textbf{Nineteenth N. Author\textsuperscript{2,5}},93% \textbf{Twentieth Author\textsuperscript{1}}94%\\95%\\96% \textsuperscript{1}Affiliation 1,97% \textsuperscript{2}Affiliation 2,98% \textsuperscript{3}Affiliation 3,99% \textsuperscript{4}Affiliation 4,100% \textsuperscript{5}Affiliation 5101%\\102% \small{103% \textbf{Correspondence:} \href{mailto:email@domain}{email@domain}104% }105%}106 107\begin{document}108\maketitle109\begin{abstract}110This document is a supplement to the general instructions for *ACL authors. It contains instructions for using the \LaTeX{} style files for ACL conferences.111The document itself conforms to its own specifications, and is therefore an example of what your manuscript should look like.112These instructions should be used both for papers submitted for review and for final versions of accepted papers.113\end{abstract}114 115\section{Introduction}116 117These instructions are for authors submitting papers to *ACL conferences using \LaTeX. They are not self-contained. All authors must follow the general instructions for *ACL proceedings,\footnote{\url{http://acl-org.github.io/ACLPUB/formatting.html}} and this document contains additional instructions for the \LaTeX{} style files.118 119The templates include the \LaTeX{} source of this document (\texttt{acl\_latex.tex}),120the \LaTeX{} style file used to format it (\texttt{acl.sty}),121an ACL bibliography style (\texttt{acl\_natbib.bst}),122an example bibliography (\texttt{custom.bib}),123and the bibliography for the ACL Anthology (\texttt{anthology.bib}).124 125\section{Engines}126 127To produce a PDF file, pdf\LaTeX{} is strongly recommended (over original \LaTeX{} plus dvips+ps2pdf or dvipdf).128The style file \texttt{acl.sty} can also be used with129lua\LaTeX{} and130Xe\LaTeX{}, which are especially suitable for text in non-Latin scripts.131The file \texttt{acl\_lualatex.tex} in this repository provides132an example of how to use \texttt{acl.sty} with either133lua\LaTeX{} or134Xe\LaTeX{}.135 136\section{Preamble}137 138The first line of the file must be139\begin{quote}140\begin{verbatim}141\documentclass[11pt]{article}142\end{verbatim}143\end{quote}144 145To load the style file in the review version:146\begin{quote}147\begin{verbatim}148\usepackage[review]{acl}149\end{verbatim}150\end{quote}151For the final version, omit the \verb|review| option:152\begin{quote}153\begin{verbatim}154\usepackage{acl}155\end{verbatim}156\end{quote}157 158To use Times Roman, put the following in the preamble:159\begin{quote}160\begin{verbatim}161\usepackage{times}162\end{verbatim}163\end{quote}164(Alternatives like txfonts or newtx are also acceptable.)165 166Please see the \LaTeX{} source of this document for comments on other packages that may be useful.167 168Set the title and author using \verb|\title| and \verb|\author|. Within the author list, format multiple authors using \verb|\and| and \verb|\And| and \verb|\AND|; please see the \LaTeX{} source for examples.169 170By default, the box containing the title and author names is set to the minimum of 5 cm. If you need more space, include the following in the preamble:171\begin{quote}172\begin{verbatim}173\setlength\titlebox{<dim>}174\end{verbatim}175\end{quote}176where \verb|<dim>| is replaced with a length. Do not set this length smaller than 5 cm.177 178\section{Document Body}179 180\subsection{Footnotes}181 182Footnotes are inserted with the \verb|\footnote| command.\footnote{This is a footnote.}183 184\subsection{Tables and figures}185 186See Table~\ref{tab:accents} for an example of a table and its caption.187\textbf{Do not override the default caption sizes.}188 189\begin{table}190 \centering191 \begin{tabular}{lc}192 \hline193 \textbf{Command} & \textbf{Output} \\194 \hline195 \verb|{\"a}| & {\"a} \\196 \verb|{\^e}| & {\^e} \\197 \verb|{\`i}| & {\`i} \\198 \verb|{\.I}| & {\.I} \\199 \verb|{\o}| & {\o} \\200 \verb|{\'u}| & {\'u} \\201 \verb|{\aa}| & {\aa} \\\hline202 \end{tabular}203 \begin{tabular}{lc}204 \hline205 \textbf{Command} & \textbf{Output} \\206 \hline207 \verb|{\c c}| & {\c c} \\208 \verb|{\u g}| & {\u g} \\209 \verb|{\l}| & {\l} \\210 \verb|{\~n}| & {\~n} \\211 \verb|{\H o}| & {\H o} \\212 \verb|{\v r}| & {\v r} \\213 \verb|{\ss}| & {\ss} \\214 \hline215 \end{tabular}216 \caption{Example commands for accented characters, to be used in, \emph{e.g.}, Bib\TeX{} entries.}217 \label{tab:accents}218\end{table}219 220As much as possible, fonts in figures should conform221to the document fonts. See Figure~\ref{fig:experiments} for an example of a figure and its caption.222 223Using the \verb|graphicx| package graphics files can be included within figure224environment at an appropriate point within the text.225The \verb|graphicx| package supports various optional arguments to control the226appearance of the figure.227You must include it explicitly in the \LaTeX{} preamble (after the228\verb|\documentclass| declaration and before \verb|\begin{document}|) using229\verb|\usepackage{graphicx}|.230 231\begin{figure}[t]232 \includegraphics[width=\columnwidth]{example-image-golden}233 \caption{A figure with a caption that runs for more than one line.234 Example image is usually available through the \texttt{mwe} package235 without even mentioning it in the preamble.}236 \label{fig:experiments}237\end{figure}238 239\begin{figure*}[t]240 \includegraphics[width=0.48\linewidth]{example-image-a} \hfill241 \includegraphics[width=0.48\linewidth]{example-image-b}242 \caption {A minimal working example to demonstrate how to place243 two images side-by-side.}244\end{figure*}245 246\subsection{Hyperlinks}247 248Users of older versions of \LaTeX{} may encounter the following error during compilation:249\begin{quote}250\verb|\pdfendlink| ended up in different nesting level than \verb|\pdfstartlink|.251\end{quote}252This happens when pdf\LaTeX{} is used and a citation splits across a page boundary. The best way to fix this is to upgrade \LaTeX{} to 2018-12-01 or later.253 254\subsection{Citations}255 256\begin{table*}257 \centering258 \begin{tabular}{lll}259 \hline260 \textbf{Output} & \textbf{natbib command} & \textbf{ACL only command} \\261 \hline262 \citep{Gusfield:97} & \verb|\citep| & \\263 \citealp{Gusfield:97} & \verb|\citealp| & \\264 \citet{Gusfield:97} & \verb|\citet| & \\265 \citeyearpar{Gusfield:97} & \verb|\citeyearpar| & \\266 \citeposs{Gusfield:97} & & \verb|\citeposs| \\267 \hline268 \end{tabular}269 \caption{\label{citation-guide}270 Citation commands supported by the style file.271 The style is based on the natbib package and supports all natbib citation commands.272 It also supports commands defined in previous ACL style files for compatibility.273 }274\end{table*}275 276Table~\ref{citation-guide} shows the syntax supported by the style files.277We encourage you to use the natbib styles.278You can use the command \verb|\citet| (cite in text) to get ``author (year)'' citations, like this citation to a paper by \citet{Gusfield:97}.279You can use the command \verb|\citep| (cite in parentheses) to get ``(author, year)'' citations \citep{Gusfield:97}.280You can use the command \verb|\citealp| (alternative cite without parentheses) to get ``author, year'' citations, which is useful for using citations within parentheses (e.g. \citealp{Gusfield:97}).281 282A possessive citation can be made with the command \verb|\citeposs|.283This is not a standard natbib command, so it is generally not compatible284with other style files.285 286\subsection{References}287 288\nocite{Ando2005,andrew2007scalable,rasooli-tetrault-2015}289 290The \LaTeX{} and Bib\TeX{} style files provided roughly follow the American Psychological Association format.291If your own bib file is named \texttt{custom.bib}, then placing the following before any appendices in your \LaTeX{} file will generate the references section for you:292\begin{quote}293\begin{verbatim}294\bibliography{custom}295\end{verbatim}296\end{quote}297 298You can obtain the complete ACL Anthology as a Bib\TeX{} file from \url{https://aclweb.org/anthology/anthology.bib.gz}.299To include both the Anthology and your own .bib file, use the following instead of the above.300\begin{quote}301\begin{verbatim}302\bibliography{anthology,custom}303\end{verbatim}304\end{quote}305 306Please see Section~\ref{sec:bibtex} for information on preparing Bib\TeX{} files.307 308\subsection{Equations}309 310An example equation is shown below:311\begin{equation}312 \label{eq:example}313 A = \pi r^2314\end{equation}315 316Labels for equation numbers, sections, subsections, figures and tables317are all defined with the \verb|\label{label}| command and cross references318to them are made with the \verb|\ref{label}| command.319 320This an example cross-reference to Equation~\ref{eq:example}.321 322\subsection{Appendices}323 324Use \verb|\appendix| before any appendix section to switch the section numbering over to letters. See Appendix~\ref{sec:appendix} for an example.325 326\section{Bib\TeX{} Files}327\label{sec:bibtex}328 329Unicode cannot be used in Bib\TeX{} entries, and some ways of typing special characters can disrupt Bib\TeX's alphabetization. The recommended way of typing special characters is shown in Table~\ref{tab:accents}.330 331Please ensure that Bib\TeX{} records contain DOIs or URLs when possible, and for all the ACL materials that you reference.332Use the \verb|doi| field for DOIs and the \verb|url| field for URLs.333If a Bib\TeX{} entry has a URL or DOI field, the paper title in the references section will appear as a hyperlink to the paper, using the hyperref \LaTeX{} package.334 335\section*{Limitations}336 337This document does not cover the content requirements for ACL or any338other specific venue. Check the author instructions for339information on340maximum page lengths, the required ``Limitations'' section,341and so on.342 343\section*{Acknowledgments}344 345This document has been adapted346by Steven Bethard, Ryan Cotterell and Rui Yan347from the instructions for earlier ACL and NAACL proceedings, including those for348ACL 2019 by Douwe Kiela and Ivan Vuli\'{c},349NAACL 2019 by Stephanie Lukin and Alla Roskovskaya,350ACL 2018 by Shay Cohen, Kevin Gimpel, and Wei Lu,351NAACL 2018 by Margaret Mitchell and Stephanie Lukin,352Bib\TeX{} suggestions for (NA)ACL 2017/2018 from Jason Eisner,353ACL 2017 by Dan Gildea and Min-Yen Kan,354NAACL 2017 by Margaret Mitchell,355ACL 2012 by Maggie Li and Michael White,356ACL 2010 by Jing-Shin Chang and Philipp Koehn,357ACL 2008 by Johanna D. Moore, Simone Teufel, James Allan, and Sadaoki Furui,358ACL 2005 by Hwee Tou Ng and Kemal Oflazer,359ACL 2002 by Eugene Charniak and Dekang Lin,360and earlier ACL and EACL formats written by several people, including361John Chen, Henry S. Thompson and Donald Walker.362Additional elements were taken from the formatting instructions of the \emph{International Joint Conference on Artificial Intelligence} and the \emph{Conference on Computer Vision and Pattern Recognition}.363 364% Bibliography entries for the entire Anthology, followed by custom entries365%\bibliography{custom,anthology-overleaf-1,anthology-overleaf-2}366 367% Custom bibliography entries only368\bibliography{custom}369 370\appendix371 372\section{Example Appendix}373\label{sec:appendix}374 375This is an appendix.376 377\end{document}378