1.1 --- a/doc-src/isar.sty Thu Apr 24 11:05:19 2008 +0200
1.2 +++ b/doc-src/isar.sty Thu Apr 24 11:38:10 2008 +0200
1.3 @@ -6,24 +6,25 @@
1.4
1.5 \usepackage{ifthen}
1.6
1.7 +\newcommand{\indexdef}[3]%
1.8 +{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
1.9 +\newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
1.10 +
1.11 +\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
1.12 +\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
1.13 +\newcommand{\indexisarcmd}[1]{\indexdef{}{command}{#1}}
1.14 +\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
1.15 +\newcommand{\indexisarmeth}[1]{\indexdef{}{method}{#1}}
1.16 +\newcommand{\indexisaratt}[1]{\indexdef{}{attribute}{#1}}
1.17 +\newcommand{\indexisarthm}[1]{\indexdef{}{fact}{#1}}
1.18 +\newcommand{\indexisarvar}[1]{\indexdef{}{term}{#1}}
1.19 +\newcommand{\indexisarcase}[1]{\indexdef{}{case}{#1}}
1.20 +\newcommand{\indexisarant}[1]{\indexdef{}{antiquotation}{#1}}
1.21 +\newcommand{\indexisarcmdof}[2]{\indexdef{#1}{command}{#2}}
1.22 +\newcommand{\indexisarmethof}[2]{\indexdef{#1}{method}{#2}}
1.23 +\newcommand{\indexisarattof}[2]{\indexdef{#1}{attribute}{#2}}
1.24 +
1.25 \newcommand{\isarkeyword}[1]{{\mathord{\mathbf{#1}}}}
1.26 -
1.27 -\newcommand{\indexoutersyntax}[1]{\index{#1 (syntax)|bold}}
1.28 -\newcommand{\indexoutertoken}[1]{\index{#1 (syntax)|bold}}
1.29 -\newcommand{\indexouternonterm}[1]{\index{#1 (syntax)|bold}}
1.30 -\newcommand{\indexisarcmd}[1]{\index{#1 (command)|bold}}
1.31 -\newcommand{\indexisarelem}[1]{\index{#1 (element)|bold}}
1.32 -\newcommand{\indexisarmeth}[1]{\index{#1 (method)|bold}}
1.33 -\newcommand{\indexisaratt}[1]{\index{#1 (attribute)|bold}}
1.34 -\newcommand{\indexisarthm}[1]{\index{#1 (theorem)|bold}}
1.35 -\newcommand{\indexisarvar}[1]{\index{#1 (variable)|bold}}
1.36 -\newcommand{\indexisarcase}[1]{\index{#1 (case)|bold}}
1.37 -\newcommand{\indexisarant}[1]{\index{#1 (antiquotation)|bold}}
1.38 -
1.39 -\newcommand{\indexisarcmdof}[2]{\index{#2 (#1 command)|bold}}
1.40 -\newcommand{\indexisarmethof}[2]{\index{#2 (#1 method)|bold}}
1.41 -\newcommand{\indexisarattof}[2]{\index{#2 (#1 attribute)|bold}}
1.42 -
1.43 \newcommand{\isarcmd}[1]{\isarkeyword{#1}}
1.44 \newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
1.45 \newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}