Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
46 views
1
% ---------------------------------------------------------------
2
%
3
% $Id: cvpr.sty,v 1.3 2005/10/24 19:56:15 awf Exp $
4
%
5
% by [email protected]
6
% some mods by [email protected]
7
%
8
% ---------------------------------------------------------------
9
%
10
% no guarantee is given that the format corresponds perfectly to
11
% IEEE 8.5" x 11" Proceedings, but most features should be ok.
12
%
13
% ---------------------------------------------------------------
14
% with LaTeX2e:
15
% =============
16
%
17
% use as
18
% \documentclass[times,10pt,twocolumn]{article}
19
% \usepackage{latex8}
20
% \usepackage{times}
21
%
22
% ---------------------------------------------------------------
23
24
% with LaTeX 2.09:
25
% ================
26
%
27
% use as
28
% \documentstyle[times,art10,twocolumn,latex8]{article}
29
%
30
% ---------------------------------------------------------------
31
% with both versions:
32
% ===================
33
%
34
% specify \cvprfinalcopy to emit the final camera-ready copy
35
%
36
% specify references as
37
% \bibliographystyle{ieee}
38
% \bibliography{...your files...}
39
%
40
% ---------------------------------------------------------------
41
42
\usepackage{eso-pic}
43
\usepackage{xspace}
44
45
\typeout{CVPR 8.5 x 11-Inch Proceedings Style `cvpr.sty'.}
46
47
% ten point helvetica bold required for captions
48
% eleven point times bold required for second-order headings
49
% in some sites the name of the fonts may differ,
50
% change the name here:
51
\font\cvprtenhv = phvb at 8pt % *** IF THIS FAILS, SEE cvpr.sty ***
52
\font\elvbf = ptmb scaled 1100
53
54
% If the above lines give an error message, try to comment them and
55
% uncomment these:
56
%\font\cvprtenhv = phvb7t at 8pt
57
%\font\elvbf = ptmb7t scaled 1100
58
59
% set dimensions of columns, gap between columns, and paragraph indent
60
\setlength{\textheight}{8.875in}
61
\setlength{\textwidth}{6.875in}
62
\setlength{\columnsep}{0.3125in}
63
\setlength{\topmargin}{0in}
64
\setlength{\headheight}{0in}
65
\setlength{\headsep}{0in}
66
\setlength{\parindent}{1pc}
67
\setlength{\oddsidemargin}{-.304in}
68
\setlength{\evensidemargin}{-.304in}
69
70
\newif\ifcvprfinal
71
\cvprfinalfalse
72
\def\cvprfinalcopy{\global\cvprfinaltrue}
73
74
% memento from size10.clo
75
% \normalsize{\@setfontsize\normalsize\@xpt\@xiipt}
76
% \small{\@setfontsize\small\@ixpt{11}}
77
% \footnotesize{\@setfontsize\footnotesize\@viiipt{9.5}}
78
% \scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
79
% \tiny{\@setfontsize\tiny\@vpt\@vipt}
80
% \large{\@setfontsize\large\@xiipt{14}}
81
% \Large{\@setfontsize\Large\@xivpt{18}}
82
% \LARGE{\@setfontsize\LARGE\@xviipt{22}}
83
% \huge{\@setfontsize\huge\@xxpt{25}}
84
% \Huge{\@setfontsize\Huge\@xxvpt{30}}
85
86
\def\@maketitle
87
{
88
\newpage
89
\null
90
\vskip .375in
91
\begin{center}
92
{\Large \bf \@title \par}
93
% additional two empty lines at the end of the title
94
\vspace*{24pt}
95
{
96
\large
97
\lineskip .5em
98
\begin{tabular}[t]{c}
99
\ifcvprfinal\@author\else Anonymous CVPR submission\\
100
\vspace*{1pt}\\%This space will need to be here in the final copy, so don't squeeze it out for the review copy.
101
Paper ID \cvprPaperID \fi
102
\end{tabular}
103
\par
104
}
105
% additional small space at the end of the author name
106
\vskip .5em
107
% additional empty line at the end of the title block
108
\vspace*{12pt}
109
\end{center}
110
}
111
112
\def\abstract
113
{%
114
\centerline{\large\bf Abstract}%
115
\vspace*{12pt}%
116
\it%
117
}
118
119
\def\endabstract
120
{
121
% additional empty line at the end of the abstract
122
\vspace*{12pt}
123
}
124
125
\def\affiliation#1{\gdef\@affiliation{#1}} \gdef\@affiliation{}
126
127
\newlength{\@ctmp}
128
\newlength{\@figindent}
129
\setlength{\@figindent}{1pc}
130
131
\long\def\@makecaption#1#2{
132
\setbox\@tempboxa\hbox{\small \noindent #1.~#2}
133
\setlength{\@ctmp}{\hsize}
134
\addtolength{\@ctmp}{-\@figindent}\addtolength{\@ctmp}{-\@figindent}
135
% IF longer than one indented paragraph line
136
\ifdim \wd\@tempboxa >\@ctmp
137
% THEN DON'T set as an indented paragraph
138
{\small #1.~#2\par}
139
\else
140
% ELSE center
141
\hbox to\hsize{\hfil\box\@tempboxa\hfil}
142
\fi}
143
144
% correct heading spacing and type
145
\def\cvprsection{\@startsection {section}{1}{\z@}
146
{10pt plus 2pt minus 2pt}{7pt} {\large\bf}}
147
\def\cvprssect#1{\cvprsection*{#1}}
148
\def\cvprsect#1{\cvprsection{\hskip -1em.~#1}}
149
\def\section{\@ifstar\cvprssect\cvprsect}
150
151
\def\cvprsubsection{\@startsection {subsection}{2}{\z@}
152
{8pt plus 2pt minus 2pt}{6pt} {\elvbf}}
153
\def\cvprssubsect#1{\cvprsubsection*{#1}}
154
\def\cvprsubsect#1{\cvprsubsection{\hskip -1em.~#1}}
155
\def\subsection{\@ifstar\cvprssubsect\cvprsubsect}
156
157
%% --------- Page background marks: Ruler and confidentiality
158
159
% ----- define vruler
160
\makeatletter
161
\newbox\cvprrulerbox
162
\newcount\cvprrulercount
163
\newdimen\cvprruleroffset
164
\newdimen\cv@lineheight
165
\newdimen\cv@boxheight
166
\newbox\cv@tmpbox
167
\newcount\cv@refno
168
\newcount\cv@tot
169
% NUMBER with left flushed zeros \fillzeros[<WIDTH>]<NUMBER>
170
\newcount\cv@tmpc@ \newcount\cv@tmpc
171
\def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi
172
\cv@tmpc=1 %
173
\loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi
174
\ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat
175
\ifnum#2<0\advance\cv@tmpc1\relax-\fi
176
\loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat
177
\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}%
178
% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
179
\def\makevruler[#1][#2][#3][#4][#5]{\begingroup\offinterlineskip
180
\textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt%
181
\global\setbox\cvprrulerbox=\vbox to \textheight{%
182
{\parskip=0pt\hfuzz=150em\cv@boxheight=\textheight
183
\cv@lineheight=#1\global\cvprrulercount=#2%
184
\cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2%
185
\cv@refno1\vskip-\cv@lineheight\vskip1ex%
186
\loop\setbox\cv@tmpbox=\hbox to0cm{{\cvprtenhv\hfil\fillzeros[#4]\cvprrulercount}}%
187
\ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break
188
\advance\cv@refno1\global\advance\cvprrulercount#3\relax
189
\ifnum\cv@refno<\cv@tot\repeat}}\endgroup}%
190
\makeatother
191
% ----- end of vruler
192
193
% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
194
\def\cvprruler#1{\makevruler[12pt][#1][1][3][0.993\textheight]\usebox{\cvprrulerbox}}
195
\AddToShipoutPicture{%
196
\ifcvprfinal\else
197
%\AtTextLowerLeft{%
198
% \color[gray]{.15}\framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}
199
%}
200
\cvprruleroffset=\textheight
201
\advance\cvprruleroffset by -3.7pt
202
\color[rgb]{.5,.5,1}
203
\AtTextUpperLeft{%
204
\put(\LenToUnit{-35pt},\LenToUnit{-\cvprruleroffset}){%left ruler
205
\cvprruler{\cvprrulercount}}
206
\put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\cvprruleroffset}){%right ruler
207
\cvprruler{\cvprrulercount}}
208
}
209
\def\pid{\parbox{1in}{\begin{center}\bf\sf{\small CVPR}\\\#\cvprPaperID\end{center}}}
210
\AtTextUpperLeft{%paperID in corners
211
\put(\LenToUnit{-65pt},\LenToUnit{45pt}){\pid}
212
\put(\LenToUnit{\textwidth\kern-8pt},\LenToUnit{45pt}){\pid}
213
}
214
\AtTextUpperLeft{%confidential
215
\put(0,\LenToUnit{1cm}){\parbox{\textwidth}{\centering\cvprtenhv
216
CVPR 2016 Submission \#\cvprPaperID. CONFIDENTIAL REVIEW COPY. DO NOT DISTRIBUTE.}}
217
}
218
\fi
219
}
220
221
%%% Make figure placement a little more predictable.
222
% We trust the user to move figures if this results
223
% in ugliness.
224
% Minimize bad page breaks at figures
225
\renewcommand{\textfraction}{0.01}
226
\renewcommand{\floatpagefraction}{0.99}
227
\renewcommand{\topfraction}{0.99}
228
\renewcommand{\bottomfraction}{0.99}
229
\renewcommand{\dblfloatpagefraction}{0.99}
230
\renewcommand{\dbltopfraction}{0.99}
231
\setcounter{totalnumber}{99}
232
\setcounter{topnumber}{99}
233
\setcounter{bottomnumber}{99}
234
235
% Add a period to the end of an abbreviation unless there's one
236
% already, then \xspace.
237
\makeatletter
238
\DeclareRobustCommand\onedot{\futurelet\@let@token\@onedot}
239
\def\@onedot{\ifx\@let@token.\else.\null\fi\xspace}
240
241
\def\eg{\emph{e.g}\onedot} \def\Eg{\emph{E.g}\onedot}
242
\def\ie{\emph{i.e}\onedot} \def\Ie{\emph{I.e}\onedot}
243
\def\cf{\emph{c.f}\onedot} \def\Cf{\emph{C.f}\onedot}
244
\def\etc{\emph{etc}\onedot} \def\vs{\emph{vs}\onedot}
245
\def\wrt{w.r.t\onedot} \def\dof{d.o.f\onedot}
246
\def\etal{\emph{et al}\onedot}
247
\makeatother
248
249
% ---------------------------------------------------------------
250
251