source: docs/HPCA2012/latex/iccv.sty @ 4787

Last change on this file since 4787 was 1350, checked in by ashriram, 8 years ago

New conclusion

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