Created
February 5, 2013 00:00
-
-
Save pipex/4710917 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet for ACM (sig-alternate) conferences with my personal configuration preferences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
% Don't forget to include sig-alternate.cls | |
\documentclass{sig-alternate} | |
\pdfpagewidth=8.5truein | |
\pdfpageheight=11truein | |
% AMS Packages | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
% Encoding for english language but support for utf-8 characters | |
\usepackage[english]{babel} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
% correct bad hyphenation here | |
\hyphenation{op-tical net-works semi-conduc-tor} | |
% Detect use of pdf | |
\usepackage{ifpdf} | |
% Graphics extensions depending of type of file | |
\ifpdf | |
\usepackage[letterpaper,hyperindex=true]{hyperref} | |
\else | |
\usepackage[letterpaper,dvipdfm,hyperindex=true]{hyperref} | |
\fi | |
% Default path for images | |
\graphicspath{{.}{images/}} | |
% Document information | |
\newcommand{\docTitle}{${1:title}} | |
\newcommand{\docAuthors}{${2:authors}} | |
\newcommand{\docSubject}{\docTitle} | |
\ifpdf | |
% Links in pdf | |
\usepackage{xcolor} | |
\definecolor{linkcol}{rgb}{0,0,0.4} | |
\definecolor{citecol}{rgb}{0.5,0,0} | |
% Meta-data for the PDF file | |
\hypersetup | |
{ | |
bookmarksopen=true,% | |
pdftitle=\docTitle,% | |
pdfauthor=\docAuthors, %author | |
pdfsubject=\docSubject, %subject | |
pdfmenubar=true, % | |
pdfhighlight=/O, % | |
colorlinks=true, % | |
pdfpagemode=, %no page mode | |
pdfpagelayout=SinglePage, %single page layout | |
pdffitwindow=true, %fit to window | |
linkcolor=linkcol, %internal link color | |
citecolor=citecol, %citation link color | |
urlcolor=linkcol %url color | |
} | |
\fi | |
% Nice strings in math using \s{} | |
\newcommand{\s}[1]{\ifmmode{\text{\small`{\texttt{#1}}'}}\else{`{\texttt{#1}}'}\fi} | |
%Pretty sum | |
\newcommand{\ssum}{\displaystyle\sum\limits} | |
% Inline lists (inparaenum) | |
\usepackage{paralist} | |
% Draft mode | |
\usepackage{ifdraft} | |
% TODO NOTES and QUESTIONS in DRAFT MODE | |
\ifdraft{ | |
\newcommand{\todo}[1]{\addcontentsline{tdo}{todo}{\protect{#1}}\footnote{\colorbox{yellow}{\textbf{TODO}}: #1}} | |
% Same treatment, but for Questions | |
\newcommand{\question}[1]{\addcontentsline{qst}{question}{\protect{#1}}\footnote{\colorbox{green}{\textbf{QUESTION}}: #1}} | |
} | |
{ | |
% Disable everything | |
\newcommand{\todo}[1]{} | |
\newcommand{\question}[1]{} | |
} | |
% Create TODO list | |
\makeatletter \newcommand \listoftodos{\section{Todo list} \@starttoc{tdo}} | |
\newcommand\l@todo[2] | |
{\par\noindent \textit{#2}, \parbox{\textwidth}{#1}\par} \makeatother | |
% Create Questions list | |
\makeatletter \newcommand \listofquestions{\section{Question list} \@starttoc{qst}} | |
\newcommand\l@question[2] | |
{\par\noindent \textit{#2}, \parbox{\textwidth}{#1}\par} \makeatother | |
\ifdraft{} | |
{% Disable todo and questions list | |
\renewcommand{\listoftodos}{} | |
\renewcommand{\listofquestions}{} | |
} | |
\begin{document} | |
% --- Author Metadata here --- | |
\conferenceinfo{${3:conference name}}{${4:conference date and location}} | |
\CopyrightYear{${5:year}} % Allows default copyright year (2002) to be over-ridden - IF NEED BE. | |
%\crdata{978-1-4503-1656-9/13/03} % Allows default copyright data (X-XXXXX-XX-X/XX/XX) to be over-ridden. | |
\title{\docTitle} | |
% Here you should put the correct number of authors | |
\numberofauthors{${6:number of authors}} | |
\author{ | |
% You can go ahead and credit any number of authors here, | |
% e.g. one 'row of three' or two rows (consisting of one row of three | |
% and a second row of one, two or three). | |
% | |
% The command \alignauthor (no curly braces needed) should | |
% precede each author name, affiliation/snail-mail address and | |
% e-mail address. Additionally, tag each line of | |
% affiliation/address with \affaddr, and tag the | |
% e-mail address with \email. | |
% | |
% 1st. author | |
\alignauthor | |
${7:\docAuthors}\\\\ | |
\affaddr{${8:author affiliation line 1}}\\\\ | |
%\affaddr{author affiliation line 2}\\\\ | |
%\affaddr{author affiliation line 3}\\\\ | |
\email{${9:email}} | |
% | |
%\alignauthor Other authors\\\\ | |
%\affaddr{Other authors affiliation line 1}\\\\ | |
%\affaddr{affiliaton line 2}\\\\ | |
%\affaddr{line 3}\\\\ | |
%\email{[email protected]} | |
} | |
\maketitle | |
\begin{abstract} | |
Here is the abstract | |
\end{abstract} | |
% A category with the (minimum) three required fields | |
\category{H.4}{Information Systems Applications}{Miscellaneous} | |
%A category including the fourth, optional field follows... | |
\category{D.2.8}{Software Engineering}{Metrics}[complexity measures, performance measures] | |
\terms{Delphi theory} | |
\keywords{ACM proceedings, \LaTeX, text tagging} | |
% Sections in another file | |
\section{Introduction} | |
\input{sections/introduction} | |
%\section{Related Work} | |
%\input{sections/related_work} | |
% End of sections | |
%Bibliography | |
\bibliographystyle{abbrv} | |
\bibliography{${10:bibliography}} | |
% Add list of questions and todos to the appendix | |
% NOTE: if other appendices are to be used, remove \appendix below | |
\ifdraft{ | |
\newpage | |
\appendix | |
% List of questions | |
\listofquestions | |
% List of todos | |
\listoftodos | |
} | |
{} | |
\end{document} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>acm</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>text.tex.latex</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment