elsarticle/doc/rvdtx.sty
author Madarasi Peter
Wed, 30 Nov 2016 16:52:36 +0100
changeset 22 1a4874982d84
permissions -rw-r--r--
outline, fine tune
alpar@0
     1
%
alpar@0
     2
%
alpar@0
     3
%  File: rvdtx.sty
alpar@0
     4
%  
alpar@0
     5
%  Auxiliary package to format *.dtx documents.
alpar@0
     6
% 
alpar@0
     7
%  Copyright (c) 2008, 2009 CV Radhakrishnan <cvr@river-valley.org>,
alpar@0
     8
%                     
alpar@0
     9
%  This file may be distributed and/or modified under the conditions
alpar@0
    10
%  of the LaTeX Project Public License, either version 1.2 of this
alpar@0
    11
%  license or (at your option) any later version.  The latest version
alpar@0
    12
%  of this license is in:
alpar@0
    13
%   
alpar@0
    14
%    http://www.latex-project.org/lppl.txt
alpar@0
    15
%   
alpar@0
    16
%  and version 1.2 or later is part of all distributions of LaTeX
alpar@0
    17
%  version 1999/12/01 or later.
alpar@0
    18
%
alpar@0
    19
%
alpar@0
    20
\newcounter{colorscheme}
alpar@0
    21
alpar@0
    22
\newif\if@xcolor \@xcolorfalse
alpar@0
    23
\newif\if@mylogo \@mylogofalse
alpar@0
    24
alpar@0
    25
\DeclareOption{mylogo}{\global\@mylogotrue}
alpar@0
    26
\DeclareOption{green}{\setcounter{colorscheme}{1}}
alpar@0
    27
\DeclareOption{orange}{\setcounter{colorscheme}{0}}
alpar@0
    28
\DeclareOption{xcolor}{\global\@xcolortrue}
alpar@0
    29
\DeclareOption{qone}{\AtEndOfPackage{\global\let\dtxmark\dtxmarkone}}
alpar@0
    30
\DeclareOption{qtwo}{\AtEndOfPackage{\global\let\dtxmark\dtxmarktwo}}
alpar@0
    31
alpar@0
    32
\ProcessOptions
alpar@0
    33
\def\loadXcolor{\if@xcolor\RequirePackage[dvipsnames,svgnames]{xcolor}\fi}
alpar@0
    34
alpar@0
    35
\loadXcolor
alpar@0
    36
\ifcase\thecolorscheme
alpar@0
    37
%
alpar@0
    38
%  Orange color spec (default)
alpar@0
    39
%
alpar@0
    40
 \colorlet{itemcolor}{brown}
alpar@0
    41
 \colorlet{verbcolor}{Sepia}
alpar@0
    42
 \colorlet{botrulecolor}{orange!25}
alpar@0
    43
 \colorlet{botbgcolor}{orange!15}
alpar@0
    44
 \colorlet{botcolor}{orange!80}
alpar@0
    45
 \colorlet{pgrulecolor}{orange}
alpar@0
    46
 \colorlet{pgbgcolor}{white}
alpar@0
    47
alpar@0
    48
 \colorlet{quicklinkrulecolor}{orange!40}
alpar@0
    49
 \colorlet{quicklinkcolor}{brown}
alpar@0
    50
 \colorlet{topverticalrule}{brown}
alpar@0
    51
 \colorlet{titlecolor}{brown}
alpar@0
    52
 \colorlet{hlinkcolor}{brown}
alpar@0
    53
 \colorlet{hlinktricolor}{orange!70}
alpar@0
    54
 \colorlet{linkcolor}{brown}
alpar@0
    55
 \colorlet{urlcolor}{brown}
alpar@0
    56
alpar@0
    57
% \colorlet{arrayrulecolor}{olive!30}
alpar@0
    58
 \colorlet{seccolor}{brown}
alpar@0
    59
alpar@0
    60
 \colorlet{toprulecolor}{orange!30}
alpar@0
    61
 \colorlet{topbgcolor}{orange!10}
alpar@0
    62
 \colorlet{topcolor}{brown!80}
alpar@0
    63
%
alpar@0
    64
%
alpar@0
    65
\or% Green color specs
alpar@0
    66
%
alpar@0
    67
%
alpar@0
    68
 \colorlet{itemcolor}{OliveGreen}
alpar@0
    69
 \colorlet{verbcolor}{OliveGreen}
alpar@0
    70
 \colorlet{botrulecolor}{GreenYellow!25}
alpar@0
    71
 \colorlet{botbgcolor}{GreenYellow!30}
alpar@0
    72
 \colorlet{botcolor}{Green!80}
alpar@0
    73
 \colorlet{pgrulecolor}{GreenYellow}
alpar@0
    74
 \colorlet{pgbgcolor}{white}
alpar@0
    75
alpar@0
    76
 \colorlet{quicklinkrulecolor}{Green!40}
alpar@0
    77
 \colorlet{quicklinkcolor}{Green}
alpar@0
    78
 \colorlet{topverticalrule}{Green}
alpar@0
    79
 \colorlet{titlecolor}{DarkOliveGreen}
alpar@0
    80
 \colorlet{hlinkcolor}{DarkOliveGreen}
alpar@0
    81
 \colorlet{hlinktricolor}{Green!70}
alpar@0
    82
 \colorlet{linkcolor}{OliveGreen}
alpar@0
    83
 \colorlet{urlcolor}{OliveGreen}
alpar@0
    84
alpar@0
    85
% \colorlet{arrayrulecolor}{olive!30}
alpar@0
    86
 \colorlet{seccolor}{OliveGreen}
alpar@0
    87
alpar@0
    88
 \colorlet{toprulecolor}{GreenYellow!50}
alpar@0
    89
 \colorlet{topbgcolor}{GreenYellow!20}
alpar@0
    90
 \colorlet{topcolor}{GreenYellow!80}
alpar@0
    91
\fi
alpar@0
    92
alpar@0
    93
\def\floatpagefraction{.99}
alpar@0
    94
\usepackage{geometry}
alpar@0
    95
\geometry{top=2in,
alpar@0
    96
  bottom=1in,
alpar@0
    97
  left=2in,
alpar@0
    98
  right=1in,
alpar@0
    99
  a4paper}
alpar@0
   100
alpar@0
   101
%\DeclareRobustCommand{\LaTeX}{L\kern-.25em%
alpar@0
   102
%   {\sbox\z@ T%
alpar@0
   103
%     \vbox to\ht\z@{%
alpar@0
   104
%     {\check@mathfonts
alpar@0
   105
%     \fontsize\sf@size\z@
alpar@0
   106
%     \math@fontsfalse\selectfont
alpar@0
   107
%     A}%
alpar@0
   108
%    \vss}%
alpar@0
   109
%   }%-.10em%
alpar@0
   110
%  \TeX
alpar@0
   111
%}
alpar@0
   112
\DeclareRobustCommand{\LaTeX}{L\kern-.25em%
alpar@0
   113
  {\sbox\z@ T%
alpar@0
   114
         \vbox to\ht\z@{%
alpar@0
   115
           \hbox{%
alpar@0
   116
             \check@mathfonts
alpar@0
   117
              \fontsize\sf@size\z@
alpar@0
   118
              \math@fontsfalse\selectfont
alpar@0
   119
              A}%
alpar@0
   120
          \vss}%
alpar@0
   121
        }%
alpar@0
   122
   \kern-.10em%
alpar@0
   123
   \TeX}
alpar@0
   124
alpar@0
   125
\RequirePackage{pdfwidgets}
alpar@0
   126
alpar@0
   127
\RequirePackage{comment,xspace}
alpar@0
   128
\def\xml{\textsc{xml}\xspace}
alpar@0
   129
\def\latex{\LaTeX\xspace}
alpar@0
   130
\def\pdf{\textsc{pdf}\xspace}
alpar@0
   131
\def\pdfa{\textsc{pdf/a-1}b\xspace}
alpar@0
   132
\def\pdfx{\textsc{pdf/x-1}a\xspace}
alpar@0
   133
\def\xmp{\textsc{xmp}\xspace}
alpar@0
   134
\def\pdftex{\textsc{pdf\TeX}\xspace}
alpar@0
   135
\def\defmacro#1{\texttt{\@bsl#1}}
alpar@0
   136
\def\thanh{H\`an Th\^e Th\`anh\xspace}
alpar@0
   137
\def\gnulinux{\textsc{gnu/linux}\xspace}
alpar@0
   138
alpar@0
   139
\let\@DRAFTout@Hook\@empty
alpar@0
   140
\newcommand{\DRAFTout}{\g@addto@macro\@DRAFTout@Hook}
alpar@0
   141
\newcommand{\@DRAFTout@Out}{%
alpar@0
   142
   \afterassignment\@DRAFTout@Test
alpar@0
   143
   \global\setbox\@cclv=
alpar@0
   144
   }
alpar@0
   145
\newcommand{\@DRAFTout@Test}{%
alpar@0
   146
   \ifvoid\@cclv\relax
alpar@0
   147
      \aftergroup\@DRAFTout@Output
alpar@0
   148
   \else
alpar@0
   149
      \@DRAFTout@Output
alpar@0
   150
   \fi%
alpar@0
   151
   }
alpar@0
   152
\newcommand{\@DRAFTout@Output}{%
alpar@0
   153
   \@DRAFTout@Hook%
alpar@0
   154
   \@DRAFTout@Org@Out\box\@cclv%
alpar@0
   155
   }
alpar@0
   156
\newcommand{\@DRAFTout@Org@Out}{}
alpar@0
   157
\newcommand*{\@DRAFTout@Init}{%
alpar@0
   158
   \let\@DRAFTout@Org@Out\shipout
alpar@0
   159
   \let\shipout\@DRAFTout@Out
alpar@0
   160
   }
alpar@0
   161
\newdimen\OHeight
alpar@0
   162
\setlength\OHeight{\textheight}
alpar@0
   163
\addtolength\OHeight{\headheight}
alpar@0
   164
\addtolength\OHeight{\headsep}
alpar@0
   165
\addtolength\OHeight{\footskip}
alpar@0
   166
alpar@0
   167
alpar@0
   168
\newif\ifoverlay\overlayfalse
alpar@0
   169
alpar@0
   170
\AtBeginDocument{\@DRAFTout@Init}
alpar@0
   171
\newcommand{\@DraftOverlay@Hook}{}
alpar@0
   172
\newcommand{\AddToDraftOverlay}{\g@addto@macro\@DraftOverlay@Hook}
alpar@0
   173
\newcommand{\ClearDraftOverlay}{\let\@DraftOverlay@Hook\@empty}
alpar@0
   174
\newcommand{\@DraftOverlay}{%
alpar@0
   175
  \ifx\@DraftOverlay@Hook\@empty
alpar@0
   176
  \else
alpar@0
   177
    \bgroup
alpar@0
   178
      \@tempdima=1in
alpar@0
   179
      \@tempcnta=\@tempdima
alpar@0
   180
      \@tempcntb=-\@tempdima
alpar@0
   181
      \advance\@tempcntb\paperheight
alpar@0
   182
      \ifoverlay
alpar@0
   183
       \global\setbox\@cclv\vbox{%
alpar@0
   184
        \box\@cclv
alpar@0
   185
        \vbox{\let\protect\relax%
alpar@0
   186
         \unitlength=1pt%
alpar@0
   187
         \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)%
alpar@0
   188
          \@DraftOverlay@Hook%
alpar@0
   189
         \endpicture}}%
alpar@0
   190
     \else
alpar@0
   191
       \global\setbox\@cclv\vbox{%
alpar@0
   192
        \vbox{\let\protect\relax%
alpar@0
   193
         \unitlength=1sp%
alpar@0
   194
         \pictur@(0,0)(\@tempcnta,\@tempcntb)%
alpar@0
   195
          \@DraftOverlay@Hook%
alpar@0
   196
         \endpicture}%
alpar@0
   197
         \box\@cclv}%
alpar@0
   198
     \fi 
alpar@0
   199
    \egroup
alpar@0
   200
  \fi
alpar@0
   201
}
alpar@0
   202
alpar@0
   203
\definecolor{gray30}{gray}{.7}
alpar@0
   204
\definecolor{gray20}{gray}{.8}
alpar@0
   205
\definecolor{gray10}{gray}{.9}
alpar@0
   206
alpar@0
   207
\DRAFTout{\@DraftOverlay}
alpar@0
   208
\long\def\puttext(#1)#2{\AddToDraftOverlay{%
alpar@0
   209
  \setlength{\unitlength}{1pt}\thinlines%
alpar@0
   210
  \put(#1){#2}}}
alpar@0
   211
alpar@0
   212
\RequirePackage{shortvrb}
alpar@0
   213
\MakeShortVerb{\|}
alpar@0
   214
\RequirePackage{amsfonts,amssymb}
alpar@0
   215
\IfFileExists{pxfonts.sty}{\RequirePackage{pxfonts}}{}
alpar@0
   216
%\IfFileExists{charter.sty}{\RequirePackage{charter}}{}
alpar@0
   217
\IfFileExists{lfr.sty}{\RequirePackage[scaled=.85]{lfr}}{}
alpar@0
   218
%\IfFileExists{prima.sty}{\RequirePackage[scaled=.8]{prima}}{}
alpar@0
   219
alpar@0
   220
\def\theCodelineNo{\reset@font\tiny\arabic{CodelineNo}}
alpar@0
   221
 
alpar@0
   222
\def\@seccntformat#1{\llap{\csname the#1\endcsname.\hspace*{6pt}}}
alpar@0
   223
\def\section{\@startsection {section}{1}{\z@}%
alpar@0
   224
      {-3.5ex \@plus -1ex \@minus -.2ex}%
alpar@0
   225
      {2.3ex \@plus.2ex}%
alpar@0
   226
      {\normalfont\large\bfseries\color{seccolor}}}
alpar@0
   227
\def\subsection{\@startsection{subsection}{2}{\z@}%
alpar@0
   228
      {-2.25ex\@plus -1ex \@minus -.2ex}%
alpar@0
   229
      {1.5ex \@plus .2ex}%
alpar@0
   230
      {\normalfont\normalsize\bfseries\color{seccolor}}}
alpar@0
   231
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
alpar@0
   232
      {-1.25ex\@plus -1ex \@minus -.2ex}%
alpar@0
   233
      {1.5ex \@plus .2ex}%
alpar@0
   234
      {\normalfont\normalsize\bfseries\color{seccolor}}}
alpar@0
   235
alpar@0
   236
%\RequirePackage[draft]{pdfdraftcopy}
alpar@0
   237
% \draftstring{}
alpar@0
   238
 \puttext(0,36){\botstring}%
alpar@0
   239
 \puttext(0,840){\copy\topbox}
alpar@0
   240
\if@mylogo
alpar@0
   241
 \puttext(531,829){\cvrlogo}
alpar@0
   242
\fi
alpar@0
   243
alpar@0
   244
\RequirePackage{colortbl}
alpar@0
   245
%\arrayrulecolor{arrayrulecolor}
alpar@0
   246
\let\shline\hline
alpar@0
   247
\def\hline{\noalign{\vskip3pt}\shline\noalign{\vskip4pt}}
alpar@0
   248
alpar@0
   249
\RequirePackage[pdftex,colorlinks]{hyperref}
alpar@0
   250
\def\Hlink#1#2{\hyperlink{#2}{\color{hlinktricolor}%
alpar@0
   251
     $\blacktriangleright$~\color{hlinkcolor}#1}}
alpar@0
   252
 \def\@linkcolor{linkcolor}
alpar@0
   253
 \def\@urlcolor{urlcolor}
alpar@0
   254
alpar@0
   255
\pagestyle{empty}
alpar@0
   256
\def\version#1{\gdef\@version{#1}}
alpar@0
   257
\def\@version{1.0}
alpar@0
   258
\def\contact#1{\gdef\@contact{#1}}
alpar@0
   259
\def\author#1{\gdef\@author{#1}}
alpar@0
   260
\def\@author{River Valley Technologies}
alpar@0
   261
\def\@contact{\texttt{support@river-valley.com}}
alpar@0
   262
\def\keywords#1{\gdef\@keywords{#1}}
alpar@0
   263
\def\@keywords{\LaTeX, \xml}
alpar@0
   264
alpar@0
   265
\long\def\Hrule{\\[-4pt]\hspace*{-3em}%
alpar@0
   266
     {\color{quicklinkrulecolor}\rule{\linewidth}{.1pt}}\\}
alpar@0
   267
alpar@0
   268
\long\def\dtxmarkone[#1][#2]#3#4#5{\def\next{#1}%
alpar@0
   269
     \ifcase\next\or\Hlink{#4}{#3}\Hrule \fi}
alpar@0
   270
alpar@0
   271
\newcounter{dtx}
alpar@0
   272
alpar@0
   273
\long\def\dtxmarktwo[#1][#2]#3#4#5{\def\next{#1}%
alpar@0
   274
   \stepcounter{dtx}\parbox{.45\linewidth}%
alpar@0
   275
    {\ifcase\next\or\Hlink{#4}{#3}\fi}%
alpar@0
   276
   \ifodd\thedtx\relax\else\Hrule\fi}
alpar@0
   277
alpar@0
   278
\let\dtxmark\dtxmarkone
alpar@0
   279
alpar@0
   280
\newbox\topbox
alpar@0
   281
\long\def\maketitle{\global\setbox\topbox=\vbox{\hsize=\paperwidth
alpar@0
   282
    \parindent=0pt
alpar@0
   283
    \fcolorbox{toprulecolor}{topbgcolor}%
alpar@0
   284
    {\parbox[t][2in][c]{\paperwidth}%
alpar@0
   285
      {\hspace*{15mm}%
alpar@0
   286
       \parbox[c]{.35\paperwidth}{\fontsize{18pt}{20pt}%
alpar@0
   287
          \raggedright\normalfont\sffamily \selectfont
alpar@0
   288
          \color{titlecolor} \@title\\[6pt]
alpar@0
   289
          {\normalsize\rmfamily\scshape\@author}}%
alpar@0
   290
%          {\footnotesize\textsc{keywords:} \@keywords}}%
alpar@0
   291
        \hfill
alpar@0
   292
        \parbox[c][2in][c]{1mm}{\color{topverticalrule}%
alpar@0
   293
          \rule{.1pt}{2in}}%
alpar@0
   294
        \hfill
alpar@0
   295
        \parbox[c][2in][c]{.35\paperwidth}%
alpar@0
   296
        {\normalfont\footnotesize\sffamily\color{quicklinkcolor}%
alpar@0
   297
           \vspace*{6pt} QUICK LINKS\Hrule
alpar@0
   298
            \IfFileExists{tmp.out}{\input tmp.out}{}%
alpar@0
   299
         }\hspace*{5mm}%
alpar@0
   300
      }%
alpar@0
   301
    }%
alpar@0
   302
  }%
alpar@0
   303
}
alpar@0
   304
\gdef\botstring{\fcolorbox{botrulecolor}{botbgcolor}%
alpar@0
   305
    {\parbox[t][.5in][t]{\paperwidth}%
alpar@0
   306
      {\normalfont\sffamily\footnotesize%
alpar@0
   307
        \color{botcolor}%
alpar@0
   308
        \hspace*{5mm}\parbox[c][.5in][c]{.45\paperwidth}%
alpar@0
   309
         {\raggedright \textcopyright\ 2009, Elsevier Ltd.
alpar@0
   310
%           \href{http://www.river-valley.com}{%
alpar@0
   311
%            http://www.river-valley.com}\\
alpar@0
   312
%            \textsc{sjp} Building, Cotton Hills, Trivandrum
alpar@0
   313
%           695014, India\\  9, Browns Court, Kennford,
alpar@0
   314
%           Exeter, United Kingdom          
alpar@0
   315
          Bugs, feature requests, suggestions and comments\\
alpar@0
   316
          shall be mailed to \href{mailto:elsarticle@river-valley.com}
alpar@0
   317
          {$<$elsarticle@river-valley.com$>$}. 
alpar@0
   318
        }\hfill%
alpar@0
   319
       \parbox[c][.5in][c]{1cm}
alpar@0
   320
        {\centering\sffamily\mdseries
alpar@0
   321
          \fcolorbox{pgrulecolor}{pgbgcolor}{\thepage}%
alpar@0
   322
        }\hfill
alpar@0
   323
       \parbox[c][.5in][c]{.45\paperwidth}
alpar@0
   324
        {\raggedleft\begin{tabular}{rl}%
alpar@0
   325
          Version:&\@version\\
alpar@0
   326
          Date:&\@date\\
alpar@0
   327
          Contact:&\@contact
alpar@0
   328
         \end{tabular}\hspace*{5mm}%
alpar@0
   329
        }%
alpar@0
   330
      }%
alpar@0
   331
    }%
alpar@0
   332
  }
alpar@0
   333
alpar@0
   334
\def\MacroFont{\fontencoding\encodingdefault
alpar@0
   335
        \fontfamily\ttdefault
alpar@0
   336
        \fontseries\mddefault
alpar@0
   337
        \fontshape\updefault
alpar@0
   338
        \color{verbcolor}\small}%
alpar@0
   339
alpar@0
   340
\def\verbatim@font{\normalfont\color{verbcolor}\ttfamily}
alpar@0
   341
alpar@0
   342
\def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi
alpar@0
   343
  \bgroup
alpar@0
   344
    \verb@eol@error \let\do\@makeother \dospecials
alpar@0
   345
    \verbatim@font\@noligs
alpar@0
   346
    \@ifstar\@sverb\@verb}
alpar@0
   347
alpar@0
   348
alpar@0
   349
\def\@lbr{\expandafter\@gobble\string\{}
alpar@0
   350
\def\@rbr{\expandafter\@gobble\string\}}
alpar@0
   351
\def\@bsl{\expandafter\@gobble\string\\}
alpar@0
   352
\def\@Bsl#1{\texttt{\@bsl#1}\xspace}
alpar@0
   353
\def\trics#1{\protect\@Bsl{#1}}
alpar@0
   354
\def\onecs#1{\protect\@Bsl{#1}}
alpar@0
   355
%\let\trics\onecs
alpar@0
   356
\@ifundefined{c@Glossary}{}{\c@GlossaryColumns=1
alpar@0
   357
  \c@IndexColumns=2}
alpar@0
   358
alpar@0
   359
\def\index@prologue{\section{Index}%
alpar@0
   360
                 \markboth{Index}{Index}%
alpar@0
   361
%                  Numbers written in italic refer to the page
alpar@0
   362
%                  where the corresponding entry is described;
alpar@0
   363
%                  numbers underlined refer to the
alpar@0
   364
%                  \ifcodeline@index
alpar@0
   365
%                    code line of the
alpar@0
   366
%                  \fi
alpar@0
   367
%                  definition; numbers in roman refer to the
alpar@0
   368
%                  \ifcodeline@index
alpar@0
   369
%                    code lines
alpar@0
   370
%                  \else
alpar@0
   371
%                    pages
alpar@0
   372
%                  \fi
alpar@0
   373
%                  where the entry is used.
alpar@0
   374
                 }
alpar@0
   375
alpar@0
   376
\@ifundefined{theglossary}{}{%
alpar@0
   377
\renewenvironment{theglossary}{%
alpar@0
   378
   \glossary@prologue%][\GlossaryMin]%
alpar@0
   379
    \GlossaryParms \let\item\@idxitem \ignorespaces}%
alpar@0
   380
   {}}
alpar@0
   381
alpar@0
   382
\newenvironment{decl}[1][]%
alpar@0
   383
    {\par\small\addvspace{1.5ex plus 1ex}%
alpar@0
   384
     \vskip -\parskip
alpar@0
   385
     \ifx\relax#1\relax
alpar@0
   386
        \def\@decl@date{}%
alpar@0
   387
     \else
alpar@0
   388
        \def\@decl@date{\NEWfeature{#1}}%
alpar@0
   389
     \fi
alpar@0
   390
     \noindent%\hspace{-\leftmargini}%
alpar@0
   391
     \begin{tabular}{l}\hline\ignorespaces}%
alpar@0
   392
    {\\\hline\end{tabular}\nobreak\@decl@date\par\nobreak
alpar@0
   393
     \vspace{0.75ex}\vskip -\parskip\ignorespacesafterend\noindent}
alpar@0
   394
alpar@0
   395
\newif\ifhave@multicol
alpar@0
   396
\newif\ifcodeline@index
alpar@0
   397
alpar@0
   398
\IfFileExists{multicol.sty}{\have@multicoltrue
alpar@0
   399
                            \RequirePackage{multicol}%
alpar@0
   400
                           }{}
alpar@0
   401
alpar@0
   402
\newdimen\IndexMin         \IndexMin       = 80pt
alpar@0
   403
\newcount\c@IndexColumns   \c@IndexColumns = 2
alpar@0
   404
\ifhave@multicol
alpar@0
   405
  \renewenvironment{theindex}
alpar@0
   406
    {\begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]%
alpar@0
   407
      \IndexParms \let\item\@idxitem \ignorespaces}%
alpar@0
   408
    {\end{multicols}}
alpar@0
   409
\else
alpar@0
   410
  \typeout{Can't find multicol.sty -- will use normal index layout if
alpar@0
   411
     necessary.}
alpar@0
   412
  \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
alpar@0
   413
    \columnseprule \z@  \columnsep 35\p@
alpar@0
   414
    \twocolumn[\index@prologue]%
alpar@0
   415
    \IndexParms \let\item\@idxitem \ignorespaces}
alpar@0
   416
  \def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
alpar@0
   417
\fi
alpar@0
   418
\long\def\IndexPrologue#1{\@bsphack\def\index@prologue{#1}\@esphack}
alpar@0
   419
\@ifundefined{index@prologue}
alpar@0
   420
     {\def\index@prologue{\section{Index}%
alpar@0
   421
                 \markboth{Index}{Index}%
alpar@0
   422
%                  Numbers written in italic refer to the page
alpar@0
   423
%                  where the corresponding entry is described;
alpar@0
   424
%                  numbers underlined refer to the
alpar@0
   425
%                  \ifcodeline@index
alpar@0
   426
%                    code line of the
alpar@0
   427
%                  \fi
alpar@0
   428
%                  definition; numbers in roman refer to the
alpar@0
   429
%                  \ifcodeline@index
alpar@0
   430
%                    code lines
alpar@0
   431
%                  \else
alpar@0
   432
%                    pages
alpar@0
   433
%                  \fi
alpar@0
   434
%                  where the entry is used.
alpar@0
   435
                 }}{}
alpar@0
   436
\@ifundefined{IndexParms}
alpar@0
   437
    {\def\IndexParms{%
alpar@0
   438
       \parindent \z@
alpar@0
   439
       \columnsep 15pt
alpar@0
   440
       \parskip 0pt plus 1pt
alpar@0
   441
       \rightskip 15pt
alpar@0
   442
       \mathsurround \z@
alpar@0
   443
       \parfillskip=-15pt
alpar@0
   444
        \footnotesize
alpar@0
   445
       \def\@idxitem{\par\hangindent 30pt}%
alpar@0
   446
       \def\subitem{\@idxitem\hspace*{15pt}}%
alpar@0
   447
       \def\subsubitem{\@idxitem\hspace*{25pt}}%
alpar@0
   448
       \def\indexspace{\par\vspace{10pt plus 2pt minus 3pt}}%
alpar@0
   449
      }}{}
alpar@0
   450
\def\efill{\hfill\nopagebreak}%
alpar@0
   451
\def\dotfill{\leaders\hbox to.6em{\hss .\hss}\hskip\z@ plus  1fill}%
alpar@0
   452
\def\dotfil{\leaders\hbox to.6em{\hss .\hss}\hfil}%
alpar@0
   453
\def\pfill{\unskip~\dotfill\penalty500\strut\nobreak
alpar@0
   454
               \dotfil~\ignorespaces}%
alpar@0
   455
alpar@0
   456
\let\scan@allowedfalse\relax
alpar@0
   457
alpar@0
   458
\def\tlformat#1{\begingroup\Large
alpar@0
   459
  \parbox[c][1.25em][c]{1.25em}{\centering\fontfamily{phv}
alpar@0
   460
  \fontseries{m}%
alpar@0
   461
  \selectfont\color{white}\huge#1}%
alpar@0
   462
  \endgroup}
alpar@0
   463
\def\tlFormat#1{\begingroup\Large
alpar@0
   464
  \parbox[c][1.25em][c]{1.25em}{\centering\fontfamily{phv}
alpar@0
   465
  \fontseries{m}%
alpar@0
   466
  \selectfont\color{black}\huge#1}%
alpar@0
   467
  \endgroup}
alpar@0
   468
\def\cvrlogo{\begingroup\fboxsep=2pt
alpar@0
   469
  \colorbox{olive}{\tlformat{c}}%
alpar@0
   470
  \colorbox{blue}{\tlformat{v}}%
alpar@0
   471
  \colorbox{red}{\tlformat{r}}
alpar@0
   472
  \endgroup}
alpar@0
   473
alpar@0
   474
alpar@0
   475
\endinput
alpar@0
   476
alpar@0
   477
%%
alpar@0
   478
%% End of file 'rvdtx.sty'
alpar@0
   479
%%