src/Doc/isar.sty
author blanchet
Mon Sep 15 10:49:07 2014 +0200 (2014-09-15)
changeset 58335 a5a3b576fcfb
parent 55143 04448228381d
child 58716 23a380cc45f4
permissions -rw-r--r--
generate 'code' attribute only if 'code' plugin is enabled
     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 \newcommand{\isatool}[1]{{\def\isacharminus{-}\def\isacharunderscore{\_}\tt isabelle #1}}
     9 
    10 \newcommand{\indexoutertoken}[1]{\indexdef{}{syntax}{#1}}
    11 \newcommand{\indexouternonterm}[1]{\indexdef{}{syntax}{#1}}
    12 \newcommand{\indexisarelem}[1]{\indexdef{}{element}{#1}}
    13 
    14 \newcommand{\isasymFOR}{\isakeyword{for}}
    15 \newcommand{\isasymAND}{\isakeyword{and}}
    16 \newcommand{\isasymIS}{\isakeyword{is}}
    17 \newcommand{\isasymWHERE}{\isakeyword{where}}
    18 \newcommand{\isasymBEGIN}{\isakeyword{begin}}
    19 \newcommand{\isasymIMPORTS}{\isakeyword{imports}}
    20 \newcommand{\isasymIN}{\isakeyword{in}}
    21 \newcommand{\isasymFIXES}{\isakeyword{fixes}}
    22 \newcommand{\isasymASSUMES}{\isakeyword{assumes}}
    23 \newcommand{\isasymSHOWS}{\isakeyword{shows}}
    24 \newcommand{\isasymOBTAINS}{\isakeyword{obtains}}
    25 
    26 \newcommand{\isasymASSM}{\isacommand{assm}}