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