texstuff.tex 3.66 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
\documentclass{sig-alternate-10pt}
%\documentclass{ubicomp2013}
%\usepackage[preprint]{acmconf}
%\usepackage{times}

\usepackage{alltt}
\usepackage{epsfig}
\usepackage{verbatim}
\usepackage{fancybox}
\usepackage{multirow}
%\usepackage{slashbox}
%\usepackage{colortbl}
\usepackage{rotating}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[obeyspaces,spaces] {url}

% for degree symbol
\usepackage{gensymb}

\graphicspath{ {images/} }

%KiatWee
\usepackage{hyperref}

\newcommand\unit{\,}

\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{times}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{stfloats}
\usepackage{listings}
\usepackage{xspace}
\usepackage{comment}
\usepackage{amsmath,amsfonts}
\renewcommand{\sfdefault}{phv}
\renewcommand{\rmdefault}{ptm}


\renewcommand{\baselinestretch}{0.90}
\usepackage{fancyvrb}
\usepackage{fixltx2e}

\fvset{framesep=2mm,fontsize=\scriptsize,framerule=.1mm,numbersep=1mm,commandchars=\\\{\}}

\usepackage[usenames,dvipsnames]{color}


%remove page numbering for final version
%\pagenumbering{arabic}
\pagestyle{plain}

\clubpenalty=10000
\widowpenalty = 10000

% to make various LaTeX processors do the right thing with page size
\special{papersize=8.5in,11in}
\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}
\setlength{\pdfpageheight}{\paperheight}
\setlength{\pdfpagewidth}{\paperwidth}

%% ---------- This is a decent format for 2 columns
\renewcommand{\ttdefault}{cmtt}
\usepackage{mathptm}

\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}

%\setlength{\columnsep}{0.25in}
%\setlength {\topmargin}{-0.65in}

%\setlength\abovecaptionskip{0pt}
%\setlength\belowcaptionskip{4pt plus 2pt minus 2pt}
\setlength{\floatsep}{2pt plus 1pt minus 1pt}
\setlength{\dblfloatsep}{2pt plus 1pt minus 1pt}
\setlength{\textfloatsep}{2pt plus 1pt minus 1pt}
\setlength{\dbltextfloatsep}{2pt plus 1pt minus 1pt}

% Reduce vertical space between paragraphs
\setlength{\partopsep}{-5pt}

\makeatletter
\long\def\unmarkedfootnote#1{{\long\def\@makefntext##1{##1}\footnotetext{#1}}}
\newcommand{\annote}[1]{\textsf{\sl{#1}}}
\newcommand{\schooladdr}[1]{\thanks{#1}}
\newcommand{\funding}[1]{\unmarkedfootnote{\scriptsize{#1}}}
\newtheorem{thm}{Theorem}
\def\ln{\hspace{0.1cm}}

\newtheorem{defn}{Definition}[section]

\makeatother
\newcounter{foo_counter}

\newenvironment{smenumerate}%
  {
     \begin{list}{\arabic{foo_counter}}%
     {\usecounter{foo_counter}
      \setlength{\parsep}{0pt}%
      \setlength{\topsep}{4pt}%
      \setlength{\itemsep}{0pt}}}%
  {\end{list}
 }

\definecolor{gray}{gray}{0.8}
\definecolor{lightgray}{gray}{0.6}

\newenvironment{smitemize}%
  {\begin{list}{$\bullet$}{%
      \setlength{\parsep}{0pt}%
      \setlength{\topsep}{0pt}%
      \setlength{\itemsep}{4pt}}}%
  {\end{list}}



\newcommand{\bulletpoint}[1]{\noindent{\bf #1}\ }


\newenvironment{captiontext}{%
   \begin{center}%
     \begin{minipage}{0.9\linewidth}%
       \renewcommand{\baselinestretch}{0.9}%
         \sffamily\small}%
   {\renewcommand{\baselinestretch}{1.0}%
      \end{minipage}%
        \end{center}}


\newenvironment{ColVerb}%
	{\VerbatimEnvironment
	\begin{Sbox}\begin{minipage}{75mm}\begin{alltt}}%
	{\end{alltt}\end{minipage}\end{Sbox}
	\setlength{\fboxsep}{2mm}\fbox{\TheSbox}}

\newenvironment{PageVerb}%
	{\VerbatimEnvironment
	\begin{Sbox}\begin{minipage}{158mm}\begin{alltt}}%
	{\end{alltt}\end{minipage}\end{Sbox}
	\setlength{\fboxsep}{2mm}\fbox{\TheSbox}}

\newenvironment{abstracttext}{%
   \begin{center}%
     \begin{minipage}{0.9\linewidth}%
         \sffamily\small}%
     {\end{minipage}%
        \end{center}}