blob: c58d8c50f41038aa0c20b1255026eb86decc57fe (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
%%
%% This is file `geschichtsfrkldoc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% geschichtsfrkl.dtx (with options: `dtxstyle')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from geschichtsfrkldoc.sty.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file geschichtsfrkl.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesPackage{geschichtsfrkldoc.sty}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This code is curtesy of David Carlisle
%% http://tex.stackexchange.com/questions/49850/indexing-macros-without-a-leading-backslash-in-a-dtx-file
%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\bibmacro{\def\macro@type{bibmacro}\environment}
\let\endbibmacro\endenvironment
\def\bibbool{\def\macro@type{bibbool}\environment}
\let\endbibbool\endenvironment
\def\BibliographyOption{\def\macro@type{bibliography option}\environment}
\let\endBibliographyOption\endenvironment
\def\BibliographyDriver{\def\macro@type{bibliography driver}\environment}
\let\endBibliographyDriver\endenvironment
\def\EntryOption{\def\macro@type{entry option}\environment}
\let\endEntryOption\endenvironment
\def\FieldFormat{\def\macro@type{field format}\environment}
\let\endFieldFormat\endenvironment
\def\NameFormat{\def\macro@type{name format}\environment}
\let\endNameFormat\endenvironment
\def\macro@type{environment}%% default
\def\macro@finish{%
\macro@namepart
\ifx\macro@namepart\xbegin
\def\macro@type{environment}%
\else\ifx\macro@namepart\xifbool
\def\macro@type{bibbool}%
\let\macro@namepart\xbegin
\else\ifx\macro@namepart\xusebibmacro
\def\macro@type{bibmacro}%
\let\macro@namepart\xbegin
\fi\fi\fi
\ifx\macro@namepart\xbegin
\expandafter\macro@grabname
\else
\ifx\macro@namepart\xend
\else
\ifnot@excluded
\edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}%
\@tempa \fi
\fi\fi}
\def\xbegin{begin}
\def\xifbool{ifbool}
\def\xusebibmacro{usebibmacro}
\def\xend{end}
\begingroup
\lccode`\(`\{
\lccode`\)`\}
\lowercase{\endgroup
\def\macro@grabname\fi(#1){%
(#1)%
\SpecialxEnvUseIndex\macro@type{#1}%
}
}
\def\SpecialxEnvUseIndex#1{%
\expandafter\SpecialxxEnvUseIndex\expandafter{#1}}
\def\SpecialxxEnvUseIndex#1#2{\@bsphack
\special@index{#2\actualchar{\string\ttfamily\space#2}
(#1)}%
\special@index{#1s:\levelchar#2\actualchar{\string\ttfamily\space#2}}\@esphack}
\def\SpecialMainEnvIndex{%
\expandafter\SpecialMainxEnvIndex\expandafter{\macro@type}}
\def\SpecialMainxEnvIndex#1#2{\@bsphack\special@index{%
#2\actualchar
{\string\ttfamily\space#2}
(#1)%
\encapchar main}%
\special@index{#1s:\levelchar#2\actualchar{%
\string\ttfamily\space#2}\encapchar
main}\@esphack}
\def\DescribeBibBool{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{bibbool}\begingroup\Describe@Env}
\def\DescribeBibMacro{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{bibmacro}\begingroup\Describe@Env}
\def\DescribeBibEnv{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{environment}\begingroup\Describe@Env}
\def\DescribeBibOption{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{bibliography option}\begingroup\Describe@Env}
\def\DescribeBibDriver{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{bibliography driver}\begingroup\Describe@Env}
\def\DescribeBibField{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{field}\begingroup\Describe@Env}
\def\DescribeEntryOption{%
\leavevmode\@bsphack\begingroup\MakePrivateLetters
\def\macro@type{entry option}\begingroup\Describe@Env}
\def\Describe@Env#1{\endgroup
\marginpar{\raggedleft\PrintDescribeEnv{#1}}%
\SpecialEnvIndex{#1}\endgroup\@esphack\ignorespaces}
\def\SpecialEnvIndex{%
\expandafter\SpecialxEnvIndex\expandafter{\macro@type}}
\def\SpecialxEnvIndex#1#2{\@bsphack
\index{#2\actualchar{\string\ttfamily\space#2}
(#1)\encapchar usage}%
\index{#1s:\levelchar#2\actualchar{\string\ttfamily\space#2}\encapchar
usage}\@esphack}
\endinput
%%
%% End of file `geschichtsfrkldoc.sty'.
|