author | wenzelm |
Thu, 23 Nov 2006 00:52:11 +0100 | |
changeset 21480 | e2cc70e70b2f |
parent 21185 | 50eca91d8699 |
child 22647 | d920afb63323 |
permissions | -rw-r--r-- |
7709 | 1 |
%% |
17531 | 2 |
%% $Id$ |
7709 | 3 |
%% |
4 |
%% macros for Isabelle generated LaTeX output |
|
5 |
%% |
|
6 |
||
9913 | 7 |
%%% Simple document preparation (based on theory token language and symbols) |
7709 | 8 |
|
8714 | 9 |
% isabelle environments |
7788 | 10 |
|
9913 | 11 |
\newcommand{\isabellecontext}{UNKNOWN} |
12 |
||
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
13 |
\newcommand{\isastyle}{\UNDEF} |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
14 |
\newcommand{\isastyleminor}{\UNDEF} |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
15 |
\newcommand{\isastylescript}{\UNDEF} |
9657 | 16 |
\newcommand{\isastyletext}{\normalsize\rm} |
17 |
\newcommand{\isastyletxt}{\rm} |
|
18 |
\newcommand{\isastylecmt}{\rm} |
|
8713 | 19 |
|
10220 | 20 |
%symbol markup -- \emph achieves decent spacing via italic corrections |
21 |
\newcommand{\isamath}[1]{\emph{$#1$}} |
|
22 |
\newcommand{\isatext}[1]{\emph{#1}} |
|
23 |
\newcommand{\isascriptstyle}{\def\isamath##1{##1}\def\isatext##1{\mbox{\isastylescript##1}}} |
|
17180
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
24 |
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}} |
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
25 |
\newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}} |
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
26 |
\newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}} |
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
27 |
\newcommand{\isactrlisup}[1]{\emph{\isascriptstyle${}\sp{#1}$}} |
14708 | 28 |
\newcommand{\isactrlbsub}{\emph\bgroup\begin{math}{}\sb\bgroup\mbox\bgroup\isastylescript} |
29 |
\newcommand{\isactrlesub}{\egroup\egroup\end{math}\egroup} |
|
30 |
\newcommand{\isactrlbsup}{\emph\bgroup\begin{math}{}\sp\bgroup\mbox\bgroup\isastylescript} |
|
31 |
\newcommand{\isactrlesup}{\egroup\egroup\end{math}\egroup} |
|
11573 | 32 |
\newcommand{\isactrlbold}[1]{{\bfseries\upshape\boldmath#1}} |
17173 | 33 |
\newcommand{\isactrlloc}[1]{{\bfseries\upshape\boldmath#1}} |
10220 | 34 |
|
14332
fd3535af90ab
spanning super and sub scripts \<^bsub> .. \<^esub> and \<^bsup> .. \<^esup>
kleing
parents:
14234
diff
changeset
|
35 |
|
8713 | 36 |
\newdimen\isa@parindent\newdimen\isa@parskip |
9657 | 37 |
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
38 |
\newenvironment{isabellebody}{% |
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
39 |
\isamarkuptrue\par% |
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
40 |
\isa@parindent\parindent\parindent0pt% |
8713 | 41 |
\isa@parskip\parskip\parskip0pt% |
10470 | 42 |
\isastyle}{\par} |
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
43 |
|
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
44 |
\newenvironment{isabelle} |
10422 | 45 |
{\begin{trivlist}\begin{isabellebody}\item\relax} |
46 |
{\end{isabellebody}\end{trivlist}} |
|
8713 | 47 |
|
9669 | 48 |
\newcommand{\isa}[1]{\emph{\isastyleminor #1}} |
8714 | 49 |
|
10949 | 50 |
\newcommand{\isaindent}[1]{\hphantom{#1}} |
13933 | 51 |
\newcommand{\isanewline}{\mbox{}\par\mbox{}} |
17158
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents:
17052
diff
changeset
|
52 |
\newcommand{\isasep}{} |
9669 | 53 |
\newcommand{\isadigit}[1]{#1} |
7752 | 54 |
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
55 |
\newcommand{\isachardefaults}{% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
56 |
\chardef\isacharbang=`\!% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
57 |
\chardef\isachardoublequote=`\"% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
58 |
\chardef\isachardoublequoteopen=`\"% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
59 |
\chardef\isachardoublequoteclose=`\"% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
60 |
\chardef\isacharhash=`\#% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
61 |
\chardef\isachardollar=`\$% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
62 |
\chardef\isacharpercent=`\%% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
63 |
\chardef\isacharampersand=`\&% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
64 |
\chardef\isacharprime=`\'% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
65 |
\chardef\isacharparenleft=`\(% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
66 |
\chardef\isacharparenright=`\)% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
67 |
\chardef\isacharasterisk=`\*% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
68 |
\chardef\isacharplus=`\+% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
69 |
\chardef\isacharcomma=`\,% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
70 |
\chardef\isacharminus=`\-% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
71 |
\chardef\isachardot=`\.% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
72 |
\chardef\isacharslash=`\/% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
73 |
\chardef\isacharcolon=`\:% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
74 |
\chardef\isacharsemicolon=`\;% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
75 |
\chardef\isacharless=`\<% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
76 |
\chardef\isacharequal=`\=% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
77 |
\chardef\isachargreater=`\>% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
78 |
\chardef\isacharquery=`\?% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
79 |
\chardef\isacharat=`\@% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
80 |
\chardef\isacharbrackleft=`\[% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
81 |
\chardef\isacharbackslash=`\\% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
82 |
\chardef\isacharbrackright=`\]% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
83 |
\chardef\isacharcircum=`\^% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
84 |
\chardef\isacharunderscore=`\_% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
85 |
\def\isacharunderscorekeyword{\_}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
86 |
\chardef\isacharbackquote=`\`% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
87 |
\chardef\isacharbackquoteopen=`\`% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
88 |
\chardef\isacharbackquoteclose=`\`% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
89 |
\chardef\isacharbraceleft=`\{% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
90 |
\chardef\isacharbar=`\|% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
91 |
\chardef\isacharbraceright=`\}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
92 |
\chardef\isachartilde=`\~% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
93 |
\def\isacharverbatimopen{\isacharbraceleft\isacharasterisk}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
94 |
\def\isacharverbatimclose{\isacharasterisk\isacharbraceright}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
95 |
} |
7788 | 96 |
|
7797 | 97 |
|
98 |
% keyword and section markup |
|
7788 | 99 |
|
9669 | 100 |
\newcommand{\isakeyword}[1] |
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
101 |
{\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}% |
9669 | 102 |
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}} |
103 |
\newcommand{\isacommand}[1]{\isakeyword{#1}} |
|
7758 | 104 |
|
8501 | 105 |
\newcommand{\isamarkupheader}[1]{\section{#1}} |
7752 | 106 |
\newcommand{\isamarkupchapter}[1]{\chapter{#1}} |
107 |
\newcommand{\isamarkupsection}[1]{\section{#1}} |
|
108 |
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}} |
|
109 |
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}} |
|
110 |
\newcommand{\isamarkupsect}[1]{\section{#1}} |
|
111 |
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}} |
|
112 |
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}} |
|
8662
f9679ddbc492
isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm
parents:
8512
diff
changeset
|
113 |
|
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
114 |
\newif\ifisamarkup |
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
115 |
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi} |
10586 | 116 |
\newcommand{\isaendpar}{\par\medskip} |
117 |
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\isabeginpar}{\isaendpar} |
|
17215
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents:
17180
diff
changeset
|
118 |
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}} |
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents:
17180
diff
changeset
|
119 |
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}} |
9657 | 120 |
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}} |
121 |
||
122 |
||
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
123 |
% styles |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
124 |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
125 |
\def\isabellestyle#1{\csname isabellestyle#1\endcsname} |
9657 | 126 |
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
127 |
\newcommand{\isabellestyledefault}{% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
128 |
\renewcommand{\isastyle}{\small\tt\slshape}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
129 |
\renewcommand{\isastyleminor}{\small\tt\slshape}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
130 |
\renewcommand{\isastylescript}{\footnotesize\tt\slshape}% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
131 |
\isachardefaults% |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
132 |
} |
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
133 |
\isabellestyledefault |
9657 | 134 |
|
10024 | 135 |
\newcommand{\isabellestylett}{% |
136 |
\renewcommand{\isastyle}{\small\tt}% |
|
10188 | 137 |
\renewcommand{\isastyleminor}{\small\tt}% |
10220 | 138 |
\renewcommand{\isastylescript}{\footnotesize\tt}% |
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
139 |
\isachardefaults% |
10024 | 140 |
} |
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
141 |
|
9669 | 142 |
\newcommand{\isabellestyleit}{% |
143 |
\renewcommand{\isastyle}{\small\it}% |
|
144 |
\renewcommand{\isastyleminor}{\it}% |
|
10220 | 145 |
\renewcommand{\isastylescript}{\footnotesize\it}% |
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
146 |
\renewcommand{\isacharunderscorekeyword}{\mbox{-}}% |
10220 | 147 |
\renewcommand{\isacharbang}{\isamath{!}}% |
9669 | 148 |
\renewcommand{\isachardoublequote}{}% |
17158
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents:
17052
diff
changeset
|
149 |
\renewcommand{\isachardoublequoteopen}{}% |
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents:
17052
diff
changeset
|
150 |
\renewcommand{\isachardoublequoteclose}{}% |
10220 | 151 |
\renewcommand{\isacharhash}{\isamath{\#}}% |
152 |
\renewcommand{\isachardollar}{\isamath{\$}}% |
|
153 |
\renewcommand{\isacharpercent}{\isamath{\%}}% |
|
154 |
\renewcommand{\isacharampersand}{\isamath{\&}}% |
|
155 |
\renewcommand{\isacharprime}{\isamath{\mskip2mu{'}\mskip-2mu}}% |
|
156 |
\renewcommand{\isacharparenleft}{\isamath{(}}% |
|
157 |
\renewcommand{\isacharparenright}{\isamath{)}}% |
|
158 |
\renewcommand{\isacharasterisk}{\isamath{*}}% |
|
159 |
\renewcommand{\isacharplus}{\isamath{+}}% |
|
160 |
\renewcommand{\isacharcomma}{\isamath{\mathord,}}% |
|
161 |
\renewcommand{\isacharminus}{\isamath{-}}% |
|
162 |
\renewcommand{\isachardot}{\isamath{\mathord.}}% |
|
163 |
\renewcommand{\isacharslash}{\isamath{/}}% |
|
164 |
\renewcommand{\isacharcolon}{\isamath{\mathord:}}% |
|
165 |
\renewcommand{\isacharsemicolon}{\isamath{\mathord;}}% |
|
166 |
\renewcommand{\isacharless}{\isamath{<}}% |
|
167 |
\renewcommand{\isacharequal}{\isamath{=}}% |
|
168 |
\renewcommand{\isachargreater}{\isamath{>}}% |
|
169 |
\renewcommand{\isacharat}{\isamath{@}}% |
|
170 |
\renewcommand{\isacharbrackleft}{\isamath{[}}% |
|
17052 | 171 |
\renewcommand{\isacharbackslash}{\isamath{\backslash}}% |
10220 | 172 |
\renewcommand{\isacharbrackright}{\isamath{]}}% |
9725 | 173 |
\renewcommand{\isacharunderscore}{\mbox{-}}% |
10220 | 174 |
\renewcommand{\isacharbraceleft}{\isamath{\{}}% |
175 |
\renewcommand{\isacharbar}{\isamath{\mid}}% |
|
176 |
\renewcommand{\isacharbraceright}{\isamath{\}}}% |
|
10260 | 177 |
\renewcommand{\isachartilde}{\isamath{{}\sp{\sim}}}% |
17158
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents:
17052
diff
changeset
|
178 |
\renewcommand{\isacharbackquoteopen}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}% |
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents:
17052
diff
changeset
|
179 |
\renewcommand{\isacharbackquoteclose}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}% |
17180
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
180 |
\renewcommand{\isacharverbatimopen}{\isamath{\langle\!\langle}}% |
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
181 |
\renewcommand{\isacharverbatimclose}{\isamath{\rangle\!\rangle}}% |
9657 | 182 |
} |
183 |
||
9975 | 184 |
\newcommand{\isabellestylesl}{% |
185 |
\isabellestyleit% |
|
186 |
\renewcommand{\isastyle}{\small\sl}% |
|
187 |
\renewcommand{\isastyleminor}{\sl}% |
|
10220 | 188 |
\renewcommand{\isastylescript}{\footnotesize\sl}% |
9975 | 189 |
} |
17052 | 190 |
|
191 |
||
192 |
% tagged regions |
|
193 |
||
194 |
%plain TeX version of comment package -- much faster! |
|
195 |
\let\isafmtname\fmtname\def\fmtname{plain} |
|
196 |
\usepackage{comment} |
|
197 |
\let\fmtname\isafmtname |
|
198 |
||
199 |
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}} |
|
200 |
||
201 |
\newcommand{\isakeeptag}[1]% |
|
202 |
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}} |
|
203 |
\newcommand{\isadroptag}[1]% |
|
204 |
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}} |
|
205 |
\newcommand{\isafoldtag}[1]% |
|
206 |
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}} |
|
207 |
||
208 |
\isakeeptag{theory} |
|
209 |
\isakeeptag{proof} |
|
210 |
\isakeeptag{ML} |
|
211 |
\isakeeptag{visible} |
|
212 |
\isadroptag{invisible} |
|
213 |
||
214 |
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{} |