dafx_19.sty (15489B)
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 % 3 % File: dafx_19.sty (LaTeX Document style option "dafx_19") 4 % 5 % Usage: \documentclass{article} 6 % \usepackage{dafx_19} 7 % 8 % Or for LaTeX 2.09: 9 % Usage: \documentstyle[...,dafx_19,...]{article} 10 % 11 % Purpose: 12 % 13 % Style file for Conference on Digital Audio Effects (DAFx-19). 14 % Modified from waspaa99.sty 15 % Features: 16 % - correct page size (175mm x 226mm) 17 % - use times-roman font as default font (roman font) in order to achieve 18 % best quality on paper and screen 19 % - twocolumn format 20 % - boldfaced, numbered, and centered section headings 21 % - correct subsection and subsubsection headings 22 % - use \title{xx} for title, will automatically be typeset uppercase (not need for the user to do so) 23 % 24 % NEW NEW NEW 25 % 26 % - use \affiliation{author1, author2, ... and authorN}{address} for author(s) <typeset in italics> 27 % with a single affiliation (address) 28 % - use \affiliationS{author}{address1}{address2} for author(s) <typeset in italics> 29 % with double affiliation (address) 30 % - use \twoaffiliations{author1}{address1}{author2}{address2} 31 % for two (or more) authors with two separate addresses 32 % - use \threeaffiliations{author1}{address1}{author2}{address2}{author3}{address3} 33 % for three (or more) authors with three separate addresses 34 % - use \fouraffiliations{author1}{address1}{author2}{address2}{author3}{address3}{author4}{address4} 35 % for four (or more) authors with four separate addresses 36 % - note: no need for \name \address \author nor \date 37 % 38 % - optional: can use \thanks{xx} within \affiliation, \affiliations, etc. 39 % asterisk is not printed after name nor in footnote 40 % - optional: can use \sthanks{xx} after each name within \name or 41 % \twoauthors if different thanks for each author, 42 % footnote symbol will appear for each name and footnote 43 % - optional: use \ninept to typeset text in 9 pt; default is 10pt. 44 % 45 % Example of use for one or more authors at a common address and 46 % common support. For distinct support acknowledgments, 47 % use \sthanks{xx} after each name. 48 % 49 % \documentstyle[dafx_19]{article} 50 % \title{Title of the paper} 51 % \affiliation{George P. Burdell and John Q. Professor 52 % \thanks{This work was supported by...}} 53 % {Common address, department \\ 54 % City, etc \\ 55 % optional e-mail address} 56 % 57 % \begin{document} 58 % OPTIONAL --> \ninept <-- OPTIONAL, for nine pt only 59 % \maketitle 60 % \begin{abstract} 61 % This is the abstract for my paper. 62 % \end{abstract} 63 % . 64 % Insert text of paper 65 % . 66 % \end{document} 67 % 68 % Example of use for authors at two distinct addresses with only 69 % one support acknowledgment. For distinct support acknowledgments, 70 % use \sthanks{xx} after each name. 71 % 72 % \documentstyle[dafx_19]{article} 73 % \title{Title of the paper} 74 % \twoaffiliations{John Doe 75 % \thanks{This work was supported by...}} 76 % {Doe's address, department \\ 77 % City, etc \\ 78 % optional e-mail address} 79 % {Judy Smith} 80 % {Smith's address, department \\ 81 % City, etc \\ 82 % optional e-mail address} 83 % 84 % \begin{document} 85 % OPTIONAL --> \ninept <-- OPTIONAL, for nine pt only 86 % \maketitle 87 % \begin{abstract} 88 % This is the abstract for my paper. 89 % \end{abstract} 90 % . 91 % Insert text of paper 92 % . 93 % \end{document} 94 % 95 % 96 % PLEASE REPORT ANY BUGS 97 % 98 % Author: Stephen Martucci -- martucci@cdg.nj.nec.com 99 % Modifications: Jyri Huopaniemi -- jyri.huopaniemi@research.nokia.com 100 % the Dafx crew -- dafx@sci.univr.it 101 % The DAFx04 crew -- dafx04@na.infn.it 102 % The DAFx06 crew -- dafx06@dafx.ca 103 % The DAFx07 crew -- dafx07@labri.fr 104 % The DAFx08 crew -- dafx08@acousctics.hut.fi 105 % The DAFx09 crew -- dafx09@como.polimi.it 106 % The DAFx10 crew -- dafx10@iem.at 107 % The DAFx12 crew -- papers@dafx12.york.ac.uk 108 % The DAFx13 crew -- papers@dafx13.nuim.ie 109 % The DAFx14 crew -- dafx14@audiolabs-erlangen.de 110 % The DAFx16 crew -- dafx16@vutbr.cz 111 % The DAFx17 crew -- dafx17@ed.ac.uk 112 % The DAFx19 crew -- dafx2019@gmail.com 113 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 114 % 115 %change default font to times-roman 116 \renewcommand{\sfdefault}{phv} 117 \renewcommand{\rmdefault}{ptm} 118 \renewcommand{\ttdefault}{pcr} 119 120 \oddsidemargin -0.31in 121 \evensidemargin -0.31in 122 123 \topmargin 0truept 124 \headheight 12truept 125 \footskip 0truept 126 \textheight 226truemm 127 \textwidth 175truemm 128 \voffset -14truept 129 \headsep 18truept 130 131 \twocolumn 132 \columnsep 8truemm 133 \pagestyle{empty} 134 \def\ninept{\def\baselinestretch{0.95}\let\normalsize\small\normalsize} 135 136 \def\maketitle{\par 137 \begingroup 138 \def\thefootnote{} 139 \def\@makefnmark{\hbox to 6pt{$^{\@thefnmark}$\hss}} 140 \if@twocolumn 141 \twocolumn[\@maketitle] 142 \else \newpage 143 \global\@topnum\z@ \@maketitle \fi 144 145 \permission 146 \@thanks 147 \endgroup 148 \setcounter{footnote}{0} 149 \let\maketitle\relax 150 \let\@maketitle\relax 151 \gdef\thefootnote{\arabic{footnote}}\gdef\@@savethanks{}% 152 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax} 153 154 \def\@maketitle{\newpage 155 \null 156 \vskip 1em 157 \begin{center} 158 {\large \bf \@title \par} \vskip 2em 159 {% 160 %\large 161 %\ninept 162 \lineskip .5em 163 \begin{tabular}[t]{c}\@name \\ \@address 164 \end{tabular}\par} 165 \end{center} 166 \par 167 \vskip 1.4em} 168 169 170 \newcommand{\permission}{ 171 \begin{figure}[b] 172 \vspace{-0.6cm} 173 % \ContinuedFloat 174 {\scriptsize{\it Copyright:~\copyright \hspace*{1 pt} 2019 \paperauthorA \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/}{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.}} 175 %{\copyright~Copyright notice here} 176 %\caption*{} 177 \end{figure}} 178 179 \def\title#1{\gdef\@title{\MakeUppercase{#1}}} 180 \gdef\@title{\uppercase{title of paper}} 181 \gdef\@name{{\em Name of author}\\} 182 \gdef\@address{Address - Line 1 \\ 183 Address - Line 2 \\ 184 Address - Line 3} 185 186 \let\@@savethanks\thanks 187 \def\thanks#1{\gdef\thefootnote{}\@@savethanks{#1}} 188 \def\sthanks#1{\gdef\thefootnote{\fnsymbol{footnote}}\@@savethanks{#1}} 189 190 \def\affiliationSpace{2mm} 191 192 \def\affiliation#1#2{\gdef\@address{} 193 \gdef\@name{ 194 \begin{minipage}[t]{\linewidth} 195 \centering 196 {\em #1}\\[\affiliationSpace] 197 #2\relax 198 \end{minipage} 199 } 200 } 201 202 \def\affiliations#1#2#3{\gdef\@address{} 203 \gdef\@name{\begin{tabular}{@{}c@{}} 204 {\em #1} \\ \vspace*{\affiliationSpace}\\ 205 \begin{tabular}{@{}c@{}} 206 #2\relax 207 \end{tabular}\hskip 0.3in 208 \begin{tabular}{@{}c@{}} 209 #3\relax 210 \end{tabular} 211 \end{tabular} 212 } 213 } 214 215 \def\twoaffiliations#1#2#3#4{\gdef\@address{} 216 \gdef\@name{ 217 \begin{minipage}[t]{.5\linewidth} 218 \centering 219 {\em #1}\\[\affiliationSpace] 220 #2\relax 221 \end{minipage}% 222 \begin{minipage}[t]{.5\linewidth} 223 \centering 224 {\em #3}\\[\affiliationSpace] 225 #4\relax 226 \end{minipage}% 227 } 228 } 229 230 \def\threeaffiliations#1#2#3#4#5#6{\gdef\@address{} 231 \gdef\@name{ 232 \begin{minipage}[t]{.333\linewidth} 233 \centering 234 {\em #1}\\[\affiliationSpace] 235 #2\relax 236 \end{minipage}% 237 \hfill% 238 \begin{minipage}[t]{.333\linewidth} 239 \centering 240 {\em #3}\\[\affiliationSpace] 241 #4\relax 242 \end{minipage}% 243 \hfill% 244 \begin{minipage}[t]{.333\linewidth} 245 \centering 246 {\em #5}\\[\affiliationSpace] 247 #6\relax 248 \end{minipage}% 249 } 250 } 251 252 \def\fouraffiliations#1#2#3#4#5#6#7#8{\gdef\@address{} 253 \gdef\@name{ 254 \begin{minipage}[t]{.5\linewidth} 255 \centering 256 {\em #1}\\[\affiliationSpace] 257 #2\relax 258 \end{minipage}% 259 \begin{minipage}[t]{.5\linewidth} 260 \centering 261 {\em #3}\\[\affiliationSpace] 262 #4\relax 263 \end{minipage}% 264 \\[22mm]% 265 \begin{minipage}[t]{.5\linewidth} 266 \centering 267 {\em #5}\\[\affiliationSpace] 268 #6\relax 269 \end{minipage}% 270 \begin{minipage}[t]{.5\linewidth} 271 \centering 272 {\em #7}\\[\affiliationSpace] 273 #8\relax 274 \end{minipage}% 275 } 276 } 277 278 \def\@sect#1#2#3#4#5#6[#7]#8{ 279 \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\hskip 0.6em} 280 \begingroup \ifnum #2=1\bf\centering 281 {\interlinepenalty \@M 282 \@svsec\uppercase{#8}\par}\else\ifnum #2=2\bf 283 \noindent{\interlinepenalty \@M \@svsec #8\par}\else\it 284 \@hangfrom{\hskip\parindent}{\interlinepenalty \@M 285 \@svsec #8\par}\fi\fi\endgroup 286 \csname #1mark\endcsname{#7}\addcontentsline 287 {toc}{#1}{\protect\numberline{\csname the#1\endcsname} #7} 288 \@tempskipa #5\relax 289 \@xsect{\@tempskipa}} 290 291 \def\abstract{\begin{center} 292 {\bf ABSTRACT\vspace{-.5em}\vspace{0pt}} 293 \end{center}} 294 \def\endabstract{\par} 295 296 \def\copyrightnotice#1{\gdef\@copyrightnotice{#1}}\let\@copyrightnotice\relax 297 \def\toappear#1{\gdef\@toappear{#1}}\let\@toappear\relax 298 299 %%% Strings for the preprint titlepage footer: 300 301 \newif\if@preprint\@preprintfalse 302 \def\ds@preprint{\@preprinttrue} 303 \def\ps@preprint{\let\@mkboth\@gobbletwo\def\@oddhead{} 304 \def\@oddfoot{\rlap{\@toappear}\hfil\thepage\hfil 305 \llap{\@copyrightnotice}\gdef\@toappear{}\gdef\@copyrightnotice{}}} 306 307 \if@preprint\ps@preprint 308 \else\ps@empty\flushbottom\fi 309 310 \def\thebibliography#1{\section{References}\list 311 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth 312 \advance\leftmargin\labelsep 313 \usecounter{enumi}} 314 \def\newblock{\hskip .11em plus .33em minus .07em} 315 \sloppy\clubpenalty4000\widowpenalty4000 316 \sfcode`\.=1000\relax} 317 \let\endthebibliography=\endlist 318 319 \flushbottom 320 %%%%% fancyheading included 321 \def\lhead{\@ifnextchar[{\@xlhead}{\@ylhead}} 322 \def\@xlhead[#1]#2{\gdef\@elhead{#1}\gdef\@olhead{#2}} 323 \def\@ylhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}} 324 325 \def\chead{\@ifnextchar[{\@xchead}{\@ychead}} 326 \def\@xchead[#1]#2{\gdef\@echead{#1}\gdef\@ochead{#2}} 327 \def\@ychead#1{\gdef\@echead{#1}\gdef\@ochead{#1}} 328 329 \def\rhead{\@ifnextchar[{\@xrhead}{\@yrhead}} 330 \def\@xrhead[#1]#2{\gdef\@erhead{#1}\gdef\@orhead{#2}} 331 \def\@yrhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}} 332 333 \def\lfoot{\@ifnextchar[{\@xlfoot}{\@ylfoot}} 334 \def\@xlfoot[#1]#2{\gdef\@elfoot{#1}\gdef\@olfoot{#2}} 335 \def\@ylfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}} 336 337 \def\cfoot{\@ifnextchar[{\@xcfoot}{\@ycfoot}} 338 \def\@xcfoot[#1]#2{\gdef\@ecfoot{#1}\gdef\@ocfoot{#2}} 339 \def\@ycfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}} 340 341 \def\rfoot{\@ifnextchar[{\@xrfoot}{\@yrfoot}} 342 \def\@xrfoot[#1]#2{\gdef\@erfoot{#1}\gdef\@orfoot{#2}} 343 \def\@yrfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}} 344 345 \newdimen\headrulewidth 346 \newdimen\footrulewidth 347 \newdimen\plainheadrulewidth 348 \newdimen\plainfootrulewidth 349 \newdimen\headwidth 350 \newif\if@fancyplain 351 \def\fancyplain#1#2{\if@fancyplain#1\else#2\fi} 352 353 % Command to reset various things in the headers: 354 % a.o. single spacing (taken from setspace.sty) 355 % and the catcode of ^^M (so that epsf files in the header work if a 356 % verbatim crosses a page boundary) 357 \def\fancy@reset{\restorecr 358 \def\baselinestretch{1}% 359 \ifx\undefined\@newbaseline% NFSS not present; 2.09 or 2e 360 \ifx\@currsize\normalsize\@normalsize\else\@currsize\fi% 361 \else% NFSS (2.09) present 362 \@newbaseline% 363 \fi} 364 365 % Initialization of the head and foot text. 366 367 \headrulewidth 0.4pt 368 \footrulewidth\z@ 369 \plainheadrulewidth\z@ 370 \plainfootrulewidth\z@ 371 372 \lhead[\fancyplain{}{\sl\rightmark}]{\fancyplain{}{\sl\leftmark}} 373 % i.e. empty on ``plain'' pages, \rightmark on even, \leftmark on odd pages 374 \chead{} 375 %\rhead[\fancyplain{}{\sl\leftmark}]{\fancyplain{}{\sl\rightmark}} 376 % i.e. empty on ``plain'' pages, \leftmark on even, \rightmark on odd pages 377 \lfoot{} 378 \cfoot{} 379 \rfoot{} 380 381 % Put together a header or footer given the left, center and 382 % right text, fillers at left and right and a rule. 383 % The \lap commands put the text into an hbox of zero size, 384 % so overlapping text does not generate an errormessage. 385 386 \def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset\vbox{\hbox 387 {\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill 388 \parbox[b]{\headwidth}{\centering#3\strut}\hfill 389 \llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5} 390 391 392 \def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset\vbox{\footrule 393 \hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill 394 \parbox[t]{\headwidth}{\centering#3\strut}\hfill 395 \llap{\parbox[t]{\headwidth}{\raggedleft#4\strut}}}}}#5} 396 397 \def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi 398 \hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}} 399 400 \def\footrule{{\if@fancyplain\let\footrulewidth\plainfootrulewidth\fi 401 \vskip-0.3\normalbaselineskip\vskip-\footrulewidth 402 \hrule\@width\headwidth\@height\footrulewidth\vskip0.3\normalbaselineskip}} 403 404 \def\ps@fancy{% 405 \@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}%for amsbook 406 \@ifundefined{chapter}{\def\sectionmark##1{\markboth 407 {\uppercase{\ifnum \c@secnumdepth>\z@ 408 \thesection\hskip 1em\relax \fi ##1}}{}}% 409 \def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne 410 \thesubsection\hskip 1em\relax \fi ##1}}}% 411 {\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth>\m@ne 412 \@chapapp\ \thechapter. \ \fi ##1}}{}} 413 \def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth >\z@ 414 \thesection. \ \fi ##1}}}}% 415 \csname ps@headings\endcsname % use \ps@headings defaults if they exist 416 \ps@@fancy 417 \gdef\ps@fancy{\@fancyplainfalse\ps@@fancy}% 418 \headwidth\textwidth} 419 \def\ps@fancyplain{\ps@fancy \let\ps@plain\ps@plain@fancy} 420 \def\ps@plain@fancy{\@fancyplaintrue\ps@@fancy} 421 \def\ps@@fancy{% 422 \def\@mkboth{\protect\markboth}% 423 \def\@oddhead{\@fancyhead\@lodd\@olhead\@ochead\@orhead\@rodd}% 424 \def\@oddfoot{\@fancyfoot\@lodd\@olfoot\@ocfoot\@orfoot\@rodd}% 425 \def\@evenhead{\@fancyhead\@rodd\@elhead\@echead\@erhead\@lodd}% 426 \def\@evenfoot{\@fancyfoot\@rodd\@elfoot\@ecfoot\@erfoot\@lodd}% 427 } 428 \def\@lodd{\if@reversemargin\hss\else\relax\fi} 429 \def\@rodd{\if@reversemargin\relax\else\hss\fi} 430 431 \let\latex@makecol\@makecol 432 \def\@makecol{\let\topfloat\@toplist\let\botfloat\@botlist\latex@makecol} 433 \def\iftopfloat#1#2{\ifx\topfloat\empty #2\else #1\fi} 434 \def\ifbotfloat#1#2{\ifx\botfloat\empty #2\else #1\fi} 435 \def\iffloatpage#1#2{\if@fcolmade #1\else #2\fi} 436 437 \pagestyle{fancy} 438 \renewcommand{\headrulewidth}{0pt} 439 \renewcommand{\footrulewidth}{-5mm} 440 \lhead{\em{\small{Proceedings of the 22$^{\text{\itshape nd}}$ International Conference on Digital Audio Effects (DAFx-19), Birmingham, UK, September 2--6, 2019}}} 441 \rhead{} 442 \lfoot{} 443 \rfoot{} 444 \cfoot{{\vskip 11mm}{\small DAFX-\thepage}}{} 445