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