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;
wenzelm@7050
     1
wenzelm@7050
     2
%% $Id$
wenzelm@7050
     3
wenzelm@7050
     4
\usepackage{ifthen}
wenzelm@7050
     5
wenzelm@26745
     6
\newcommand{\indexdef}[3]%
wenzelm@26745
     7
{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
wenzelm@26745
     8
\newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
wenzelm@7138
     9
wenzelm@26745
    10
\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    11
\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    12
\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
wenzelm@7170
    13
wenzelm@26755
    14
\newcommand{\isasymAND}{\isakeyword{and}}
wenzelm@26755
    15
\newcommand{\isasymIS}{\isakeyword{is}}
wenzelm@26755
    16
\newcommand{\isasymWHERE}{\isakeyword{where}}
wenzelm@26769
    17
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
wenzelm@26769
    18
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
wenzelm@26783
    19
\newcommand{\isasymIN}{\isakeyword{in}}
wenzelm@26783
    20
\newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
wenzelm@26755
    21
wenzelm@7138
    22
\newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
wenzelm@7138
    23
\newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
wenzelm@10335
    24
\newcommand{\isarantiq}{antiquotation}
wenzelm@7170
    25
\newcommand{\isarmeth}{method}
wenzelm@7170
    26
\newcommand{\isaratt}{attribute}