# HG changeset patch # User wenzelm # Date 1124192538 -7200 # Node ID 30781cc78fc692a092c4552497f12abc5c001152 # Parent d17cfb0b9ba2b1a7c209af9c6d0b658c627a492b \isabellestyleit: proper \isacharbackslash; support for tagged regions: \isakeeptag, \isadroptag, \isafoldtag -- depends on plain TeX version of comment.sty; diff -r d17cfb0b9ba2 -r 30781cc78fc6 lib/texinputs/isabelle.sty --- a/lib/texinputs/isabelle.sty Tue Aug 16 13:42:17 2005 +0200 +++ b/lib/texinputs/isabelle.sty Tue Aug 16 13:42:18 2005 +0200 @@ -149,6 +149,7 @@ \renewcommand{\isachargreater}{\isamath{>}}% \renewcommand{\isacharat}{\isamath{@}}% \renewcommand{\isacharbrackleft}{\isamath{[}}% +\renewcommand{\isacharbackslash}{\isamath{\backslash}}% \renewcommand{\isacharbrackright}{\isamath{]}}% \renewcommand{\isacharunderscore}{\mbox{-}}% \renewcommand{\isacharbraceleft}{\isamath{\{}}% @@ -163,3 +164,28 @@ \renewcommand{\isastyleminor}{\sl}% \renewcommand{\isastylescript}{\footnotesize\sl}% } + + +% tagged regions + +%plain TeX version of comment package -- much faster! +\let\isafmtname\fmtname\def\fmtname{plain} +\usepackage{comment} +\let\fmtname\isafmtname + +\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}} + +\newcommand{\isakeeptag}[1]% +{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}} +\newcommand{\isadroptag}[1]% +{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}} +\newcommand{\isafoldtag}[1]% +{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}} + +\isakeeptag{theory} +\isakeeptag{proof} +\isakeeptag{ML} +\isakeeptag{visible} +\isadroptag{invisible} + +\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}