Debian Codegraph @

texmf-dist/doc/latex/confproc/example/dafx_06.sty

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