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