Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:24

0001 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0002 %  Name:     cmspaper.cls                                         %
0003 %                                                                 %
0004 %  Purpose:  Set LaTeX parameters for CMS note.                   %
0005 %                                                                 %
0006 %  This files is based on the Document Style 'CERNART'            %
0007 %  by  Michel Goossens CN/ASD                                     %
0008 %                                                                 %
0009 %   - requires packages: graphics                                 %
0010 %   - special treatment of title page                             %
0011 %                                                                 %
0012 %  Last mod : 25.11.1996                                          %
0013 %  Updated for new CMS logo May 97 / JPP                          %
0014 %                                                                 %
0015 %  Grzegorz Wrochna, CERN/PPE                                     %
0016 %                                                                 %
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 
0019 
0020 \def\fileversion{0.4}\def\filedate{25 Nov. 1996}
0021 \typeout{CMS paper style Version <\fileversion>, <\filedate>}
0022 \typeout{based on Document Style 'CERNART' Version <2.1>, <1 May 1995>}
0023 % -------------------------------- identification ---------------------------
0024 \NeedsTeXFormat{LaTeX2e}
0025 \ProvidesClass{cmspaper}[1996/11/25]
0026 % ---------------------------  declaration of options --
0027 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
0028 % ----------------------------  execution of options ------------------------
0029 \ProcessOptions
0030 % --------------------------------package loading ---------------------------
0031 \LoadClass{article}
0032  
0033 %%%%%%%% page size to be printable on both A4 and US Letter %%%%%%%
0034 
0035 \setlength{\hoffset}{-1in}
0036 \setlength{\voffset}{-1in}
0037 \setlength{\oddsidemargin}{25mm}
0038 \setlength{\evensidemargin}{25mm}
0039 \setlength{\marginparwidth}{25mm}
0040 \setlength{\marginparsep}{\baselineskip}
0041 \setlength{\topmargin}{20mm}
0042 \setlength{\headheight}{0mm}
0043 \setlength{\headsep}{0mm}
0044 \setlength{\footskip}{6mm}
0045 \setlength{\textwidth}{16cm}
0046 \ifcase \@ptsize
0047 %JPP-\setlength{\textheight}{58\baselineskip}
0048      \setlength{\textheight}{57\baselineskip}
0049 \or
0050 %JPP-\setlength{\textheight}{52\baselineskip}
0051      \setlength{\textheight}{51\baselineskip}
0052 \or 
0053 %JPP-\setlength{\textheight}{47\baselineskip}
0054      \setlength{\textheight}{46\baselineskip}
0055 \fi
0056 \addtolength{\textheight}{\topskip}
0057 
0058 %%%%% floats handling parameters for better placing of figures %%%%%%%
0059 \renewcommand{\topfraction}{1.0}
0060 \renewcommand{\dbltopfraction}{1.0}
0061 \renewcommand{\bottomfraction}{1.0}
0062 \renewcommand{\textfraction}{0.2}
0063 \setlength{\intextsep}{6pt}
0064 \setlength{\floatsep}{6pt}
0065 \setlength{\textfloatsep}{6pt}
0066 \setlength{\dblfloatsep}{6pt}
0067 \setlength{\dbltextfloatsep}{6pt}
0068 
0069 %%%%%%%%%%%%%%%% nonindented paragraphs %%%%%%%%%%%%%%%
0070 \setlength{\parindent}{0pt}
0071 \setlength{\parskip}{0.5\baselineskip}
0072  
0073 %%%%%%%%%%%%%%%%%%%%% section headings %%%%%%%%%%%%%%%%%%%%%%%%%%
0074 
0075 \def\section{\@startsection {section}{1}{\z@}%
0076 { 1\baselineskip plus  .5\baselineskip minus  .25\baselineskip}%
0077 {+0.1pt plus +0.1pt minus +0.1pt}{\reset@font\Large\bfseries}}
0078  
0079 \def\subsection{\@startsection{subsection}{2}{\z@}%
0080 { 1\baselineskip plus  .5\baselineskip minus  .25\baselineskip}%
0081 {+0.1pt plus +0.1pt minus +0.1pt}{\reset@font\large\bfseries}}
0082  
0083 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
0084 { 1\baselineskip plus  .5\baselineskip minus  .25\baselineskip}%
0085 {+0.1pt plus +0.1pt minus +0.1pt}{\reset@font\normalsize\bfseries}}
0086 
0087 %%%%%%%%%%%%%%%% define PostScript fonts %%%%%%%%%%%%%%%
0088   \renewcommand{\sfdefault}{phv}        % sansserif  = helvetica
0089   \renewcommand{\rmdefault}{ptm}        % roman      = times
0090   \renewcommand{\ttdefault}{pcr}        % typewriter = courier
0091   \newcommand{\hm}{\sf}                 % helvetica medium 
0092   \newcommand{\hb}{\bfseries\sffamily}  % helvetica bold
0093   \newcommand{\Hb}{\hb\fontsize{44pt}{46pt}\selectfont}  % HUGE helvetica bold
0094 
0095 %%%%%%%%%%%%%%%% two floating figures, side by side %%%%%%%%%%%%%%%
0096 \newenvironment{2figures}[1]{\begin{figure}[#1] 
0097   \begin{center}
0098     \begin{tabular}{p{.47\textwidth}p{.47\textwidth}} }
0099  {  \end{tabular}
0100   \end{center} 
0101  \end{figure}
0102 }
0103 
0104 %%%%%%%%%%%%%%%%%%%%%% footnotes %%%%%%%%%%%%%%%%%%%%%
0105 \def\footnoterule{\kern-3\p@
0106  \hrule width .4\columnwidth
0107  \kern 2.6\p@}
0108  
0109 %%%%%%%%%%%% Environment makefntext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0110 \long\def\@makefntext#1{\parindent=\z@
0111 \begin{list}{}%
0112    {\labelwidth1.5em\leftmargin\labelwidth% set global width
0113     \labelsep3pt%  horizontal separation between term and item
0114     \itemsep0pt%   vertical separation between two items
0115     \parsep0pt%    vertical separation two paragraphs in an item
0116     \topsep0pt%    vertical separation text/list
0117     \small}
0118 %   \footnotesize}
0119     \item [\hfill $^{\mathrm{\@thefnmark)}}$] #1\end{list}}% ***** end of makefntext
0120  
0121 %%%%%%%%%%%% Environment Figlist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0122 \newenvironment{Figlist}[1]{% Give highest figure number as parameter
0123 \vskip2mm\begin{center}{\bf FIGURE CAPTIONS}\end{center}
0124 \begin{list}{\bf Fig.\hfill\arabic{figure} : }{\usecounter{figure}
0125     \settowidth{\labelwidth}{\bf Fig . #1 : }% define global width
0126     \leftmargin\labelwidth \labelsep0pt
0127     \itemsep0pt plus 0.1ex minus 0.1ex
0128     \parsep0pt plus 0.1ex minus 0.1ex
0129     \topsep\baselineskip}}%
0130 {\end{list}\setcounter{figure}{0}% Reset figure counter
0131 }% ***** end of environment{Figlist} ****
0132 
0133 %%%%%%%%%%%% Environment CERNfig %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0134 \newenvironment{CERNfig}{\begingroup % figures, one per page
0135 \def\@makecaption##1##2{\hbox to\hsize{\hfil##1\hfil}}}%
0136 {\endgroup}
0137 % ***** end of environment{CERNfig} ****
0138  
0139 %%%%%%%%%%%% Environment Tablist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0140 \newenvironment{Tablist}[1]{% Give highest table number as parameter
0141 \vskip2mm\begin{center}{\bf TABLE CAPTIONS}\end{center}
0142 \begin{list}{\bf Tab.\hfill\arabic{table} : }{\usecounter{table}
0143     \settowidth{\labelwidth}{\bf Fig . #1 : }% define global width
0144     \leftmargin\labelwidth \labelsep0pt
0145     \itemsep0pt plus 0.1ex minus 0.1ex
0146     \parsep0pt plus 0.1ex minus 0.1ex
0147     \topsep\baselineskip}}%
0148 {\end{list}\setcounter{table}{0}% Reset table counter
0149 }% ***** end of environment{Tablist} ****
0150  
0151 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0152 %
0153 % \begin{titlepage}
0154 %     \cmsnote{yyyy-xxx}
0155 %     \date{}
0156 %     \title{ first  line \\
0157 %             second line \\
0158 %             etc...}
0159 %     \author{B.B.Auth\Instref{xx} M.M.~Auth2\Bothref{I1}{A2}
0160 %             C.D.user\Instref{yy} ...}
0161 % \submitted{}
0162 % \collaboration{}
0163 % \conference{}
0164 % \note{}
0165 % \dedication{}
0166 %     \Instfoot{xx}{text text}
0167 %     \Instfoot{yy}{text text}
0168 % \end{titlepage}
0169 %
0170 %%%%%%%%%%%%%%%%%%%%%%%%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%5
0171 \def\maketitle{% Dummy maketitle
0172 \typeout{Dummy maketitle --- Use titlepage instead}}
0173 
0174 % Definition of environment "titlepage"
0175 \def\titlepage{\clearpage%
0176 %JPP-or maybe pagestyle{plain}  ??
0177 \setcounter{footnote}{0}\pagestyle{empty}}% End of \titlepage tag
0178 
0179 % CMS NOTE header \cmsnote
0180 \def\cmsnote#1{{Available on CMS information server
0181 \hfill\Large\bf CMS NOTE #1} 
0182 \begin{center}\includegraphics{cms_note.eps}\end{center}\vspace*{0mm}}
0183 
0184 % CMS INTERNAL NOTE header \internalnote
0185 \def\internalnote#1{{Available on CMS information server
0186 \hfill\Large\bf CMS IN #1} 
0187 \begin{center}\includegraphics{cms_in.eps}\end{center}}
0188 
0189 % CMS CONFERENCE REPORT header \conferencereport
0190 \def\conferencereport#1{{Available on CMS information server
0191 \hfill\Large\bf CMS CR #1} 
0192 \begin{center}\includegraphics{cms_cr.eps}\end{center}}
0193 
0194 % Date (flushright)
0195 \def\date#1{{\large\bf\hfill #1}}
0196 %\def\date#1{\edef\@temp{#1}\ifx\@temp\@empty\def\@temp{\today}\fi
0197 %\hbox to \hsize{\hskip123mm\hbox{\@temp}\hss}}
0198 % Submitted{}
0199 \def\submitted#1{\vskip1em\begin{center}#1\end{center}}
0200 % collaboration{}
0201 \def\collaboration#1{\vskip1em\begin{center}\bfseries\itshape#1\end{center}}
0202 % conference{}
0203 \def\conference#1{\vskip1em\begin{center}#1\end{center}}
0204 % note{}
0205 \def\note#1{\vskip1em\begin{center}#1\end{center}}
0206 % dedication{}
0207 \def\dedication#1{\vskip1em\begin{center}\it#1\end{center}}
0208 % Title
0209 \def\title#1{\vskip1.5cm\begin{center}\huge\sf#1\end{center}\vskip1.5em}
0210 % Author
0211 %\def\@makefnmark{\hbox to 0pt{$^{\@thefnmark)\,}$\hss}}
0212 \def\@makefnmark{\hbox{$^{\@thefnmark)}$}}
0213 \def\author#1{%% Treat the list of authors
0214 \setcounter{footnote}{0}\def\@currentlabel{}%
0215 \begingroup\def\thefootnote{\arabic{footnote}}
0216 \def\@makefnmark{\hbox{$^{\rm\@thefnmark)}$}}
0217 \global\@topnum\z@ \begin{center}{\lineskip.5em
0218 \begin{tabular}[t]{c}#1\end{tabular}\par}
0219 \end{center}\par\vskip1.5em\@thanks\endgroup}
0220 %
0221 \newenvironment{Authlist}{\center}{\endcenter}
0222 % Abstract
0223 \def\abstract{\begin{center}{\vskip1.5em\bf Abstract}\\[\baselineskip]%
0224 \end{center}\quotation\noindent%
0225 \setlength{\parindent}{0pt}%
0226 \setlength{\parskip}{0.5\baselineskip}%
0227 \ignorespaces}
0228 \def\endabstract{\endquotation\par}
0229 %
0230 %%%%%%%%%%%% Institute definitions  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0231 \@ifundefined{c@instfoot}{\newcounter{instfoot}}{}
0232 \def\Iref#1{$^{\Inst{#1})}$}   \let\Instref=\Iref
0233 \def\Inst#1{\@ifundefined{r@#1}{{\bf ??}}%
0234 {\edef\@tempa{\@nameuse{r@#1}}\expandafter\@car\@tempa \@nil\null}}
0235 %
0236 %%AS If we found `Instfoot' inside `Authlist' env, we will changes the
0237 %    formatting.
0238 %
0239 \def\Instfoot#1#2{\def\@temp{Authlist}%
0240 \ifx\@temp\@currenvir
0241     \par {\small\it#2} \\[2ex]%
0242 \else
0243     \refstepcounter{instfoot}\label{#1}%
0244     \xdef\@thefnmark{\arabic{instfoot}}\@footnotetext{#2}%
0245 \fi
0246 }
0247 %
0248 %%%%%%%%%%%% Anotation definitions  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0249 %%%%%\@ifundefined{c@anotfoot}{\newcounter{anotfoot}}{}
0250 \@ifundefined{mathrm}{\newcommand{\mathrm}[1]{{\rm#1}}}{}
0251 \def\Aref#1{$^{\mathrm{#1})}$} \let\Anotref=\Aref
0252 \def\Anotfoot#1#2{\xdef\@thefnmark{#1}\@footnotetext{#2}}
0253 %
0254 %%%%%%%%%%%% Anotation references   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0255 \def\AAref#1#2{$^{\mathrm{#1,#2)}}$}       \let\AnotAnotref=\AAref
0256 \def\IAref#1#2{$^{\Inst{#1},\mathrm{#2)}}$}\let\InstAnotref=\IAref
0257 \def\IIref#1#2{$^{\Inst{#1},\Inst{#2})}$}  \let\InstInstref=\IIref
0258 \def\IIIref#1#2#3{$^{\Inst{#1},\Inst{#2},\Inst{#3})}$}
0259 \def\IIAref#1#2#3{$^{\Inst{#1},\Inst{#2},\mathrm{#3)}}$}
0260 %%%%%%%%%%%% Annospec environment   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0261 \newenvironment{Annospec}[1]{% Give width for offset of text
0262 \vskip2mm\bgroup
0263 %\def\@makefnmark{\hbox{$^{\mathrm{\@thefnmark)}}$}}
0264 \long\def\@makefntext##1{\parindent=\z@
0265 \begin{list}{}%
0266    {\labelwidth=#1\leftmargin\labelwidth% set global width
0267     \labelsep3pt%  horizontal separation between term and item
0268     \itemsep0pt%   vertical separation between two items
0269     \parsep0pt%    vertical separation two paragraphs in an item
0270     \topsep0pt%    vertical separation text/list
0271     \small}
0272 %   \footnotesize}
0273     \item [\hfill $^{\mathrm{\@thefnmark)}}$] ##1\end{list}}}% ***** end of makefntext
0274 {\egroup}% ***** end of environment{Annospec} *****
0275  
0276  
0277 % End of titlepage
0278 \def\endtitlepage{%% Reset counters
0279 \setcounter{footnote}{0}\let\titlepage\relax\vfill
0280 %JPP-this is not the proper place for secounter{page}, must be in the tex file
0281 %JPP-\newpage\setcounter{page}{1}\pagestyle{plain}\pagenumbering{arabic}%
0282 \newpage\pagestyle{plain}\pagenumbering{arabic}%
0283 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
0284 
0285 \RequirePackage{graphics}
0286  
0287 % Local CERN stuff
0288  
0289 \newcommand{\bra}[1]{\left\langle #1\right|} % <bra|
0290 \newcommand{\ket}[1]{\left| #1\right\rangle} % |ket>
0291 \newcommand{\braket}[2]{\left\langle#1 | #2\right\rangle} % <bra|ket>
0292  
0293 \endinput
0294  
0295 %% \CharacterTable
0296 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
0297 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
0298 %%   Digits        \0\1\2\3\4\5\6\7\8\9
0299 %%   Exclamation   \!     Double quote  \"     Hash (number) \#
0300 %%   Dollar        \$     Percent       \%     Ampersand     \&
0301 %%   Acute accent  \'     Left paren    \(     Right paren   \)
0302 %%   Asterisk      \*     Plus          \+     Comma         \,
0303 %%   Minus         \-     Point         \.     Solidus       \/
0304 %%   Colon         \:     Semicolon     \;     Less than     \<
0305 %%   Equals        \=     Greater than  \>     Question mark \?
0306 %%   Commercial at \@     Left bracket  \[     Backslash     \\
0307 %%   Right bracket \]     Circumflex    \^     Underscore    \_
0308 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
0309 %%   Right brace   \}     Tilde         \~}
0310 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%