doc-src/isar.sty
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 12 Aug 2010 15:03:34 +0200
branchisac-from-Isabelle2009-2
changeset 37913 20e3616b2d9c
parent 30053 cda1fb36a082
child 49617 342ca8f3197b
permissions -rw-r--r--
prepare reactivation of isac-update-Isa09-2
     1 \usepackage{ifthen}
     2 
     3 \newcommand{\indexdef}[3]%
     4 {\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
     5 \newcommand{\indexref}[3]{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)}}{\index{#3 (#1\ #2)}}}
     6 
     7 \newcommand{\isatt}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\tt #1}}
     8 
     9 \newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
    10 \newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
    11 \newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
    12 
    13 \newcommand{\isasymAND}{\isakeyword{and}}
    14 \newcommand{\isasymIS}{\isakeyword{is}}
    15 \newcommand{\isasymWHERE}{\isakeyword{where}}
    16 \newcommand{\isasymBEGIN}{\isakeyword{begin}}
    17 \newcommand{\isasymIMPORTS}{\isakeyword{imports}}
    18 \newcommand{\isasymIN}{\isakeyword{in}}
    19 \newcommand{\isasymSTRUCTURE}{\isakeyword{structure}}
    20 \newcommand{\isasymFIXES}{\isakeyword{fixes}}
    21 \newcommand{\isasymASSUMES}{\isakeyword{assumes}}
    22 \newcommand{\isasymSHOWS}{\isakeyword{shows}}
    23 \newcommand{\isasymOBTAINS}{\isakeyword{obtains}}
    24 
    25 \newcommand{\isasymASSM}{\isacommand{assm}}