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