doc-src/isabelle.sty
author haftmann
Tue, 13 Jul 2010 11:38:04 +0200
changeset 37788 261c61fabc98
parent 27349 80273a002e37
child 39539 90a74f43174d
permissions -rw-r--r--
corrected title
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26913
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     1
%%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     2
%% 
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     3
%%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     4
%% macros for Isabelle generated LaTeX output
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     5
%%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     6
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     7
%%% Simple document preparation (based on theory token language and symbols)
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     8
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
     9
% isabelle environments
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    10
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    11
\newcommand{\isabellecontext}{UNKNOWN}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    12
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    13
\newcommand{\isastyle}{\UNDEF}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    14
\newcommand{\isastyleminor}{\UNDEF}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    15
\newcommand{\isastylescript}{\UNDEF}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    16
\newcommand{\isastyletext}{\normalsize\rm}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    17
\newcommand{\isastyletxt}{\rm}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    18
\newcommand{\isastylecmt}{\rm}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    19
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    20
%symbol markup -- \emph achieves decent spacing via italic corrections
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    21
\newcommand{\isamath}[1]{\emph{$#1$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    22
\newcommand{\isatext}[1]{\emph{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    23
\DeclareRobustCommand{\isascriptstyle}{\def\isamath##1{##1}\def\isatext##1{\mbox{\isastylescript##1}}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    24
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    25
\newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    26
\newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    27
\newcommand{\isactrlisup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    28
\DeclareRobustCommand{\isactrlbsub}{\emph\bgroup\math{}\sb\bgroup\mbox\bgroup\isastylescript}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    29
\DeclareRobustCommand{\isactrlesub}{\egroup\egroup\endmath\egroup}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    30
\DeclareRobustCommand{\isactrlbsup}{\emph\bgroup\math{}\sp\bgroup\mbox\bgroup\isastylescript}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    31
\DeclareRobustCommand{\isactrlesup}{\egroup\egroup\endmath\egroup}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    32
\newcommand{\isactrlbold}[1]{{\bfseries\upshape\boldmath#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    33
\newcommand{\isactrlloc}[1]{{\bfseries\upshape\boldmath#1}}
27349
80273a002e37 updated generated file;
wenzelm
parents: 26913
diff changeset
    34
26913
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    35
\newenvironment{isaantiq}{{\isacharat\isacharbraceleft}}{{\isacharbraceright}}
27349
80273a002e37 updated generated file;
wenzelm
parents: 26913
diff changeset
    36
\newcommand{\isaantiqopen}{\isakeyword{\isacharbraceleft}}
80273a002e37 updated generated file;
wenzelm
parents: 26913
diff changeset
    37
\newcommand{\isaantiqclose}{\isakeyword{\isacharbraceright}}
26913
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    38
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    39
\newdimen\isa@parindent\newdimen\isa@parskip
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    40
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    41
\newenvironment{isabellebody}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    42
\isamarkuptrue\par%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    43
\isa@parindent\parindent\parindent0pt%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    44
\isa@parskip\parskip\parskip0pt%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    45
\isastyle}{\par}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    46
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    47
\newenvironment{isabelle}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    48
{\begin{trivlist}\begin{isabellebody}\item\relax}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    49
{\end{isabellebody}\end{trivlist}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    50
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    51
\newcommand{\isa}[1]{\emph{\isastyleminor #1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    52
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    53
\newcommand{\isaindent}[1]{\hphantom{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    54
\newcommand{\isanewline}{\mbox{}\par\mbox{}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    55
\newcommand{\isasep}{}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    56
\newcommand{\isadigit}[1]{#1}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    57
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    58
\newcommand{\isachardefaults}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    59
\chardef\isacharbang=`\!%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    60
\chardef\isachardoublequote=`\"%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    61
\chardef\isachardoublequoteopen=`\"%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    62
\chardef\isachardoublequoteclose=`\"%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    63
\chardef\isacharhash=`\#%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    64
\chardef\isachardollar=`\$%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    65
\chardef\isacharpercent=`\%%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    66
\chardef\isacharampersand=`\&%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    67
\chardef\isacharprime=`\'%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    68
\chardef\isacharparenleft=`\(%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    69
\chardef\isacharparenright=`\)%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    70
\chardef\isacharasterisk=`\*%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    71
\chardef\isacharplus=`\+%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    72
\chardef\isacharcomma=`\,%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    73
\chardef\isacharminus=`\-%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    74
\chardef\isachardot=`\.%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    75
\chardef\isacharslash=`\/%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    76
\chardef\isacharcolon=`\:%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    77
\chardef\isacharsemicolon=`\;%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    78
\chardef\isacharless=`\<%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    79
\chardef\isacharequal=`\=%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    80
\chardef\isachargreater=`\>%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    81
\chardef\isacharquery=`\?%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    82
\chardef\isacharat=`\@%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    83
\chardef\isacharbrackleft=`\[%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    84
\chardef\isacharbackslash=`\\%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    85
\chardef\isacharbrackright=`\]%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    86
\chardef\isacharcircum=`\^%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    87
\chardef\isacharunderscore=`\_%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    88
\def\isacharunderscorekeyword{\_}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    89
\chardef\isacharbackquote=`\`%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    90
\chardef\isacharbackquoteopen=`\`%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    91
\chardef\isacharbackquoteclose=`\`%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    92
\chardef\isacharbraceleft=`\{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    93
\chardef\isacharbar=`\|%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    94
\chardef\isacharbraceright=`\}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    95
\chardef\isachartilde=`\~%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    96
\def\isacharverbatimopen{\isacharbraceleft\isacharasterisk}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    97
\def\isacharverbatimclose{\isacharasterisk\isacharbraceright}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    98
}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
    99
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   100
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   101
% keyword and section markup
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   102
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   103
\newcommand{\isakeyword}[1]
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   104
{\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   105
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   106
\newcommand{\isacommand}[1]{\isakeyword{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   107
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   108
\newcommand{\isamarkupheader}[1]{\section{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   109
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   110
\newcommand{\isamarkupsection}[1]{\section{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   111
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   112
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   113
\newcommand{\isamarkupsect}[1]{\section{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   114
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   115
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   116
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   117
\newif\ifisamarkup
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   118
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   119
\newcommand{\isaendpar}{\par\medskip}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   120
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\isabeginpar}{\isaendpar}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   121
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   122
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   123
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   124
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   125
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   126
% styles
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   127
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   128
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   129
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   130
\newcommand{\isabellestyledefault}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   131
\renewcommand{\isastyle}{\small\tt\slshape}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   132
\renewcommand{\isastyleminor}{\small\tt\slshape}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   133
\renewcommand{\isastylescript}{\footnotesize\tt\slshape}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   134
\isachardefaults%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   135
}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   136
\isabellestyledefault
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   137
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   138
\newcommand{\isabellestylett}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   139
\renewcommand{\isastyle}{\small\tt}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   140
\renewcommand{\isastyleminor}{\small\tt}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   141
\renewcommand{\isastylescript}{\footnotesize\tt}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   142
\isachardefaults%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   143
}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   144
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   145
\newcommand{\isabellestyleit}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   146
\renewcommand{\isastyle}{\small\it}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   147
\renewcommand{\isastyleminor}{\it}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   148
\renewcommand{\isastylescript}{\footnotesize\it}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   149
\renewcommand{\isacharunderscorekeyword}{\mbox{-}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   150
\renewcommand{\isacharbang}{\isamath{!}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   151
\renewcommand{\isachardoublequote}{}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   152
\renewcommand{\isachardoublequoteopen}{}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   153
\renewcommand{\isachardoublequoteclose}{}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   154
\renewcommand{\isacharhash}{\isamath{\#}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   155
\renewcommand{\isachardollar}{\isamath{\$}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   156
\renewcommand{\isacharpercent}{\isamath{\%}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   157
\renewcommand{\isacharampersand}{\isamath{\&}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   158
\renewcommand{\isacharprime}{\isamath{\mskip2mu{'}\mskip-2mu}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   159
\renewcommand{\isacharparenleft}{\isamath{(}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   160
\renewcommand{\isacharparenright}{\isamath{)}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   161
\renewcommand{\isacharasterisk}{\isamath{*}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   162
\renewcommand{\isacharplus}{\isamath{+}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   163
\renewcommand{\isacharcomma}{\isamath{\mathord,}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   164
\renewcommand{\isacharminus}{\isamath{-}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   165
\renewcommand{\isachardot}{\isamath{\mathord.}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   166
\renewcommand{\isacharslash}{\isamath{/}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   167
\renewcommand{\isacharcolon}{\isamath{\mathord:}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   168
\renewcommand{\isacharsemicolon}{\isamath{\mathord;}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   169
\renewcommand{\isacharless}{\isamath{<}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   170
\renewcommand{\isacharequal}{\isamath{=}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   171
\renewcommand{\isachargreater}{\isamath{>}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   172
\renewcommand{\isacharat}{\isamath{@}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   173
\renewcommand{\isacharbrackleft}{\isamath{[}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   174
\renewcommand{\isacharbackslash}{\isamath{\backslash}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   175
\renewcommand{\isacharbrackright}{\isamath{]}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   176
\renewcommand{\isacharunderscore}{\mbox{-}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   177
\renewcommand{\isacharbraceleft}{\isamath{\{}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   178
\renewcommand{\isacharbar}{\isamath{\mid}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   179
\renewcommand{\isacharbraceright}{\isamath{\}}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   180
\renewcommand{\isachartilde}{\isamath{{}\sp{\sim}}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   181
\renewcommand{\isacharbackquoteopen}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   182
\renewcommand{\isacharbackquoteclose}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   183
\renewcommand{\isacharverbatimopen}{\isamath{\langle\!\langle}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   184
\renewcommand{\isacharverbatimclose}{\isamath{\rangle\!\rangle}}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   185
}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   186
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   187
\newcommand{\isabellestylesl}{%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   188
\isabellestyleit%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   189
\renewcommand{\isastyle}{\small\sl}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   190
\renewcommand{\isastyleminor}{\sl}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   191
\renewcommand{\isastylescript}{\footnotesize\sl}%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   192
}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   193
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   194
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   195
% tagged regions
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   196
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   197
%plain TeX version of comment package -- much faster!
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   198
\let\isafmtname\fmtname\def\fmtname{plain}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   199
\usepackage{comment}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   200
\let\fmtname\isafmtname
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   201
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   202
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   203
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   204
\newcommand{\isakeeptag}[1]%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   205
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   206
\newcommand{\isadroptag}[1]%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   207
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   208
\newcommand{\isafoldtag}[1]%
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   209
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   210
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   211
\isakeeptag{theory}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   212
\isakeeptag{proof}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   213
\isakeeptag{ML}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   214
\isakeeptag{visible}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   215
\isadroptag{invisible}
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   216
67040326ab7a use Isabelle sty files from Doc/;
wenzelm
parents:
diff changeset
   217
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}