source: papers/FDL2012/spconf.sty @ 91

Last change on this file since 91 was 48, checked in by syed, 13 years ago

/papers/FDL2012

  • Property svn:executable set to *
File size: 8.6 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%
3% File:     spconf.sty          (LaTeX Document style option "spconf")
4%
5% Usage:    \documentclass{article}
6%           \usepackage{spconf}
7%
8%           Or for LaTeX 2.09:
9% Usage:    \documentstyle[...,spconf,...]{article}
10%
11% Purpose:
12%
13% Style file for Signal Processing Society Conferences (ICASSP, ICIP).
14% Features:
15%    - correct page size (175mm x 226mm)
16%    - twocolumn format
17%    - boldfaced, numbered, and centered section headings
18%    - correct subsection and subsubsection headings
19%    - use \title{xx} for title, will be typeset all uppercase
20%    - use \name{xx} for author name(s) only, will be typeset in italics
21%    - use \address{xx} for one address of all authors
22%    - use \twoauthors{author1}{address1}{author2}{address2}
23%         for two (or more) authors with two separate addresses
24%    - note: no need for \author nor \date
25%    - optional: can use \thanks{xx} within \name or \twoauthors,
26%         asterisk is not printed after name nor in footnote
27%    - optional: can use \sthanks{xx} after each name within \name or
28%         \twoauthors if different thanks for each author,
29%         footnote symbol will appear for each name and footnote
30%    - optional: use \ninept to typeset text in 9 pt; default is 10pt.
31%
32% Example of use for one or more authors at a common address and
33%    common support. For distinct support acknowledgments,
34%    use \sthanks{xx} after each name.
35%
36%                 \documentclass{article}
37%                 \usepackage{spconf}
38%                 \title{Title of the paper}
39%                 \name{George P. Burdell and John Q. Professor
40%                       \thanks{This work was supported by...}}
41%                 \address{Common address, department \\
42%                          City, etc \\
43%                          optional e-mail address}
44%
45%                 \begin{document}
46%  OPTIONAL -->   \ninept            <-- OPTIONAL, for nine pt only
47%                 \maketitle
48%                 \begin{abstract}
49%                 This is the abstract for my paper.
50%                 \end{abstract}
51%                         .
52%                 Insert text of paper
53%                         .
54%                 \end{document}
55%
56% Example of use for two authors at two distinct addresses with only
57%    one support acknowledgment. For distinct support acknowledgments,
58%    use \sthanks{xx} after each name.
59%
60%                 \documentclass{article}
61%                 \usepackage{spconf}
62%                 \title{Title of the paper}
63%                 \twoauthors{John Doe
64%                       \thanks{This work was supported by...}}
65%                            {Doe's address, department \\
66%                             City, etc \\
67%                             optional e-mail address}
68%                            {Judy Smith}
69%                            {Smith's address, department \\
70%                             City, etc \\
71%                             optional e-mail address}
72%
73%                 \begin{document}
74%  OPTIONAL -->   \ninept            <-- OPTIONAL, for nine pt only
75%                 \maketitle
76%                 \begin{abstract}
77%                 This is the abstract for my paper.
78%                 \end{abstract}
79%                         .
80%                 Insert text of paper
81%                         .
82%                 \end{document}
83%
84% Preprint Option (Only for preprints, not for submissions!):
85%    - can create a preprint titlepage footer by using the
86%         "preprint" option with the \usepackage{spconf} command
87%    - use \copyrightnotice{\copyright xx} for copyright information
88%    - use \toappear{To appear in xx} for publication name
89% Example of preprint use:
90%
91%                 \documentclass{article}
92%                 \usepackage[preprint]{spconf}
93%                         .
94%                 \copyrightnotice{\copyright\ IEEE 2000}
95%                 \toappear{To appear in {\it Proc.\ ICASSP2000,
96%                    June 05-09, 2000, Istanbul, Turkey}}
97%
98%
99% PLEASE REPORT ANY BUGS
100%
101% Author:  Stephen Martucci  -- stephen.martucci@ieee.org
102%
103% Date:    3 May 2000
104%
105% Updated: Lance Cotton, Ulf-Dietrich Braumann, 11 May 2006
106% Change:  Added keywords/Index Terms section
107% Change:  Added \emergencystretch=11pt, Lance Cotton, 26-Sept-2007
108%
109%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
110
111% These commands change default text fonts to the scalable PostScript
112% fonts Times, Helvetica, and Courier. However, they do not change
113% the default math fonts. After conversion to PDF, text will look good
114% at any scale but math symbols and equations may not.
115% If instead you use the PostScript Type 1 implementation of the
116% Computer Modern fonts from the American Mathematical Society, which
117% will make all fonts (text and math) scalable, comment out the
118% following three lines. Those fonts use the same metrics as the Knuth
119% Computer Modern fonts and therefore no font redefinition is needed.
120\renewcommand{\sfdefault}{phv}
121\renewcommand{\rmdefault}{ptm}
122\renewcommand{\ttdefault}{pcr}
123
124%\oddsidemargin  -0.31in
125%\evensidemargin -0.31in
126\oddsidemargin  -6.2truemm
127\evensidemargin -6.2truemm
128
129\topmargin 0truept
130\headheight 0truept
131\headsep 0truept
132%\footheight 0truept
133%\footskip 0truept
134\textheight 229truemm
135\textwidth 178truemm
136
137\twocolumn
138\columnsep 6truemm
139\pagestyle{empty}
140
141\emergencystretch=11pt
142
143\def\ninept{\def\baselinestretch{.95}\let\normalsize\small\normalsize}
144
145\def\maketitle{\par
146 \begingroup
147 \def\thefootnote{}
148 \def\@makefnmark{\hbox
149 {$^{\@thefnmark}$\hss}}
150 \if@twocolumn
151 \twocolumn[\@maketitle]
152 \else \newpage
153 \global\@topnum\z@ \@maketitle \fi\@thanks
154 \endgroup
155 \setcounter{footnote}{0}
156 \let\maketitle\relax
157 \let\@maketitle\relax
158 \gdef\thefootnote{\arabic{footnote}}\gdef\@@savethanks{}%
159 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
160
161\def\@maketitle{\newpage
162 \null
163 \vskip 2em \begin{center}
164 {\large \bf \@title \par} \vskip 1.5em {\large \lineskip .5em
165\begin{tabular}[t]{c}\@name \\ \@address
166 \end{tabular}\par} \end{center}
167 \par
168 \vskip 1.5em}
169
170\def\title#1{\gdef\@title{\uppercase{#1}}}
171\def\name#1{\gdef\@name{{\em #1}\\}}
172\def\address#1{\gdef\@address{#1}}
173\gdef\@title{\uppercase{title of paper}}
174\gdef\@name{{\em Name of author}\\}
175\gdef\@address{Address - Line 1 \\
176               Address - Line 2 \\
177               Address - Line 3}
178
179\let\@@savethanks\thanks
180\def\thanks#1{\gdef\thefootnote{}\@@savethanks{#1}}
181\def\sthanks#1{\gdef\thefootnote{\fnsymbol{footnote}}\@@savethanks{#1}}
182
183\def\twoauthors#1#2#3#4{\gdef\@address{}
184   \gdef\@name{\begin{tabular}{@{}c@{}}
185        {\em #1} \\ \\
186        #2\relax
187   \end{tabular}\hskip 1in\begin{tabular}{@{}c@{}}
188        {\em #3} \\ \\
189        #4\relax
190\end{tabular}}}
191
192\def\@sect#1#2#3#4#5#6[#7]#8{
193   \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\hskip 0.6em}
194       \begingroup \ifnum #2=1\bf\centering
195          {\interlinepenalty \@M
196             \@svsec\uppercase{#8}\par}\else\ifnum #2=2\bf
197          \noindent{\interlinepenalty \@M \@svsec #8\par}\else\it
198          \noindent{\interlinepenalty \@M
199             \@svsec #8\par}\fi\fi\endgroup
200       \csname #1mark\endcsname{#7}\addcontentsline
201         {toc}{#1}{\protect\numberline{\csname the#1\endcsname} #7}
202     \@tempskipa #5\relax
203     \@xsect{\@tempskipa}}
204
205\def\abstract{\begin{center}
206{\bf ABSTRACT\vspace{-.5em}\vspace{0pt}}
207\end{center}}
208\def\endabstract{\par}
209
210% Keyword section, added by Lance Cotton, adapted from IEEEtrans, corrected by Ulf-Dietrich Braumann
211\def\keywords{\vspace{.5em}
212{\bfseries\textit{Index Terms}---\,\relax%
213}}
214\def\endkeywords{\par}
215
216\def\copyrightnotice#1{\gdef\@copyrightnotice{#1}}
217\let\@copyrightnotice\relax
218\def\toappear#1{\gdef\@toappear{#1}}\let\@toappear\relax
219
220\newif\if@preprint\@preprintfalse
221\@namedef{ds@preprint}{\global\@preprinttrue}
222\@options
223\def\ps@preprint{\def\mypage{}\let\@mkboth\@gobbletwo\def\@oddhead{}
224  \def\@oddfoot{\rlap{\@toappear}\hfil\mypage\hfil
225    \llap{\@copyrightnotice}
226    \gdef\mypage{\thepage}\gdef\@toappear{}\gdef\@copyrightnotice{}}}
227
228\if@preprint\ps@preprint
229\else\ps@empty\flushbottom\fi
230
231\def\thebibliography#1{\section{References}\list
232 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
233 \advance\leftmargin\labelsep
234 \usecounter{enumi}}
235 \def\newblock{\hskip .11em plus .33em minus .07em}
236 \sloppy\clubpenalty4000\widowpenalty4000
237 \sfcode`\.=1000\relax}
238\let\endthebibliography=\endlist
239
240\long\def\@makecaption#1#2{
241 \vskip 10pt
242 \setbox\@tempboxa\hbox{#1. #2}
243 \ifdim \wd\@tempboxa >\hsize #1. #2\par \else \hbox
244to\hsize{\hfil\box\@tempboxa\hfil}
245 \fi}
246
247\def\fnum@figure{{\bf Fig.\ \thefigure}}
248\def\fnum@table{{\bf Table \thetable}}
249
250\flushbottom
251
252%%%% EOF
Note: See TracBrowser for help on using the repository browser.