doc-src/isar.sty
author wenzelm
Sat May 17 13:54:30 2008 +0200 (2008-05-17)
changeset 26928 ca87aff1ad2d
parent 26868 60058b050c58
child 28214 1e6d71cd4bf3
permissions -rw-r--r--
structure Display: less pervasive operations;
     1 
     2 %% $Id$
     3 
     4 \usepackage{ifthen}
     5 
     6 \newcommand{\indexdef}[3]%
     7 {\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
     8 \newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
     9 
    10 \newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
    11 \newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
    12 \newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
    13 
    14 \newcommand{\isasymAND}{\isakeyword{and}}
    15 \newcommand{\isasymIS}{\isakeyword{is}}
    16 \newcommand{\isasymWHERE}{\isakeyword{where}}
    17 \newcommand{\isasymBEGIN}{\isakeyword{begin}}
    18 \newcommand{\isasymIMPORTS}{\isakeyword{imports}}
    19 \newcommand{\isasymIN}{\isakeyword{in}}
    20 \newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
    21 
    22 \newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
    23 \newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
    24 \newcommand{\isarantiq}{antiquotation}
    25 \newcommand{\isarmeth}{method}
    26 \newcommand{\isaratt}{attribute}