doc-src/isar.sty
author wenzelm
Wed Feb 11 21:39:59 2009 +0100 (2009-02-11)
changeset 29727 cda1fb36a082
parent 28761 9ec4482c9201
child 48602 342ca8f3197b
permissions -rw-r--r--
some more Isar elements;
wenzelm@7050
     1
\usepackage{ifthen}
wenzelm@7050
     2
wenzelm@26745
     3
\newcommand{\indexdef}[3]%
wenzelm@26745
     4
{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
wenzelm@26745
     5
\newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
wenzelm@7138
     6
wenzelm@28214
     7
\newcommand{\isatt}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\tt #1}}
wenzelm@28214
     8
wenzelm@26745
     9
\newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    10
\newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
wenzelm@26745
    11
\newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
wenzelm@7170
    12
wenzelm@26755
    13
\newcommand{\isasymAND}{\isakeyword{and}}
wenzelm@26755
    14
\newcommand{\isasymIS}{\isakeyword{is}}
wenzelm@26755
    15
\newcommand{\isasymWHERE}{\isakeyword{where}}
wenzelm@26769
    16
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
wenzelm@26769
    17
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
wenzelm@26783
    18
\newcommand{\isasymIN}{\isakeyword{in}}
wenzelm@26783
    19
\newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
wenzelm@29727
    20
\newcommand{\isasymFIXES}{\isakeyword{fixes}}
wenzelm@29727
    21
\newcommand{\isasymASSUMES}{\isakeyword{assumes}}
wenzelm@29727
    22
\newcommand{\isasymSHOWS}{\isakeyword{shows}}
wenzelm@29727
    23
\newcommand{\isasymOBTAINS}{\isakeyword{obtains}}
wenzelm@29727
    24
wenzelm@29727
    25
\newcommand{\isasymASSM}{\isacommand{assm}}