Skip to content
Snippets Groups Projects
Commit 758a0b63 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Initial commit of paper

parent ab33fd77
No related branches found
No related tags found
No related merge requests found
PAPER = paper
TEX = $(wildcard *.tex)
BIB = references.bib
FIGS = $(wildcard figures/*.pdf figures/*.png graphs/*.pdf graphs/*.png)
.PHONY: all clean
$(PAPER).pdf: $(TEX) $(BIB) $(FIGS) jpaper.cls
echo $(FIGS)
pdflatex $(PAPER)
bibtex $(PAPER)
pdflatex $(PAPER)
pdflatex $(PAPER)
clean:
rm -f *.aux *.bbl *.blg *.log *.out $(PAPER).pdf
This diff is collapsed.
%%
%% This is file `couriers.sty',
%%
% This program may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.2
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.2 or later is part of all distributions of LaTeX
% version 1999/12/01 or later.
\ProvidesPackage{couriers}
[2004/07/10 Scaled Courier
(HS)
]
\RequirePackage{keyval}
\define@key{Cou}{scaled}[0.95]{%
\def\Cr@scale{#1}}
\def\ProcessOptionsWithKV#1{%
\let\@tempc\relax
\let\Cr@tempa\@empty
\@for\CurrentOption:=\@classoptionslist\do{%
\@ifundefined{KV@#1@\CurrentOption}%
{}%
{\edef\Cr@tempa{\Cr@tempa,\CurrentOption,}}%
}%
\edef\Cr@tempa{%
\noexpand\setkeys{#1}{%
\Cr@tempa\@ptionlist{\@currname.\@currext}%
}%
}%
\Cr@tempa
}
\ProcessOptionsWithKV{Cou}
\AtEndOfPackage{%
\let\@unprocessedoptions\relax
}
\renewcommand{\ttdefault}{pcrs}
\endinput
%%
%% End of file `couriers.sty'.
This diff is collapsed.
\NeedsTeXFormat{LaTeX2e}
% \ProvidesClass{jpaper}[ASPLOS 2014 Submission template]
\ProvidesClass{jpaper}[2012/08/02 ISCA Submission template]
% jpaper provides two modes:
% In addition to the usual options leqno and fleqn, jpaper also provides the
% following additional flags (each of which can be turned on by specifying the
% flag as an option, or turned off by specifying "no"flag as an option):
% * lineno: Enables line numbering. This may be useful while editing.
% * pageno: Enables page numbering. This is useful for anything that is not
% * hyperref: Enables the hyperref package. While the hyperref package is
% normally convenient for your readers, IEEE PDF-eXpress does not allow it.
%
% The default set of options is camera,nolineno,nopageno,nohyperref.
\RequirePackage{etoolbox}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\newtoggle{jp@lineno}
\newtoggle{jp@pageno}
\newtoggle{jp@hyperref}
\DeclareOption{lineno}{\toggletrue{jp@lineno}}
\DeclareOption{nolineno}{\togglefalse{jp@lineno}}
\DeclareOption{pageno}{\toggletrue{jp@pageno}}
\DeclareOption{nopageno}{\togglefalse{jp@pageno}}
\DeclareOption{hyperref}{\toggletrue{jp@hyperref}}
\DeclareOption{nohyperref}{\togglefalse{jp@hyperref}}
\ExecuteOptions{nolineno,pageno,hyperref}
\ProcessOptions
% Load the underlying article class.
\LoadClass[letterpaper,10pt,twocolumn]{article}
% Standard packages.
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{verbatim}
\RequirePackage{fixltx2e}
\RequirePackage[usenames,dvipsnames,svgnames,table]{xcolor}
% Basic text typesetting options.
\RequirePackage{mathptmx}
\RequirePackage[scaled=0.833]{helvet}
\RequirePackage[scaled=0.875]{couriers}
\setlength{\parindent}{1em}
\RequirePackage{setspace}
\newcommand{\normalspacing}{}
\RequirePackage{microtype}
% High penalty for widows and orphans
\widowpenalty=300 \clubpenalty=300
% Page margins:
% 3/4" left and right, 1" top, 1 1/8" bottom.
\RequirePackage{geometry}
\geometry{lmargin=0.75in,rmargin=0.75in,tmargin=1in,bmargin=1in}
% 1/4" space between columns.
\setlength{\columnsep}{0.25in}
% Title formatting.
\RequirePackage{titling}
\setlength{\droptitle}{-3.5em}
\pretitle{\begin{center}\vspace{-.5in}
ASPLOS Submission \#\asplossubmissionnumber -- Confidential Draft -- Do Not Distribute!!\\
\vspace{.35in}
\normalfont\Large\bfseries}
\posttitle{\par\end{center}}
\preauthor{\begin{center}\normalfont\large%
\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{}
\postdate{}
% The abstract should be normally sized and italicized. Abstract leading
% should, in general, follow the normal leading.
\RequirePackage{abstract}
\newcommand{\abstractspacing}{\normalspacing}
\renewcommand{\abstractnamefont}{\normalfont\large\bfseries}
\renewcommand{\abstracttextfont}{\normalfont\itshape\abstractspacing}
\setlength{\absleftindent}{0in}
\setlength{\absrightindent}{0in}
\setlength{\abstitleskip}{-1.5em}
% Compress vertical space around section and subsection headings. Make
% subsubsection headings run-in (i.e. part of the following paragraph).
\RequirePackage[compact]{titlesec}
\titleformat{\section}[hang]{\normalfont\large\bfseries}{\thesection. }%
{0pt}{}{}
\titleformat{\subsection}[hang]{\normalfont\bfseries}{\thesubsection. }%
{0pt}{}{}
\titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection. }%
{0pt}{}{}
\newlength{\sectionspace}
\setlength{\sectionspace}{1.5ex plus 0.25ex}
\titlespacing*{\section}{0pt}{\sectionspace}{\sectionspace}
\titlespacing*{\subsection}{0pt}{\sectionspace}{\sectionspace}
\titlespacing*{\subsubsection}{0pt}{\parskip}{0.25em plus 0.1em minus 0.05em}
% Compress itemize and enumerate environments.
\RequirePackage{enumerate}
\RequirePackage{enumitem}
\setlist{noitemsep, leftmargin=*, topsep=0pt, partopsep=0pt}
% Bibliography formatting.
\newcommand{\bibspacing}{\setstretch{0}}
\let\jp@bibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
\jp@bibliography{#1}%
\setlength{\itemsep}{-0.25em} \footnotesize \bibspacing%
\vspace{-0.25em}}
% This is IEEEtran's bibliography formatting control macro.
\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
\def\@bstctlcite[#1]#2{\@bsphack
\@for\@citeb:=#2\do{%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\csname #1\endcsname%
{\string\citation{\@citeb}}\fi}%
\@esphack}
% Settings for figures and tables. Figure captions are placed below the figure,
% while table captions are placed above the table. All captions are sans-serif.
\RequirePackage[font={normalsize,sf,bf}]{caption}
\RequirePackage[position=bottom]{subfig}
\captionsetup[table]{aboveskip=0.5em, belowskip=0.5em}
\captionsetup[figure]{aboveskip=0.5em, belowskip=0em}
\captionsetup[subfloat]{font={small,sf}}
\setcounter{topnumber}{2}
\setcounter{dbltopnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\renewcommand{\topfraction}{0.85}
\renewcommand{\dbltopfraction}{0.9}
\renewcommand{\bottomfraction}{0.85}
\renewcommand{\textfraction}{0.07}
\renewcommand{\floatpagefraction}{0.85}
\renewcommand{\dblfloatpagefraction}{0.85}
\setlength{\floatsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\dblfloatsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\textfloatsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\dbltextfloatsep}{0.5em plus 0.2em minus 0.2em}
% Utility packages for floats and tables.
\RequirePackage{float}
\RequirePackage{graphicx}
\RequirePackage{booktabs}
\RequirePackage{multirow}
% Page numbering.
\iftoggle{jp@pageno}{%
\pagestyle{plain}
\newcommand{\jp@mt@pageno}{}}{%
\pagestyle{empty}
\newcommand{\jp@mt@pageno}{\thispagestyle{empty}}}
% Line numbering.
\iftoggle{jp@lineno}{%
\RequirePackage{lineno}
\renewcommand{\linenumberfont}{\normalfont\tt\small}
\newcommand{\jp@mt@lineno}{\linenumbers}
}{%
\newcommand{\jp@mt@lineno}{}
}
% Replace maketitle to invoke settings for leading, page numbering, and line
% numbering.
\let\jp@maketitle\maketitle
\renewcommand{\maketitle}{%
\jp@maketitle%
\jp@mt@pageno%
\jp@mt@lineno%
\normalspacing}
% Footnotes may not span pages.
\interfootnotelinepenalty=10000
% Formatting for margin notes (which you may find useful during editing).
\let\jp@marginpar\marginpar
\renewcommand\marginpar[1]{\jp@marginpar%
[\raggedleft\singlespacing\footnotesize\color{red} #1]%
{\raggedright\singlespacing\footnotesize\color{red} #1}}
\setlength{\marginparwidth}{0.65in}
% Link and URL formatting.
\iftoggle{jp@hyperref}{%
\RequirePackage{hyperref}
\hypersetup{%
unicode=true,%
pdfstartview={FitH},%
colorlinks=true,%
citecolor=red,%
%filecolor=black,%
%linkcolor=black,%
%urlcolor=black
}}{}
\RequirePackage{url}
% Scientific units.
\RequirePackage[squaren]{SIunits}
\endinput
\documentclass[pageno]{jpaper}
%replace XXX with the submission number you are given from the ASPLOS submission site.
\newcommand{\asplossubmissionnumber}{XXX}
\usepackage[normalem]{ulem}
\begin{document}
\title{
Instructions for Submission to ASPLOS 2015}
\date{}
\maketitle
\thispagestyle{empty}
Test
~\cite{lamport94}
\bibliographystyle{plain}
\bibliography{references}
\end{document}
@book{lamport94,
author = "Leslie Lamport",
title = "{\LaTeX: A Document Preparation System}",
year = "1994",
publisher = "Addison-Wesley",
edition = "2nd",
address = "Reading, Massachusetts"
}
@inproceedings{nicepaper1,
author = "Firstname1 Lastname1 and Firstname2 Lastname2",
title = "A Very Nice Paper To Cite",
year = "2012",
booktitle = "Proceedings of the 33rd Annual ACM SIGPLAN Conference on Programming Language Design and Implementation"
}
@inproceedings{nicepaper2,
author = "Firstname1 Lastname1 and Firstname2 Lastname2 and Firstname3 Lastname3",
title = "Another Very Nice Paper to Cite",
year = "2011",
booktitle = "Proceedings of the 22nd ACM Symposium on Operating Systems Principles"
}
@inproceedings{nicepaper3,
author = "Firstname1 Lastname1 and Firstname2 Lastname2 and Firstname3 Lastname3 and Firstname4 Lastname4 and Firstname5 Lastname5",
title = "Yet Another Very Nice Paper To Cite, With Many Author Names All Spelled Out",
year = "2011",
booktitle = "Proceedings of the 38th Annual International Symposium on Computer Architecture"
}
%%
%% This is file `titling.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% titling.dtx (with options: `usc')
%%
%% -----------------------------------------------------------------
%% Author: Peter Wilson (Herries Press)
%% Maintainer: Will Robertson (will dot robertson at latex-project dot org)
%% Copyright 2000--2004 Peter R. Wilson
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any
%% later version: <http://www.latex-project.org/lppl.txt>
%%
%% This work has the LPPL maintenance status "maintained".
%% The Current Maintainer of this work is Will Robertson.
%%
%% This work consists of the files listed in the README file.
%% -----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{titling}[2009/09/04 v2.1d maketitle typesetting]
\newcommand{\pretitle}[1]{\def\@bspretitle{#1}}
\newcommand{\posttitle}[1]{\def\@bsposttitle{#1}}
\newcommand{\preauthor}[1]{\def\@bspreauthor{#1}}
\newcommand{\postauthor}[1]{\def\@bspostauthor{#1}}
\newcommand{\predate}[1]{\def\@bspredate{#1}}
\newcommand{\postdate}[1]{\def\@bspostdate{#1}}
\if@titlepage
\pretitle{\begin{center}\LARGE}
\posttitle{\par\end{center}\vskip 2em}
\preauthor{\begin{center}
\large \lineskip .75em%
\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{\begin{center}\large}
\postdate{\par\end{center}}
\else
\pretitle{\begin{center}\LARGE}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{center}
\large \lineskip .5em%
\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{\begin{center}\large}
\postdate{\par\end{center}}
\fi
\newcommand{\maketitlehooka}{}
\newcommand{\maketitlehookb}{}
\newcommand{\maketitlehookc}{}
\newcommand{\maketitlehookd}{}
\newcommand{\thanksmarkseries}[1]{%
\def\@bsmarkseries{\renewcommand{\thefootnote}{\@nameuse{#1}{footnote}}}}
\newcommand{\symbolthanksmark}{\thanksmarkseries{\fnsymbol}}
\newcommand{\@bscontmark}{\setcounter{footnote}{0}}
\newcommand{\continuousmarks}{\def\@bscontmark{}}
\newcommand{\thanksheadextra}[2]{%
\def\@bsthanksheadpre{#1}%
\def\@bsthanksheadpost{#2}}
\newcommand{\thanksfootextra}[2]{%
\def\thanksfootpre{#1}%
\def\thanksfootpost{#2}}
\DeclareRobustCommand{\thanksmark}[1]{\footnotemark[#1]}
\newcommand{\thanksgap}[1]{\hspace{#1}}
\newcommand{\tamark}{\@thefnmark}
\newlength{\thanksmarkwidth}
\newlength{\thanksmargin}
\newcommand{\thanksscript}[1]{\textsuperscript{#1}}
\newcommand{\makethanksmarkhook}{}
\newcommand{\thanksfootmark}{%
\hb@xt@\thanksmarkwidth{\hfil\normalfont\thanksscript{%
\thanksfootpre \tamark \thanksfootpost}}}
\newcommand{\makethanksmark}{%
\leavevmode%
\makethanksmarkhook\relax
\parindent 1em\noindent
\leftskip\thanksmargin\relax
\advance\leftskip \thanksmarkwidth \null\nobreak\hskip -\leftskip
\thanksfootmark
}
\newcommand{\usethanksrule}{\let\footnoterule\thanksrule}
\newcommand{\cancelthanksrule}{\let\footnoterule\@bsfootnoterule}
\if@titlepage
\thanksmarkseries{arabic} % normal footnote numbers
\else
\thanksmarkseries{fnsymbol}
\fi
\thanksheadextra{}{}
\thanksfootextra{}{}
\setlength{\thanksmarkwidth}{1.8em}
\setlength{\thanksmargin}{-\thanksmarkwidth}
\AtBeginDocument{%
\let\thanksrule\footnoterule
\let\@bsfootnoterule\footnoterule
}
\newlength{\droptitle}
\setlength{\droptitle}{0pt}
\providecommand{\maketitle}{}
\if@titlepage
\renewcommand{\maketitle}{\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\@bsmarkseries
\def\@makefnmark{\rlap{\@textsuperscript{%
\normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}}%
\long\def\@makefntext##1{\makethanksmark ##1}
\null\vfil
\vskip 60\p@
\vspace*{\droptitle}
\maketitlehooka
{\@bspretitle \@title \@bsposttitle}
\maketitlehookb
{\@bspreauthor \@author \@bspostauthor}
\maketitlehookc
{\@bspredate \@date \@bspostdate}
\maketitlehookd
\par
\@thanks
\vfil\null
\end{titlepage}%
\@bscontmark % \setcounter{footnote}{0}%
%%% \@bsmtitlempty
} % end titlepage defs
\else
\renewcommand{\maketitle}{\par
\begingroup
\@bsmarkseries
\def\@makefnmark{\rlap{\@textsuperscript{%
\normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}}%
\long\def\@makefntext##1{\makethanksmark ##1}
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@
\@maketitle
\fi
\thispagestyle{plain}\@thanks
\endgroup
\@bscontmark % \setcounter{footnote}{0}%
%%% \@bsmtitlempty
} % end non-titlepage
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\vspace*{\droptitle}
\maketitlehooka
{\@bspretitle \@title \@bsposttitle}
\maketitlehookb
{\@bspreauthor \@author \@bspostauthor}
\maketitlehookc
{\@bspredate \@date \@bspostdate}
\maketitlehookd
\par
\vskip 1.5em}
\fi
\newenvironment{titlingpage}%
{%
\let\footnoterule\relax
\let\footnotesize\small
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\thispagestyle{empty}
\setcounter{page}\@ne
}{%
\thispagestyle{empty}
\if@restonecol\twocolumn \else \newpage \fi
\if@twoside\else \setcounter{page}\@ne\fi}
\newcommand{\calccentering}[2]{
#1 = \paperwidth
\advance #1 by -\textwidth
\divide #1 by \tw@
\advance #1 by -#2
\advance #1 by -\hoffset
\advance #1 by -1in
}
\newcommand{\emptythanks}{\global\let\@thanks\@empty}
\newcommand{\@bsmtitlempty}{%
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\thanksmarkseries\relax
\global\let\thanksheadextra\relax
\global\let\thanksfootextra\relax
\global\let\thanksmark\relax
\global\let\thanksgap\relax
}
\newcommand{\keepthetitle}{%
\@bsmtitlempty
\global\let\thanks\relax
\global\let\and\relax
\global\let\@thanks\@empty
\global\let\@title\@empty
\global\let\@author\@empty
\global\let\@date\@empty
}
\providecommand{\killtitle}{}
\renewcommand{\killtitle}{%
\keepthetitle
\global\let\thetitle\relax
\global\let\theauthor\relax
\global\let\thedate\relax
}
\providecommand{\appendiargdef}[2]{\begingroup
\toks@\expandafter{#1{##1}#2}%
\edef\@bsx{\endgroup \def\noexpand#1####1{\the\toks@}}%
\@bsx}
\appendiargdef{\title}{%
\begingroup
\renewcommand{\thanks}[1]{}
\renewcommand{\thanksmark}[1]{}
\renewcommand{\thanksgap}[1]{}
\protected@xdef\thetitle{#1}
\endgroup}
\appendiargdef{\author}{%
\begingroup
\renewcommand{\thanks}[1]{}
\renewcommand{\and}{\unskip, }
\renewcommand{\thanksmark}[1]{}
\renewcommand{\thanksgap}[1]{}
\protected@xdef\theauthor{#1}
\endgroup}
\appendiargdef{\date}{%
\begingroup
\renewcommand{\thanks}[1]{}
\renewcommand{\thanksmark}[1]{}
\renewcommand{\thanksgap}[1]{}
\protected@xdef\thedate{#1}
\endgroup}
\endinput
%%
%% End of file `titling.sty'.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment