| author | wenzelm | 
| Fri, 17 Jun 2005 18:33:28 +0200 | |
| changeset 16443 | 82a116532e3e | 
| parent 16307 | cb0f9e96d456 | 
| child 16585 | 02cf78f0afce | 
| permissions | -rw-r--r-- | 
| 8751 | 1 | %% | 
| 9845 | 2 | %% Author: Markus Wenzel, TU Muenchen | 
| 8751 | 3 | %% | 
| 4 | %% macros for Isabelle generated LaTeX output | |
| 5 | %% | |
| 16307 | 6 | %% | 
| 8751 | 7 | |
| 9924 | 8 | %%% Simple document preparation (based on theory token language and symbols) | 
| 8751 | 9 | |
| 10 | % isabelle environments | |
| 11 | ||
| 9924 | 12 | \newcommand{\isabellecontext}{UNKNOWN}
 | 
| 13 | ||
| 9673 | 14 | \newcommand{\isastyle}{\small\tt\slshape}
 | 
| 15 | \newcommand{\isastyleminor}{\small\tt\slshape}
 | |
| 10226 | 16 | \newcommand{\isastylescript}{\footnotesize\tt\slshape}
 | 
| 9673 | 17 | \newcommand{\isastyletext}{\normalsize\rm}
 | 
| 18 | \newcommand{\isastyletxt}{\rm}
 | |
| 19 | \newcommand{\isastylecmt}{\rm}
 | |
| 8751 | 20 | |
| 10226 | 21 | %symbol markup -- \emph achieves decent spacing via italic corrections | 
| 22 | \newcommand{\isamath}[1]{\emph{$#1$}}
 | |
| 23 | \newcommand{\isatext}[1]{\emph{#1}}
 | |
| 24 | \newcommand{\isascriptstyle}{\def\isamath##1{##1}\def\isatext##1{\mbox{\isastylescript##1}}}
 | |
| 10267 | 25 | \newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
 | 
| 26 | \newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
 | |
| 14245 | 27 | \newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
 | 
| 28 | \newcommand{\isactrlisup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
 | |
| 14732 | 29 | \newcommand{\isactrlbsub}{\emph\bgroup\begin{math}{}\sb\bgroup\mbox\bgroup\isastylescript}
 | 
| 30 | \newcommand{\isactrlesub}{\egroup\egroup\end{math}\egroup}
 | |
| 31 | \newcommand{\isactrlbsup}{\emph\bgroup\begin{math}{}\sp\bgroup\mbox\bgroup\isastylescript}
 | |
| 32 | \newcommand{\isactrlesup}{\egroup\egroup\end{math}\egroup}
 | |
| 11610 | 33 | \newcommand{\isactrlbold}[1]{{\bfseries\upshape\boldmath#1}}
 | 
| 10226 | 34 | |
| 14342 | 35 | |
| 8751 | 36 | \newdimen\isa@parindent\newdimen\isa@parskip | 
| 9673 | 37 | |
| 9717 | 38 | \newenvironment{isabellebody}{%
 | 
| 11866 | 39 | \isamarkuptrue\par% | 
| 9717 | 40 | \isa@parindent\parindent\parindent0pt% | 
| 8751 | 41 | \isa@parskip\parskip\parskip0pt% | 
| 10471 | 42 | \isastyle}{\par}
 | 
| 9717 | 43 | |
| 44 | \newenvironment{isabelle}
 | |
| 10424 | 45 | {\begin{trivlist}\begin{isabellebody}\item\relax}
 | 
| 46 | {\end{isabellebody}\end{trivlist}}
 | |
| 8751 | 47 | |
| 9673 | 48 | \newcommand{\isa}[1]{\emph{\isastyleminor #1}}
 | 
| 8771 | 49 | |
| 10950 | 50 | \newcommand{\isaindent}[1]{\hphantom{#1}}
 | 
| 13963 | 51 | \newcommand{\isanewline}{\mbox{}\par\mbox{}}
 | 
| 14353 
79f9fbef9106
Added lemmas to Ring_and_Field with slightly modified simplification rules
 paulson parents: 
14342diff
changeset | 52 | \newcommand{\isasep}{} % override with e.g. \renewcommand{\isasep}{\vspace{1ex}}
 | 
| 9673 | 53 | \newcommand{\isadigit}[1]{#1}
 | 
| 8751 | 54 | |
| 9673 | 55 | \chardef\isacharbang=`\! | 
| 56 | \chardef\isachardoublequote=`\" | |
| 57 | \chardef\isacharhash=`\# | |
| 58 | \chardef\isachardollar=`\$ | |
| 59 | \chardef\isacharpercent=`\% | |
| 60 | \chardef\isacharampersand=`\& | |
| 61 | \chardef\isacharprime=`\' | |
| 62 | \chardef\isacharparenleft=`\( | |
| 63 | \chardef\isacharparenright=`\) | |
| 64 | \chardef\isacharasterisk=`\* | |
| 65 | \chardef\isacharplus=`\+ | |
| 66 | \chardef\isacharcomma=`\, | |
| 67 | \chardef\isacharminus=`\- | |
| 68 | \chardef\isachardot=`\. | |
| 69 | \chardef\isacharslash=`\/ | |
| 70 | \chardef\isacharcolon=`\: | |
| 71 | \chardef\isacharsemicolon=`\; | |
| 72 | \chardef\isacharless=`\< | |
| 73 | \chardef\isacharequal=`\= | |
| 74 | \chardef\isachargreater=`\> | |
| 75 | \chardef\isacharquery=`\? | |
| 76 | \chardef\isacharat=`\@ | |
| 77 | \chardef\isacharbrackleft=`\[ | |
| 78 | \chardef\isacharbackslash=`\\ | |
| 79 | \chardef\isacharbrackright=`\] | |
| 80 | \chardef\isacharcircum=`\^ | |
| 81 | \chardef\isacharunderscore=`\_ | |
| 82 | \chardef\isacharbackquote=`\` | |
| 83 | \chardef\isacharbraceleft=`\{
 | |
| 84 | \chardef\isacharbar=`\| | |
| 85 | \chardef\isacharbraceright=`\} | |
| 86 | \chardef\isachartilde=`\~ | |
| 8751 | 87 | |
| 88 | ||
| 89 | % keyword and section markup | |
| 90 | ||
| 9717 | 91 | \newcommand{\isakeywordcharunderscore}{\_}
 | 
| 9673 | 92 | \newcommand{\isakeyword}[1]
 | 
| 9717 | 93 | {\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isakeywordcharunderscore}%
 | 
| 9673 | 94 | \def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
 | 
| 95 | \newcommand{\isacommand}[1]{\isakeyword{#1}}
 | |
| 8751 | 96 | |
| 97 | \newcommand{\isamarkupheader}[1]{\section{#1}}
 | |
| 98 | \newcommand{\isamarkupchapter}[1]{\chapter{#1}}
 | |
| 99 | \newcommand{\isamarkupsection}[1]{\section{#1}}
 | |
| 100 | \newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
 | |
| 101 | \newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
 | |
| 102 | \newcommand{\isamarkupsect}[1]{\section{#1}}
 | |
| 103 | \newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
 | |
| 104 | \newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
 | |
| 105 | ||
| 11866 | 106 | \newif\ifisamarkup | 
| 107 | \newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
 | |
| 10589 | 108 | \newcommand{\isaendpar}{\par\medskip}
 | 
| 109 | \newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\isabeginpar}{\isaendpar}
 | |
| 9673 | 110 | \newenvironment{isamarkuptext}{\isastyletext\begin{isapar}}{\end{isapar}}
 | 
| 111 | \newenvironment{isamarkuptxt}{\isastyletxt\begin{isapar}}{\end{isapar}}
 | |
| 112 | \newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
 | |
| 113 | ||
| 114 | ||
| 10037 | 115 | % alternative styles | 
| 9673 | 116 | |
| 117 | \newcommand{\isabellestyle}{}
 | |
| 118 | \def\isabellestyle#1{\csname isabellestyle#1\endcsname}
 | |
| 119 | ||
| 10037 | 120 | \newcommand{\isabellestylett}{%
 | 
| 121 | \renewcommand{\isastyle}{\small\tt}%
 | |
| 10211 | 122 | \renewcommand{\isastyleminor}{\small\tt}%
 | 
| 10226 | 123 | \renewcommand{\isastylescript}{\footnotesize\tt}%
 | 
| 10037 | 124 | } | 
| 9673 | 125 | \newcommand{\isabellestyleit}{%
 | 
| 126 | \renewcommand{\isastyle}{\small\it}%
 | |
| 127 | \renewcommand{\isastyleminor}{\it}%
 | |
| 10226 | 128 | \renewcommand{\isastylescript}{\footnotesize\it}%
 | 
| 9812 | 129 | \renewcommand{\isakeywordcharunderscore}{\mbox{-}}%
 | 
| 10226 | 130 | \renewcommand{\isacharbang}{\isamath{!}}%
 | 
| 9673 | 131 | \renewcommand{\isachardoublequote}{}%
 | 
| 10226 | 132 | \renewcommand{\isacharhash}{\isamath{\#}}%
 | 
| 133 | \renewcommand{\isachardollar}{\isamath{\$}}%
 | |
| 134 | \renewcommand{\isacharpercent}{\isamath{\%}}%
 | |
| 135 | \renewcommand{\isacharampersand}{\isamath{\&}}%
 | |
| 136 | \renewcommand{\isacharprime}{\isamath{\mskip2mu{'}\mskip-2mu}}%
 | |
| 137 | \renewcommand{\isacharparenleft}{\isamath{(}}%
 | |
| 138 | \renewcommand{\isacharparenright}{\isamath{)}}%
 | |
| 139 | \renewcommand{\isacharasterisk}{\isamath{*}}%
 | |
| 140 | \renewcommand{\isacharplus}{\isamath{+}}%
 | |
| 141 | \renewcommand{\isacharcomma}{\isamath{\mathord,}}%
 | |
| 142 | \renewcommand{\isacharminus}{\isamath{-}}%
 | |
| 143 | \renewcommand{\isachardot}{\isamath{\mathord.}}%
 | |
| 144 | \renewcommand{\isacharslash}{\isamath{/}}%
 | |
| 145 | \renewcommand{\isacharcolon}{\isamath{\mathord:}}%
 | |
| 146 | \renewcommand{\isacharsemicolon}{\isamath{\mathord;}}%
 | |
| 147 | \renewcommand{\isacharless}{\isamath{<}}%
 | |
| 148 | \renewcommand{\isacharequal}{\isamath{=}}%
 | |
| 149 | \renewcommand{\isachargreater}{\isamath{>}}%
 | |
| 150 | \renewcommand{\isacharat}{\isamath{@}}%
 | |
| 151 | \renewcommand{\isacharbrackleft}{\isamath{[}}%
 | |
| 152 | \renewcommand{\isacharbrackright}{\isamath{]}}%
 | |
| 9812 | 153 | \renewcommand{\isacharunderscore}{\mbox{-}}%
 | 
| 10226 | 154 | \renewcommand{\isacharbraceleft}{\isamath{\{}}%
 | 
| 155 | \renewcommand{\isacharbar}{\isamath{\mid}}%
 | |
| 156 | \renewcommand{\isacharbraceright}{\isamath{\}}}%
 | |
| 10267 | 157 | \renewcommand{\isachartilde}{\isamath{{}\sp{\sim}}}%
 | 
| 9673 | 158 | } | 
| 159 | ||
| 9992 | 160 | \newcommand{\isabellestylesl}{%
 | 
| 161 | \isabellestyleit% | |
| 162 | \renewcommand{\isastyle}{\small\sl}%
 | |
| 163 | \renewcommand{\isastyleminor}{\sl}%
 | |
| 10226 | 164 | \renewcommand{\isastylescript}{\footnotesize\sl}%
 | 
| 9992 | 165 | } |