doc-src/isar.sty
author wenzelm
Fri May 09 23:18:52 2008 +0200 (2008-05-09)
changeset 26863 cc779d3da712
parent 26783 1651ff6a34b5
child 26868 60058b050c58
permissions -rw-r--r--
removed obsolete macros for Isar commands etc.;
     1 
     2 %% $Id$
     3 %%
     4 %% Isar language elements
     5 %%
     6 
     7 \usepackage{ifthen}
     8 
     9 \newcommand{\indexdef}[3]%
    10 {\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
    11 \newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
    12 
    13 \newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
    14 \newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
    15 \newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
    16 
    17 \newcommand{\isasymAND}{\isakeyword{and}}
    18 \newcommand{\isasymIS}{\isakeyword{is}}
    19 \newcommand{\isasymWHERE}{\isakeyword{where}}
    20 \newcommand{\isasymBEGIN}{\isakeyword{begin}}
    21 \newcommand{\isasymIMPORTS}{\isakeyword{imports}}
    22 \newcommand{\isasymIN}{\isakeyword{in}}
    23 \newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
    24 
    25 \newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
    26 \newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
    27 \newcommand{\isarantiq}{antiquotation}
    28 \newcommand{\isarmeth}{method}
    29 \newcommand{\isaratt}{attribute}