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