doc-src/isar.sty
changeset 26745 93f36f5f4a35
parent 26744 7b9439678304
child 26755 84408d6ff180
     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{\isarkeyword}[1]{{\mathord{\mathbf{#1}}}}
     1.8 +\newcommand{\indexdef}[3]%
     1.9 +{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
    1.10 +\newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
    1.11  
    1.12 -\newcommand{\indexoutersyntax}[1]{\index{#1 (syntax)|bold}}
    1.13 -\newcommand{\indexoutertoken}[1]{\index{#1 (syntax)|bold}}
    1.14 -\newcommand{\indexouternonterm}[1]{\index{#1 (syntax)|bold}}
    1.15 -\newcommand{\indexisarcmd}[1]{\index{#1 (command)|bold}}
    1.16 -\newcommand{\indexisarelem}[1]{\index{#1 (element)|bold}}
    1.17 -\newcommand{\indexisarmeth}[1]{\index{#1 (method)|bold}}
    1.18 -\newcommand{\indexisaratt}[1]{\index{#1 (attribute)|bold}}
    1.19 -\newcommand{\indexisarthm}[1]{\index{#1 (theorem)|bold}}
    1.20 -\newcommand{\indexisarvar}[1]{\index{#1 (variable)|bold}}
    1.21 -\newcommand{\indexisarcase}[1]{\index{#1 (case)|bold}}
    1.22 -\newcommand{\indexisarant}[1]{\index{#1 (antiquotation)|bold}}
    1.23 +\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
    1.24 +\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
    1.25 +\newcommand{\indexisarcmd}[1]{\indexdef{}{command}{#1}}
    1.26 +\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
    1.27 +\newcommand{\indexisarmeth}[1]{\indexdef{}{method}{#1}}
    1.28 +\newcommand{\indexisaratt}[1]{\indexdef{}{attribute}{#1}}
    1.29 +\newcommand{\indexisarthm}[1]{\indexdef{}{fact}{#1}}
    1.30 +\newcommand{\indexisarvar}[1]{\indexdef{}{term}{#1}}
    1.31 +\newcommand{\indexisarcase}[1]{\indexdef{}{case}{#1}}
    1.32 +\newcommand{\indexisarant}[1]{\indexdef{}{antiquotation}{#1}}
    1.33 +\newcommand{\indexisarcmdof}[2]{\indexdef{#1}{command}{#2}}
    1.34 +\newcommand{\indexisarmethof}[2]{\indexdef{#1}{method}{#2}}
    1.35 +\newcommand{\indexisarattof}[2]{\indexdef{#1}{attribute}{#2}}
    1.36  
    1.37 -\newcommand{\indexisarcmdof}[2]{\index{#2 (#1 command)|bold}}
    1.38 -\newcommand{\indexisarmethof}[2]{\index{#2 (#1 method)|bold}}
    1.39 -\newcommand{\indexisarattof}[2]{\index{#2 (#1 attribute)|bold}}
    1.40 -
    1.41 +\newcommand{\isarkeyword}[1]{{\mathord{\mathbf{#1}}}}
    1.42  \newcommand{\isarcmd}[1]{\isarkeyword{#1}}
    1.43  \newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
    1.44  \newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}