annotate SMC2015latex/smc2015.sty @ 40:6371e8f21f7d

updating the syncopation functions to fix a few problems
author christopherh <christopher.harte@eecs.qmul.ac.uk>
date Thu, 23 Apr 2015 15:46:58 +0100
parents e19c519e7e3f
children
rev   line source
christopher@31 1 % Latex Paper Template for SMC 2015
christopher@31 2 % slightly adapted version of the templates for SMC 2011, SMC 2010 and ISMIR 2009
christopher@31 3 %
christopher@31 4 % Version 20111229
christopher@31 5 % Adapded for Sound And Music computing conference
christopher@31 6 % The bibliography style is now the most recent IEEEtran.bst
christopher@31 7
christopher@31 8 \def\Hline{\noalign{\hrule height 0.4mm}}
christopher@31 9 %\newcommand{\bm}[1]{\mbox{\boldmath{$#1$}}}
christopher@31 10 \newcommand{\figbox}[1]{\fbox{\parbox{\columnwidth}{\centering{ #1 }}}}
christopher@31 11 \newcommand{\range}[2]{{#1,\cdots,#2\;}}
christopher@31 12 \newcommand{\secref}[1]{\mbox{Section~\ref{#1}}}
christopher@31 13 \newcommand{\tabref}[1]{\mbox{Table~\ref{#1}}}
christopher@31 14 \newcommand{\figref}[1]{\mbox{Figure~\ref{#1}}}
christopher@31 15 \newcommand{\eqnref}[1]{\mbox{Eq.~(\ref{#1})}}
christopher@31 16
christopher@31 17 \renewcommand{\sfdefault}{phv}
christopher@31 18 \renewcommand{\rmdefault}{ptm}
christopher@31 19 \renewcommand{\ttdefault}{pcr}
christopher@31 20
christopher@31 21 \setlength{\paperheight}{297mm}
christopher@31 22 \setlength{\paperwidth}{210mm}
christopher@31 23 \setlength{\textheight}{252mm}
christopher@31 24 \setlength{\textwidth}{172mm}
christopher@31 25 \setlength{\columnsep}{8mm}
christopher@31 26 \setlength{\headheight}{0mm}
christopher@31 27 \setlength{\voffset}{-12mm}
christopher@31 28 \setlength{\hoffset}{0mm}
christopher@31 29 \setlength{\marginparwidth}{0mm}
christopher@31 30 \setlength{\parindent}{2mm} %1pc
christopher@31 31 \setlength{\topmargin}{-5mm}
christopher@31 32 \setlength{\oddsidemargin}{-6mm}
christopher@31 33 \setlength{\evensidemargin}{-6mm}
christopher@31 34
christopher@31 35 \setlength\normallineskip{1\p@}
christopher@31 36 \setlength\parskip{0\p@ \@plus \p@}
christopher@31 37 %\def\baselinestretch{0.98}
christopher@31 38
christopher@31 39 \def\normalsize{\@setsize\normalsize{12pt}\xpt\@xpt}
christopher@31 40 \def\small{\@setsize\small{10pt}\ixpt\@ixpt}
christopher@31 41 \def\footnotesize{\@setsize\footnotesize{8pt}\viiipt\@viiipt}
christopher@31 42 \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
christopher@31 43 \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
christopher@31 44 \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
christopher@31 45 \def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
christopher@31 46 \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
christopher@31 47 \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
christopher@31 48 \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}
christopher@31 49
christopher@31 50 \twocolumn
christopher@31 51 \pagestyle{empty}
christopher@31 52
christopher@31 53 \def\maketitle{\par
christopher@31 54 \begingroup
christopher@31 55 \def\thefootnote{}
christopher@31 56 \def\@makefnmark{
christopher@31 57 \hbox
christopher@31 58 {$^{\@thefnmark}$\hss}
christopher@31 59 }
christopher@31 60 \twocolumn[\@maketitle]
christopher@31 61 \permission
christopher@31 62 \@thanks
christopher@31 63 \endgroup
christopher@31 64 \setcounter{footnote}{0}
christopher@31 65 \let\maketitle\relax
christopher@31 66 \let\@maketitle\relax
christopher@31 67 \gdef\thefootnote{
christopher@31 68 \arabic{footnote}
christopher@31 69 }
christopher@31 70 \gdef\@@savethanks{}
christopher@31 71 \gdef\@thanks{}
christopher@31 72 \gdef\@author{}
christopher@31 73 \gdef\@title{}
christopher@31 74 \let\thanks\relax
christopher@31 75 }
christopher@31 76
christopher@31 77 \def\@maketitle{
christopher@31 78 \newpage
christopher@31 79 \null
christopher@31 80 \begin{center} {
christopher@31 81 \Large \bf \@title \par
christopher@31 82 }
christopher@31 83 \vskip 2.0em {
christopher@31 84 \normalsize \lineskip .5em
christopher@31 85 \begin{tabular}[t]{c}
christopher@31 86 \@author \\
christopher@31 87 \end{tabular}
christopher@31 88 \par
christopher@31 89 }
christopher@31 90 \end{center}
christopher@31 91 \par
christopher@31 92 \vskip 2.0em
christopher@31 93 }
christopher@31 94
christopher@31 95 \newcommand{\permission}{
christopher@31 96 \begin{figure}[b]
christopher@31 97 {\scriptsize{\it Copyright: \copyright 2015 \firstauthor \hspace*{1 pt} et al. This is an open-access article distributed under the terms of the \href{http://creativecommons.org/licenses/by/3.0/}{\textcolor {magenta} {\underline {Creative Commons Attribution 3.0 Unported License}}}, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.}}
christopher@31 98 %{\copyright~Copyright notice here}
christopher@31 99 \end{figure}}
christopher@31 100
christopher@31 101 \def\oneauthor#1#2{
christopher@31 102 \gdef\@author{
christopher@31 103 \begin{tabular}{@{}c@{}}
christopher@31 104 {\bf #1} \\
christopher@31 105 #2\relax
christopher@31 106 \end{tabular}\hskip .3in
christopher@31 107 }
christopher@31 108 }
christopher@31 109
christopher@31 110 \def\twoauthors#1#2#3#4{
christopher@31 111 \gdef\@author{
christopher@31 112 \begin{tabular}{@{}c@{}}
christopher@31 113 {\bf #1} \\
christopher@31 114 #2
christopher@31 115 \end{tabular}\hskip 1.5in
christopher@31 116 \begin{tabular}{@{}c@{}}
christopher@31 117 {\bf #3} \\
christopher@31 118 #4\relax
christopher@31 119 \end{tabular}
christopher@31 120 }
christopher@31 121 }
christopher@31 122
christopher@31 123 \def\threeauthors#1#2#3#4#5#6{
christopher@31 124 \gdef\@author{
christopher@31 125 \begin{tabular}{@{}c@{}}
christopher@31 126 {\bf #1} \\
christopher@31 127 #2
christopher@31 128 \end{tabular}\hskip .3in
christopher@31 129 \begin{tabular}{@{}c@{}}
christopher@31 130 {\bf #3} \\
christopher@31 131 #4
christopher@31 132 \end{tabular}\hskip .3in
christopher@31 133 \begin{tabular}{@{}c@{}}
christopher@31 134 {\bf #5} \\
christopher@31 135 #6\relax
christopher@31 136 \end{tabular}
christopher@31 137 }
christopher@31 138 }
christopher@31 139
christopher@31 140 \def\abstract{
christopher@31 141 \begin{center}{
christopher@31 142 \bf ABSTRACT
christopher@31 143 }
christopher@31 144 \end{center}
christopher@31 145 }
christopher@31 146 \def\endabstract{\par}
christopher@31 147
christopher@31 148 \def\title#1{\gdef\@title{\uppercase{#1}}}
christopher@31 149
christopher@31 150 \newif\if@smcsection
christopher@31 151
christopher@31 152 \renewcommand\section{
christopher@31 153 \@smcsectiontrue
christopher@31 154 \@startsection
christopher@31 155 {section}
christopher@31 156 {1}
christopher@31 157 {\z@}
christopher@31 158 {-3.5ex \@plus -1ex \@minus -.2ex}
christopher@31 159 {6pt \@plus.2ex}
christopher@31 160 {\large\bf\centering}
christopher@31 161 }
christopher@31 162
christopher@31 163 \renewcommand\subsection{
christopher@31 164 \@smcsectionfalse
christopher@31 165 \@startsection
christopher@31 166 {subsection}
christopher@31 167 {2}
christopher@31 168 {\z@}
christopher@31 169 {-2.5ex \@plus -1ex \@minus -.2ex}
christopher@31 170 {6pt \@plus.2ex}
christopher@31 171 {\normalsize\bf\raggedright}
christopher@31 172 }
christopher@31 173
christopher@31 174 \renewcommand\subsubsection{
christopher@31 175 \@smcsectionfalse
christopher@31 176 \@startsection
christopher@31 177 {subsubsection}
christopher@31 178 {3}
christopher@31 179 {\z@}
christopher@31 180 {-1.5ex \@plus -1ex \@minus -.2ex}
christopher@31 181 {6pt \@plus.2ex}
christopher@31 182 {\normalsize\it\raggedright}
christopher@31 183 }
christopher@31 184
christopher@31 185 \def\@sect#1#2#3#4#5#6[#7]#8{
christopher@31 186 \refstepcounter{#1}
christopher@31 187 \if@smcsection
christopher@31 188 \edef\@svsec{\csname the#1\endcsname.\hskip 0.6em}
christopher@31 189 \else
christopher@31 190 \edef\@svsec{\csname the#1\endcsname\hskip 0.6em}
christopher@31 191 \fi
christopher@31 192 \begingroup
christopher@31 193 \ifnum #2=1
christopher@31 194 \bf\centering{\interlinepenalty \@M \@svsec\uppercase{#8}\par}
christopher@31 195 \else
christopher@31 196 \ifnum #2=2
christopher@31 197 \bf\raggedright
christopher@31 198 \noindent{\interlinepenalty \@M \@svsec #8\par}
christopher@31 199 \else
christopher@31 200 \it\raggedright
christopher@31 201 \noindent{\interlinepenalty \@M \@svsec #8\par}
christopher@31 202 \fi
christopher@31 203 \fi
christopher@31 204 \endgroup
christopher@31 205 \csname #1mark\endcsname{#7}\addcontentsline
christopher@31 206 {toc}{#1}{\protect\numberline
christopher@31 207 \if@smcsection
christopher@31 208 {\csname the#1\endcsname.}
christopher@31 209 \else
christopher@31 210 {\csname the#1\endcsname}
christopher@31 211 \fi
christopher@31 212 #7}
christopher@31 213 \@tempskipa #5\relax
christopher@31 214 \@xsect{\@tempskipa}
christopher@31 215 }
christopher@31 216
christopher@31 217 \newenvironment{acknowledgments}%
christopher@31 218 {%
christopher@31 219 \vskip 2.5ex {\normalsize\bf\raggedright Acknowledgments}
christopher@31 220 \vspace*{6pt} \\
christopher@31 221 \noindent
christopher@31 222 }%
christopher@31 223 {%
christopher@31 224 \par
christopher@31 225 }
christopher@31 226
christopher@31 227
christopher@31 228 \bibliographystyle{IEEEtran}
christopher@31 229
christopher@31 230 \def\thebibliography#1{
christopher@31 231 \section{References}\list
christopher@31 232 {[\arabic{enumi}]}{
christopher@31 233 \settowidth\labelwidth{[#1]}\leftmargin 1em
christopher@31 234 \advance\leftmargin\labelsep
christopher@31 235 \usecounter{enumi}
christopher@31 236 }
christopher@31 237 \def\newblock{\hskip .01em plus .01em minus .01em}
christopher@31 238 \sloppy\clubpenalty4000\widowpenalty4000
christopher@31 239 \sfcode`\.=1000\relax
christopher@31 240 }
christopher@31 241
christopher@31 242 \let\endthebibliography=\endlist
christopher@31 243
christopher@31 244 \long\def\@makecaption#1#2{
christopher@31 245 \vskip 10pt
christopher@31 246 \setbox\@tempboxa\hbox{#1. #2}
christopher@31 247 \ifdim
christopher@31 248 \wd\@tempboxa >\hsize #1. #2\par
christopher@31 249 \else
christopher@31 250 \hbox
christopher@31 251 to\hsize{\hfil\box\@tempboxa\hfil}
christopher@31 252 \fi
christopher@31 253 }
christopher@31 254
christopher@31 255 \def\fnum@figure{{\bf Figure\ \thefigure}}
christopher@31 256 \def\fnum@table{{\bf Table \thetable}}
christopher@31 257
christopher@31 258 \flushbottom