src/Doc/isar.sty
author haftmann
Sat Nov 14 08:45:52 2015 +0100 (2015-11-14)
changeset 61671 20d4cd2ceab2
parent 60459 2761a2249c83
permissions -rw-r--r--
prefer "rewrites" and "defines" to note rewrite morphisms
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@59346
     7
\newcommand{\isadigitreset}{\def\isadigit##1{##1}}
wenzelm@59346
     8
wenzelm@59343
     9
\newcommand{\isasystem}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\isadigitreset\tt #1}}
wenzelm@59343
    10
\newcommand{\isatool}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\isadigitreset\tt isabelle #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@60459
    16
\newcommand{\isasymIF}{\isakeyword{if}}
wenzelm@55143
    17
\newcommand{\isasymFOR}{\isakeyword{for}}
wenzelm@26755
    18
\newcommand{\isasymAND}{\isakeyword{and}}
wenzelm@26755
    19
\newcommand{\isasymIS}{\isakeyword{is}}
wenzelm@26755
    20
\newcommand{\isasymWHERE}{\isakeyword{where}}
wenzelm@26769
    21
\newcommand{\isasymBEGIN}{\isakeyword{begin}}
wenzelm@26769
    22
\newcommand{\isasymIMPORTS}{\isakeyword{imports}}
wenzelm@26783
    23
\newcommand{\isasymIN}{\isakeyword{in}}
wenzelm@29727
    24
\newcommand{\isasymFIXES}{\isakeyword{fixes}}
wenzelm@29727
    25
\newcommand{\isasymASSUMES}{\isakeyword{assumes}}
wenzelm@29727
    26
\newcommand{\isasymSHOWS}{\isakeyword{shows}}
wenzelm@29727
    27
\newcommand{\isasymOBTAINS}{\isakeyword{obtains}}
wenzelm@29727
    28
wenzelm@29727
    29
\newcommand{\isasymASSM}{\isacommand{assm}}