Mercurial > ift6266
comparison writeup/nips10submit_e.sty @ 465:a48601e8d431
ajouter nips10submit_e.sty
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Fri, 28 May 2010 17:33:15 -0600 |
parents | |
children | 51213beaed8b |
comparison
equal
deleted
inserted
replaced
464:24f4a8b53fcc | 465:a48601e8d431 |
---|---|
1 %%%% NIPS Macros (LaTex) | |
2 %%%% Style File | |
3 %%%% Dec 12, 1990 Rev Aug 14, 1991; Sept, 1995; April, 1997; April, 1999 | |
4 | |
5 % This file can be used with Latex2e whether running in main mode, or | |
6 % 2.09 compatibility mode. | |
7 % | |
8 % If using main mode, you need to include the commands | |
9 % \documentclass{article} | |
10 % \usepackage{nips10submit_e,times} | |
11 % as the first lines in your document. Or, if you do not have Times | |
12 % Roman font available, you can just use | |
13 % \documentclass{article} | |
14 % \usepackage{nips10submit_e} | |
15 % instead. | |
16 % | |
17 % If using 2.09 compatibility mode, you need to include the command | |
18 % \documentstyle[nips10submit_09,times]{article} | |
19 % as the first line in your document. Or, if you do not have Times | |
20 % Roman font available, you can include the command | |
21 % \documentstyle[nips10submit_09]{article} | |
22 % instead. | |
23 | |
24 % Change the overall width of the page. If these parameters are | |
25 % changed, they will require corresponding changes in the | |
26 % maketitle section. | |
27 % | |
28 \usepackage{eso-pic} % used by \AddToShipoutPicture | |
29 | |
30 \renewcommand{\topfraction}{0.95} % let figure take up nearly whole page | |
31 \renewcommand{\textfraction}{0.05} % let figure take up nearly whole page | |
32 | |
33 % Define nipsfinal, set to true if nipsfinalcopy is defined | |
34 \newif\ifnipsfinal | |
35 \nipsfinalfalse | |
36 \def\nipsfinalcopy{\nipsfinaltrue} | |
37 \font\nipstenhv = phvb at 8pt % *** IF THIS FAILS, SEE nips10submit_e.sty *** | |
38 | |
39 % Specify the dimensions of each page | |
40 | |
41 \setlength{\paperheight}{11in} | |
42 \setlength{\paperwidth}{8.5in} | |
43 | |
44 \oddsidemargin .5in % Note \oddsidemargin = \evensidemargin | |
45 \evensidemargin .5in | |
46 \marginparwidth 0.07 true in | |
47 %\marginparwidth 0.75 true in | |
48 %\topmargin 0 true pt % Nominal distance from top of page to top of | |
49 %\topmargin 0.125in | |
50 \topmargin -0.625in | |
51 \addtolength{\headsep}{0.25in} | |
52 \textheight 9.0 true in % Height of text (including footnotes & figures) | |
53 \textwidth 5.5 true in % Width of text line. | |
54 \widowpenalty=10000 | |
55 \clubpenalty=10000 | |
56 | |
57 % \thispagestyle{empty} \pagestyle{empty} | |
58 \flushbottom \sloppy | |
59 | |
60 % We're never going to need a table of contents, so just flush it to | |
61 % save space --- suggested by drstrip@sandia-2 | |
62 \def\addcontentsline#1#2#3{} | |
63 | |
64 % Title stuff, taken from deproc. | |
65 \def\maketitle{\par | |
66 \begingroup | |
67 \def\thefootnote{\fnsymbol{footnote}} | |
68 \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} % for perfect author | |
69 % name centering | |
70 % The footnote-mark was overlapping the footnote-text, | |
71 % added the following to fix this problem (MK) | |
72 \long\def\@makefntext##1{\parindent 1em\noindent | |
73 \hbox to1.8em{\hss $\m@th ^{\@thefnmark}$}##1} | |
74 \@maketitle \@thanks | |
75 \endgroup | |
76 \setcounter{footnote}{0} | |
77 \let\maketitle\relax \let\@maketitle\relax | |
78 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax} | |
79 | |
80 % The toptitlebar has been raised to top-justify the first page | |
81 | |
82 % Title (includes both anonimized and non-anonimized versions) | |
83 \def\@maketitle{\vbox{\hsize\textwidth | |
84 \linewidth\hsize \vskip 0.1in \toptitlebar \centering | |
85 {\LARGE\bf \@title\par} \bottomtitlebar % \vskip 0.1in % minus | |
86 \ifnipsfinal | |
87 \def\And{\end{tabular}\hfil\linebreak[0]\hfil | |
88 \begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\ignorespaces}% | |
89 \def\AND{\end{tabular}\hfil\linebreak[4]\hfil | |
90 \begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\ignorespaces}% | |
91 \begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\@author\end{tabular}% | |
92 \else | |
93 \begin{tabular}[t]{c}\bf\rule{\z@}{24pt} | |
94 Anonymous Author(s) \\ | |
95 Affiliation \\ | |
96 Address \\ | |
97 \texttt{email} \\ | |
98 \end{tabular}% | |
99 \fi | |
100 \vskip 0.3in minus 0.1in}} | |
101 | |
102 \renewenvironment{abstract}{\vskip.075in\centerline{\large\bf | |
103 Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex} | |
104 | |
105 % sections with less space | |
106 \def\section{\@startsection {section}{1}{\z@}{-2.0ex plus | |
107 -0.5ex minus -.2ex}{1.5ex plus 0.3ex | |
108 minus0.2ex}{\large\bf\raggedright}} | |
109 | |
110 \def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus | |
111 -0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright}} | |
112 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex | |
113 plus -0.5ex minus -.2ex}{0.5ex plus | |
114 .2ex}{\normalsize\bf\raggedright}} | |
115 \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus | |
116 0.5ex minus .2ex}{-1em}{\normalsize\bf}} | |
117 \def\subparagraph{\@startsection{subparagraph}{5}{\z@}{1.5ex plus | |
118 0.5ex minus .2ex}{-1em}{\normalsize\bf}} | |
119 \def\subsubsubsection{\vskip | |
120 5pt{\noindent\normalsize\rm\raggedright}} | |
121 | |
122 | |
123 % Footnotes | |
124 \footnotesep 6.65pt % | |
125 \skip\footins 9pt plus 4pt minus 2pt | |
126 \def\footnoterule{\kern-3pt \hrule width 12pc \kern 2.6pt } | |
127 \setcounter{footnote}{0} | |
128 | |
129 % Lists and paragraphs | |
130 \parindent 0pt | |
131 \topsep 4pt plus 1pt minus 2pt | |
132 \partopsep 1pt plus 0.5pt minus 0.5pt | |
133 \itemsep 2pt plus 1pt minus 0.5pt | |
134 \parsep 2pt plus 1pt minus 0.5pt | |
135 \parskip .5pc | |
136 | |
137 | |
138 %\leftmargin2em | |
139 \leftmargin3pc | |
140 \leftmargini\leftmargin \leftmarginii 2em | |
141 \leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em | |
142 | |
143 %\labelsep \labelsep 5pt | |
144 | |
145 \def\@listi{\leftmargin\leftmargini} | |
146 \def\@listii{\leftmargin\leftmarginii | |
147 \labelwidth\leftmarginii\advance\labelwidth-\labelsep | |
148 \topsep 2pt plus 1pt minus 0.5pt | |
149 \parsep 1pt plus 0.5pt minus 0.5pt | |
150 \itemsep \parsep} | |
151 \def\@listiii{\leftmargin\leftmarginiii | |
152 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep | |
153 \topsep 1pt plus 0.5pt minus 0.5pt | |
154 \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt | |
155 \itemsep \topsep} | |
156 \def\@listiv{\leftmargin\leftmarginiv | |
157 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep} | |
158 \def\@listv{\leftmargin\leftmarginv | |
159 \labelwidth\leftmarginv\advance\labelwidth-\labelsep} | |
160 \def\@listvi{\leftmargin\leftmarginvi | |
161 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep} | |
162 | |
163 \abovedisplayskip 7pt plus2pt minus5pt% | |
164 \belowdisplayskip \abovedisplayskip | |
165 \abovedisplayshortskip 0pt plus3pt% | |
166 \belowdisplayshortskip 4pt plus3pt minus3pt% | |
167 | |
168 % Less leading in most fonts (due to the narrow columns) | |
169 % The choices were between 1-pt and 1.5-pt leading | |
170 %\def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt} % got rid of @ (MK) | |
171 \def\normalsize{\@setsize\normalsize{11pt}\xpt\@xpt} | |
172 \def\small{\@setsize\small{10pt}\ixpt\@ixpt} | |
173 \def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt} | |
174 \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt} | |
175 \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt} | |
176 \def\large{\@setsize\large{14pt}\xiipt\@xiipt} | |
177 \def\Large{\@setsize\Large{16pt}\xivpt\@xivpt} | |
178 \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt} | |
179 \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt} | |
180 \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt} | |
181 | |
182 \def\toptitlebar{\hrule height4pt\vskip .25in\vskip-\parskip} | |
183 | |
184 \def\bottomtitlebar{\vskip .29in\vskip-\parskip\hrule height1pt\vskip | |
185 .09in} % | |
186 %Reduced second vskip to compensate for adding the strut in \@author | |
187 | |
188 % Vertical Ruler | |
189 % This code is, largely, from the CVPR 2010 conference style file | |
190 % ----- define vruler | |
191 \makeatletter | |
192 \newbox\nipsrulerbox | |
193 \newcount\nipsrulercount | |
194 \newdimen\nipsruleroffset | |
195 \newdimen\cv@lineheight | |
196 \newdimen\cv@boxheight | |
197 \newbox\cv@tmpbox | |
198 \newcount\cv@refno | |
199 \newcount\cv@tot | |
200 % NUMBER with left flushed zeros \fillzeros[<WIDTH>]<NUMBER> | |
201 \newcount\cv@tmpc@ \newcount\cv@tmpc | |
202 \def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi | |
203 \cv@tmpc=1 % | |
204 \loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi | |
205 \ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat | |
206 \ifnum#2<0\advance\cv@tmpc1\relax-\fi | |
207 \loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat | |
208 \cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}% | |
209 % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>] | |
210 \def\makevruler[#1][#2][#3][#4][#5]{\begingroup\offinterlineskip | |
211 \textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt% | |
212 \global\setbox\nipsrulerbox=\vbox to \textheight{% | |
213 {\parskip=0pt\hfuzz=150em\cv@boxheight=\textheight | |
214 \cv@lineheight=#1\global\nipsrulercount=#2% | |
215 \cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2% | |
216 \cv@refno1\vskip-\cv@lineheight\vskip1ex% | |
217 \loop\setbox\cv@tmpbox=\hbox to0cm{{\nipstenhv\hfil\fillzeros[#4]\nipsrulercount}}% | |
218 \ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break | |
219 \advance\cv@refno1\global\advance\nipsrulercount#3\relax | |
220 \ifnum\cv@refno<\cv@tot\repeat}}\endgroup}% | |
221 \makeatother | |
222 % ----- end of vruler | |
223 | |
224 % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>] | |
225 \def\nipsruler#1{\makevruler[12pt][#1][1][3][0.993\textheight]\usebox{\nipsrulerbox}} | |
226 \AddToShipoutPicture{% | |
227 \ifnipsfinal\else | |
228 \nipsruleroffset=\textheight | |
229 \advance\nipsruleroffset by -3.7pt | |
230 \color[rgb]{.7,.7,.7} | |
231 \AtTextUpperLeft{% | |
232 \put(\LenToUnit{-35pt},\LenToUnit{-\nipsruleroffset}){%left ruler | |
233 \nipsruler{\nipsrulercount}} | |
234 } | |
235 \fi | |
236 } |