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