summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/thesis/makendx.sty
blob: 63f64f2a3a29436597859c79aa7fafd15ac56ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%% 
%% This is file `makendx.sty',
%% generated with the docstrip utility.
%% 
%% The original source files were:
%% 
%% makendx.dtx  (with options: `package')
%% 
%% Copyright (C) 1996 by Wenzel Matiaske, mati1831@perform.ww.tu-berlin.de 
%% 
%% You are not allowed to distribute this file without the 
%% original source makendx.dtx. For distribution of the 
%% sources see the copyright notice in the file makendx.dtx. 
%% 
\def\filename{makendx}
\def\fileversion{1.0}
\def\filedate{1996/05/16}
\def\docdate{1995/05/16}
\ProvidesPackage{makendx}
                [\filedate\space\fileversion\space%
                  LaTeX2e package (wm)]
\def\nofiles{\@fileswfalse
  \typeout{No auxiliary output files.^^J}%
  \long\def\protected@write##1##2##3{}%
  \let\makeindex\relax
  \let\makeglossary\relax
  \let\makenameindex\relax}
  \def\makenameindex{%
    \newwrite\@nameindexfile
    \immediate\openout\@nameindexfile=\jobname.ndx
    \def\nameindex{\@bsphack\begingroup
      \@sanitize
      \@wrnameindex}\typeout
    {Writing nameindex file \jobname.ndx }%
    }
  \def\@wrnameindex#1{%
    \protected@write\@nameindexfile{}%
    {\string\nameindexentry{#1}{\thepage}}%
    \endgroup
    \@esphack
    }
\def\nameindex{\@bsphack\begingroup\@sanitize\@index}
\providecommand{\namefont}[1]{\def\name@font{#1}}
\def\name@font{}              \namefont{\slshape}
\def\name{\@ifstar{\@sname[]}{\@ifnextchar [
  {\@tempswatrue\@name}{\@tempswafalse\@name[]}}}
\def\@name[#1]#2{{\name@font #2}%
  \if@tempswa%
     \nameindex{#1}%
  \else%
     \namenindex{#2}%
  \fi}
\def\@sname[#1]#2{\emph{#2}}
\newcommand{\printnameindex}{\@input@{\jobname.nin}}
\let\thenameindex\theindex
\long\def\addtocontents#1#2{%
  \protected@write\@auxout
      {\let\label\@gobble    \let\index\@gobble%
       \let\glossary\@gobble \let\makenameindex\@gobble}%
      {\string\@writefile{#1}{#2}}%
}
%% MakeIndex style file makendx.ist
%% 1995/10/29  Wenzel Matiaske
%%
%% keyword for nameindex entry
%% Begin nameindex entries
%% End   nameindex entries
\endinput
%% 
%% End of file `makendx.sty'.