doc-src/isar.sty
author wenzelm
Mon Sep 15 16:40:53 2008 +0200 (2008-09-15)
changeset 28214 1e6d71cd4bf3
parent 26868 60058b050c58
child 28761 9ec4482c9201
permissions -rw-r--r--
added isatt markup;
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@28214
    10
\newcommand{\isatt}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\tt #1}}
wenzelm@28214
    11
wenzelm@26745
    12
\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    13
\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    14
\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
wenzelm@7170
    15
wenzelm@26755
    16
\newcommand{\isasymAND}{\isakeyword{and}}
wenzelm@26755
    17
\newcommand{\isasymIS}{\isakeyword{is}}
wenzelm@26755
    18
\newcommand{\isasymWHERE}{\isakeyword{where}}
wenzelm@26769
    19
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
wenzelm@26769
    20
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
wenzelm@26783
    21
\newcommand{\isasymIN}{\isakeyword{in}}
wenzelm@26783
    22
\newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
wenzelm@26755
    23
wenzelm@7138
    24
\newcommand{\isartrans}[2]{#1 \mathbin{\,\to\,} #2}
wenzelm@7138
    25
\newcommand{\isarkeep}[1]{#1 \mathbin{\,\to\,} #1}
wenzelm@10335
    26
\newcommand{\isarantiq}{antiquotation}
wenzelm@7170
    27
\newcommand{\isarmeth}{method}
wenzelm@7170
    28
\newcommand{\isaratt}{attribute}