📚 The CoCalc Library - books, templates and other resources
License: OTHER
%%%% NIPS Macros (LaTex)1%%%% Style File2%%%% Dec 12, 1990 Rev Aug 14, 1991; Sept, 1995; April, 1997; April, 199934% This file can be used with Latex2e whether running in main mode, or5% 2.09 compatibility mode.6%7% If using main mode, you need to include the commands8% \documentclass{article}9% \usepackage{nips10submit_e,times}10% as the first lines in your document. Or, if you do not have Times11% Roman font available, you can just use12% \documentclass{article}13% \usepackage{nips10submit_e}14% instead.15%16% If using 2.09 compatibility mode, you need to include the command17% \documentstyle[nips10submit_09,times]{article}18% as the first line in your document. Or, if you do not have Times19% Roman font available, you can include the command20% \documentstyle[nips10submit_09]{article}21% instead.2223% Change the overall width of the page. If these parameters are24% changed, they will require corresponding changes in the25% maketitle section.26%27\usepackage{eso-pic} % used by \AddToShipoutPicture2829\renewcommand{\topfraction}{0.95} % let figure take up nearly whole page30\renewcommand{\textfraction}{0.05} % let figure take up nearly whole page3132% Define nipsfinal, set to true if nipsfinalcopy is defined33\newif\ifnipsfinal34\nipsfinalfalse35\def\nipsfinalcopy{\nipsfinaltrue}36\font\nipstenhv = phvb at 8pt % *** IF THIS FAILS, SEE nips10submit_e.sty ***3738% Specify the dimensions of each page3940\setlength{\paperheight}{11in}41\setlength{\paperwidth}{8.5in}4243\oddsidemargin .5in % Note \oddsidemargin = \evensidemargin44\evensidemargin .5in45\marginparwidth 0.07 true in46%\marginparwidth 0.75 true in47%\topmargin 0 true pt % Nominal distance from top of page to top of48%\topmargin 0.125in49\topmargin -0.625in50\addtolength{\headsep}{0.25in}51\textheight 9.0 true in % Height of text (including footnotes & figures)52\textwidth 5.5 true in % Width of text line.53\widowpenalty=1000054\clubpenalty=100005556% \thispagestyle{empty} \pagestyle{empty}57\flushbottom \sloppy5859% We're never going to need a table of contents, so just flush it to60% save space --- suggested by drstrip@sandia-261\def\addcontentsline#1#2#3{}6263% Title stuff, taken from deproc.64\def\maketitle{\par65\begingroup66\def\thefootnote{\fnsymbol{footnote}}67\def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} % for perfect author68% name centering69% The footnote-mark was overlapping the footnote-text,70% added the following to fix this problem (MK)71\long\def\@makefntext##1{\parindent 1em\noindent72\hbox to1.8em{\hss $\m@th ^{\@thefnmark}$}##1}73\@maketitle \@thanks74\endgroup75\setcounter{footnote}{0}76\let\maketitle\relax \let\@maketitle\relax77\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}7879% The toptitlebar has been raised to top-justify the first page8081% Title (includes both anonimized and non-anonimized versions)82\def\@maketitle{\vbox{\hsize\textwidth83\linewidth\hsize \vskip 0.1in \toptitlebar \centering84{\LARGE\bf \@title\par} \bottomtitlebar % \vskip 0.1in % minus85\ifnipsfinal86\def\And{\end{tabular}\hfil\linebreak[0]\hfil87\begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\ignorespaces}%88\def\AND{\end{tabular}\hfil\linebreak[4]\hfil89\begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\ignorespaces}%90\begin{tabular}[t]{c}\bf\rule{\z@}{24pt}\@author\end{tabular}%91\else92\begin{tabular}[t]{c}\bf\rule{\z@}{24pt}93Anonymous Author(s) \\94Affiliation \\95Address \\96\texttt{email} \\97\end{tabular}%98\fi99\vskip 0.3in minus 0.1in}}100101\renewenvironment{abstract}{\vskip.075in\centerline{\large\bf102Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex}103104% sections with less space105\def\section{\@startsection {section}{1}{\z@}{-2.0ex plus106-0.5ex minus -.2ex}{1.5ex plus 0.3ex107minus0.2ex}{\large\bf\raggedright}}108109\def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus110-0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright}}111\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex112plus -0.5ex minus -.2ex}{0.5ex plus113.2ex}{\normalsize\bf\raggedright}}114\def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus1150.5ex minus .2ex}{-1em}{\normalsize\bf}}116\def\subparagraph{\@startsection{subparagraph}{5}{\z@}{1.5ex plus1170.5ex minus .2ex}{-1em}{\normalsize\bf}}118\def\subsubsubsection{\vskip1195pt{\noindent\normalsize\rm\raggedright}}120121122% Footnotes123\footnotesep 6.65pt %124\skip\footins 9pt plus 4pt minus 2pt125\def\footnoterule{\kern-3pt \hrule width 12pc \kern 2.6pt }126\setcounter{footnote}{0}127128% Lists and paragraphs129\parindent 0pt130\topsep 4pt plus 1pt minus 2pt131\partopsep 1pt plus 0.5pt minus 0.5pt132\itemsep 2pt plus 1pt minus 0.5pt133\parsep 2pt plus 1pt minus 0.5pt134\parskip .5pc135136137%\leftmargin2em138\leftmargin3pc139\leftmargini\leftmargin \leftmarginii 2em140\leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em141142%\labelsep \labelsep 5pt143144\def\@listi{\leftmargin\leftmargini}145\def\@listii{\leftmargin\leftmarginii146\labelwidth\leftmarginii\advance\labelwidth-\labelsep147\topsep 2pt plus 1pt minus 0.5pt148\parsep 1pt plus 0.5pt minus 0.5pt149\itemsep \parsep}150\def\@listiii{\leftmargin\leftmarginiii151\labelwidth\leftmarginiii\advance\labelwidth-\labelsep152\topsep 1pt plus 0.5pt minus 0.5pt153\parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt154\itemsep \topsep}155\def\@listiv{\leftmargin\leftmarginiv156\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}157\def\@listv{\leftmargin\leftmarginv158\labelwidth\leftmarginv\advance\labelwidth-\labelsep}159\def\@listvi{\leftmargin\leftmarginvi160\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}161162\abovedisplayskip 7pt plus2pt minus5pt%163\belowdisplayskip \abovedisplayskip164\abovedisplayshortskip 0pt plus3pt%165\belowdisplayshortskip 4pt plus3pt minus3pt%166167% Less leading in most fonts (due to the narrow columns)168% The choices were between 1-pt and 1.5-pt leading169%\def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt} % got rid of @ (MK)170\def\normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}171\def\small{\@setsize\small{10pt}\ixpt\@ixpt}172\def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}173\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}174\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}175\def\large{\@setsize\large{14pt}\xiipt\@xiipt}176\def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}177\def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}178\def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}179\def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}180181\def\toptitlebar{\hrule height4pt\vskip .25in\vskip-\parskip}182183\def\bottomtitlebar{\vskip .29in\vskip-\parskip\hrule height1pt\vskip184.09in} %185%Reduced second vskip to compensate for adding the strut in \@author186187% Vertical Ruler188% This code is, largely, from the CVPR 2010 conference style file189% ----- define vruler190\makeatletter191\newbox\nipsrulerbox192\newcount\nipsrulercount193\newdimen\nipsruleroffset194\newdimen\cv@lineheight195\newdimen\cv@boxheight196\newbox\cv@tmpbox197\newcount\cv@refno198\newcount\cv@tot199% NUMBER with left flushed zeros \fillzeros[<WIDTH>]<NUMBER>200\newcount\cv@tmpc@ \newcount\cv@tmpc201\def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi202\cv@tmpc=1 %203\loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi204\ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat205\ifnum#2<0\advance\cv@tmpc1\relax-\fi206\loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat207\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}%208% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]209\def\makevruler[#1][#2][#3][#4][#5]{\begingroup\offinterlineskip210\textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt%211\global\setbox\nipsrulerbox=\vbox to \textheight{%212{\parskip=0pt\hfuzz=150em\cv@boxheight=\textheight213\cv@lineheight=#1\global\nipsrulercount=#2%214\cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2%215\cv@refno1\vskip-\cv@lineheight\vskip1ex%216\loop\setbox\cv@tmpbox=\hbox to0cm{{\nipstenhv\hfil\fillzeros[#4]\nipsrulercount}}%217\ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break218\advance\cv@refno1\global\advance\nipsrulercount#3\relax219\ifnum\cv@refno<\cv@tot\repeat}}\endgroup}%220\makeatother221% ----- end of vruler222223% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]224\def\nipsruler#1{\makevruler[12pt][#1][1][3][0.993\textheight]\usebox{\nipsrulerbox}}225\AddToShipoutPicture{%226\ifnipsfinal\else227\nipsruleroffset=\textheight228\advance\nipsruleroffset by -3.7pt229\color[rgb]{.7,.7,.7}230\AtTextUpperLeft{%231\put(\LenToUnit{-35pt},\LenToUnit{-\nipsruleroffset}){%left ruler232\nipsruler{\nipsrulercount}}233}234\fi235}236237238