| author | Lukas Stevens <mail@lukas-stevens.de> | 
| Thu, 19 Aug 2021 12:31:06 +0200 | |
| changeset 74157 | 8e2355ddce1b | 
| parent 73754 | cd7eb3cdab4c | 
| child 74839 | 3bf746911da1 | 
| 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}
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 17 | \newcommand{\isastyletext}{\normalsize\normalfont\rmfamily}
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 18 | \newcommand{\isastyletxt}{\normalfont\rmfamily}
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 19 | \newcommand{\isastylecmt}{\normalfont\rmfamily}
 | 
| 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 | |
| 73465 
1e5c1f8a35cd
clarified package name (actually both pxfonts and txfonts exist and have this font);
 wenzelm parents: 
73459diff
changeset | 42 | %blackboard-bold (requires font txmia from pxfonts) | 
| 73459 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 43 | \DeclareSymbolFont{bbbfont}{U}{txmia}{m}{it}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 44 | \SetSymbolFont{bbbfont}{bold}{U}{txmia}{bx}{it}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 45 | \DeclareMathSymbol{\bbbA}{\mathord}{bbbfont}{129}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 46 | \DeclareMathSymbol{\bbbB}{\mathord}{bbbfont}{130}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 47 | \DeclareMathSymbol{\bbbC}{\mathord}{bbbfont}{131}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 48 | \DeclareMathSymbol{\bbbD}{\mathord}{bbbfont}{132}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 49 | \DeclareMathSymbol{\bbbE}{\mathord}{bbbfont}{133}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 50 | \DeclareMathSymbol{\bbbF}{\mathord}{bbbfont}{134}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 51 | \DeclareMathSymbol{\bbbG}{\mathord}{bbbfont}{135}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 52 | \DeclareMathSymbol{\bbbH}{\mathord}{bbbfont}{136}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 53 | \DeclareMathSymbol{\bbbI}{\mathord}{bbbfont}{137}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 54 | \DeclareMathSymbol{\bbbJ}{\mathord}{bbbfont}{138}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 55 | \DeclareMathSymbol{\bbbK}{\mathord}{bbbfont}{139}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 56 | \DeclareMathSymbol{\bbbL}{\mathord}{bbbfont}{140}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 57 | \DeclareMathSymbol{\bbbM}{\mathord}{bbbfont}{141}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 58 | \DeclareMathSymbol{\bbbN}{\mathord}{bbbfont}{142}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 59 | \DeclareMathSymbol{\bbbO}{\mathord}{bbbfont}{143}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 60 | \DeclareMathSymbol{\bbbP}{\mathord}{bbbfont}{144}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 61 | \DeclareMathSymbol{\bbbQ}{\mathord}{bbbfont}{145}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 62 | \DeclareMathSymbol{\bbbR}{\mathord}{bbbfont}{146}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 63 | \DeclareMathSymbol{\bbbS}{\mathord}{bbbfont}{147}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 64 | \DeclareMathSymbol{\bbbT}{\mathord}{bbbfont}{148}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 65 | \DeclareMathSymbol{\bbbU}{\mathord}{bbbfont}{149}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 66 | \DeclareMathSymbol{\bbbV}{\mathord}{bbbfont}{150}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 67 | \DeclareMathSymbol{\bbbW}{\mathord}{bbbfont}{151}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 68 | \DeclareMathSymbol{\bbbX}{\mathord}{bbbfont}{152}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 69 | \DeclareMathSymbol{\bbbY}{\mathord}{bbbfont}{153}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 70 | \DeclareMathSymbol{\bbbZ}{\mathord}{bbbfont}{154}
 | 
| 
1f1f4462a6ae
high-quality blackboard-bold fonts from "txmia" (package "txfonts");
 wenzelm parents: 
73404diff
changeset | 71 | |
| 22647 | 72 | \newenvironment{isaantiq}{{\isacharat\isacharbraceleft}}{{\isacharbraceright}}
 | 
| 14332 
fd3535af90ab
spanning super and sub scripts \<^bsub> .. \<^esub> and \<^bsup> .. \<^esup>
 kleing parents: 
14234diff
changeset | 73 | |
| 8713 | 74 | \newdimen\isa@parindent\newdimen\isa@parskip | 
| 9657 | 75 | |
| 9702 
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
 wenzelm parents: 
9688diff
changeset | 76 | \newenvironment{isabellebody}{%
 | 
| 11863 
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
 wenzelm parents: 
11573diff
changeset | 77 | \isamarkuptrue\par% | 
| 9702 
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
 wenzelm parents: 
9688diff
changeset | 78 | \isa@parindent\parindent\parindent0pt% | 
| 8713 | 79 | \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 | 80 | \isaspacing\isastyle}{\par}
 | 
| 9702 
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
 wenzelm parents: 
9688diff
changeset | 81 | |
| 58716 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 82 | \newenvironment{isabellebodytt}{%
 | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 83 | \isamarkuptrue\par% | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 84 | \isa@parindent\parindent\parindent0pt% | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 85 | \isa@parskip\parskip\parskip0pt% | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 86 | \isaspacing\isastylett}{\par}
 | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 87 | |
| 9702 
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
 wenzelm parents: 
9688diff
changeset | 88 | \newenvironment{isabelle}
 | 
| 10422 | 89 | {\begin{trivlist}\begin{isabellebody}\item\relax}
 | 
| 90 | {\end{isabellebody}\end{trivlist}}
 | |
| 8713 | 91 | |
| 58716 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 92 | \newenvironment{isabellett}
 | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 93 | {\begin{trivlist}\begin{isabellebodytt}\item\relax}
 | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 94 | {\end{isabellebodytt}\end{trivlist}}
 | 
| 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 95 | |
| 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 | 96 | \newcommand{\isa}[1]{\emph{\isaspacing\isastyleminor #1}}
 | 
| 58716 
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
 wenzelm parents: 
55365diff
changeset | 97 | \newcommand{\isatt}[1]{\emph{\isaspacing\isastyleminortt #1}}
 | 
| 8714 | 98 | |
| 10949 | 99 | \newcommand{\isaindent}[1]{\hphantom{#1}}
 | 
| 13933 | 100 | \newcommand{\isanewline}{\mbox{}\par\mbox{}}
 | 
| 17158 
d68bf267cbba
added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
 wenzelm parents: 
17052diff
changeset | 101 | \newcommand{\isasep}{}
 | 
| 9669 | 102 | \newcommand{\isadigit}[1]{#1}
 | 
| 7752 | 103 | |
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 104 | \newcommand{\isachardefaults}{%
 | 
| 64525 
9c3da2276e19
avoid extra space intruding rail diagrams (amending 4854f7ee0987);
 wenzelm parents: 
63590diff
changeset | 105 | \def\isacharbell{\isamath{\bigbox}}%requires stmaryrd
 | 
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 106 | \chardef\isacharbang=`\!% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 107 | \chardef\isachardoublequote=`\"% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 108 | \chardef\isachardoublequoteopen=`\"% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 109 | \chardef\isachardoublequoteclose=`\"% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 110 | \chardef\isacharhash=`\#% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 111 | \chardef\isachardollar=`\$% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 112 | \chardef\isacharpercent=`\%% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 113 | \chardef\isacharampersand=`\&% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 114 | \chardef\isacharprime=`\'% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 115 | \chardef\isacharparenleft=`\(% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 116 | \chardef\isacharparenright=`\)% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 117 | \chardef\isacharasterisk=`\*% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 118 | \chardef\isacharplus=`\+% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 119 | \chardef\isacharcomma=`\,% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 120 | \chardef\isacharminus=`\-% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 121 | \chardef\isachardot=`\.% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 122 | \chardef\isacharslash=`\/% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 123 | \chardef\isacharcolon=`\:% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 124 | \chardef\isacharsemicolon=`\;% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 125 | \chardef\isacharless=`\<% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 126 | \chardef\isacharequal=`\=% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 127 | \chardef\isachargreater=`\>% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 128 | \chardef\isacharquery=`\?% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 129 | \chardef\isacharat=`\@% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 130 | \chardef\isacharbrackleft=`\[% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 131 | \chardef\isacharbackslash=`\\% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 132 | \chardef\isacharbrackright=`\]% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 133 | \chardef\isacharcircum=`\^% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 134 | \chardef\isacharunderscore=`\_% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 135 | \def\isacharunderscorekeyword{\_}%
 | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 136 | \chardef\isacharbackquote=`\`% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 137 | \chardef\isacharbackquoteopen=`\`% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 138 | \chardef\isacharbackquoteclose=`\`% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 139 | \chardef\isacharbraceleft=`\{%
 | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 140 | \chardef\isacharbar=`\|% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 141 | \chardef\isacharbraceright=`\}% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 142 | \chardef\isachartilde=`\~% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 143 | \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 | 144 | \def\isacharverbatimclose{\isacharasterisk\isacharbraceright}%
 | 
| 73404 | 145 | \def\isacartoucheopen{\isatext{\guilsinglleft}}%
 | 
| 146 | \def\isacartoucheclose{\isatext{\guilsinglright}}%
 | |
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 147 | } | 
| 7788 | 148 | |
| 7797 | 149 | |
| 150 | % keyword and section markup | |
| 7788 | 151 | |
| 9669 | 152 | \newcommand{\isakeyword}[1]
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 153 | {\emph{\normalfont\bfseries\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
 | 
| 9669 | 154 | \def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
 | 
| 155 | \newcommand{\isacommand}[1]{\isakeyword{#1}}
 | |
| 7758 | 156 | |
| 67146 | 157 | \newcommand{\isakeywordcontrol}[1]
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 158 | {\emph{\normalfont\bfseries\itshape\def\isacharunderscore{\isacharunderscorekeyword}#1\,}}
 | 
| 67146 | 159 | |
| 7752 | 160 | \newcommand{\isamarkupchapter}[1]{\chapter{#1}}
 | 
| 161 | \newcommand{\isamarkupsection}[1]{\section{#1}}
 | |
| 162 | \newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
 | |
| 163 | \newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
 | |
| 61463 | 164 | \newcommand{\isamarkupparagraph}[1]{\paragraph{#1}}
 | 
| 165 | \newcommand{\isamarkupsubparagraph}[1]{\subparagraph{#1}}
 | |
| 8662 
f9679ddbc492
isapar, isamarkuptext, isamarkuptxt turned into environments;
 wenzelm parents: 
8512diff
changeset | 166 | |
| 11863 
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
 wenzelm parents: 
11573diff
changeset | 167 | \newif\ifisamarkup | 
| 
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
 wenzelm parents: 
11573diff
changeset | 168 | \newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
 | 
| 10586 | 169 | \newcommand{\isaendpar}{\par\medskip}
 | 
| 170 | \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 | 171 | \newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
 | 
| 
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
 wenzelm parents: 
17180diff
changeset | 172 | \newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
 | 
| 9657 | 173 | \newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
 | 
| 174 | ||
| 175 | ||
| 73754 | 176 | % index entries | 
| 177 | ||
| 178 | \newcommand{\isaindexdef}[1]{\textbf{#1}}
 | |
| 179 | \newcommand{\isaindexref}[1]{#1}
 | |
| 180 | ||
| 181 | ||
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 182 | % styles | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 183 | |
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 184 | \def\isabellestyle#1{\csname isabellestyle#1\endcsname}
 | 
| 9657 | 185 | |
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 186 | \newcommand{\isabellestyledefault}{%
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 187 | \def\isastyle{\small\normalfont\ttfamily\slshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 188 | \def\isastylett{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 189 | \def\isastyleminor{\small\normalfont\ttfamily\slshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 190 | \def\isastyleminortt{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 191 | \def\isastylescript{\footnotesize\normalfont\ttfamily\slshape}%
 | 
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 192 | \isachardefaults% | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 193 | } | 
| 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 194 | \isabellestyledefault | 
| 9657 | 195 | |
| 10024 | 196 | \newcommand{\isabellestylett}{%
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 197 | \def\isastyle{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 198 | \def\isastylett{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 199 | \def\isastyleminor{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 200 | \def\isastyleminortt{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 201 | \def\isastylescript{\footnotesize\normalfont\ttfamily}%
 | 
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 202 | \isachardefaults% | 
| 10024 | 203 | } | 
| 18860 
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
 wenzelm parents: 
17531diff
changeset | 204 | |
| 9669 | 205 | \newcommand{\isabellestyleit}{%
 | 
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 206 | \def\isastyle{\small\normalfont\itshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 207 | \def\isastylett{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 208 | \def\isastyleminor{\normalfont\itshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 209 | \def\isastyleminortt{\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 210 | \def\isastylescript{\footnotesize\normalfont\itshape}%
 | 
| 42514 | 211 | \isachardefaults% | 
| 212 | \def\isacharunderscorekeyword{\mbox{-}}%
 | |
| 213 | \def\isacharbang{\isamath{!}}%
 | |
| 49320 
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
 wenzelm parents: 
45646diff
changeset | 214 | \def\isachardoublequote{}%
 | 
| 
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
 wenzelm parents: 
45646diff
changeset | 215 | \def\isachardoublequoteopen{}%
 | 
| 
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
 wenzelm parents: 
45646diff
changeset | 216 | \def\isachardoublequoteclose{}%
 | 
| 42514 | 217 | \def\isacharhash{\isamath{\#}}%
 | 
| 218 | \def\isachardollar{\isamath{\$}}%
 | |
| 219 | \def\isacharpercent{\isamath{\%}}%
 | |
| 220 | \def\isacharampersand{\isamath{\&}}%
 | |
| 221 | \def\isacharprime{\isamath{\mskip2mu{'}\mskip-2mu}}%
 | |
| 222 | \def\isacharparenleft{\isamath{(}}%
 | |
| 223 | \def\isacharparenright{\isamath{)}}%
 | |
| 224 | \def\isacharasterisk{\isamath{*}}%
 | |
| 225 | \def\isacharplus{\isamath{+}}%
 | |
| 226 | \def\isacharcomma{\isamath{\mathord,}}%
 | |
| 227 | \def\isacharminus{\isamath{-}}%
 | |
| 228 | \def\isachardot{\isamath{\mathord.}}%
 | |
| 229 | \def\isacharslash{\isamath{/}}%
 | |
| 230 | \def\isacharcolon{\isamath{\mathord:}}%
 | |
| 231 | \def\isacharsemicolon{\isamath{\mathord;}}%
 | |
| 232 | \def\isacharless{\isamath{<}}%
 | |
| 233 | \def\isacharequal{\isamath{=}}%
 | |
| 234 | \def\isachargreater{\isamath{>}}%
 | |
| 235 | \def\isacharat{\isamath{@}}%
 | |
| 236 | \def\isacharbrackleft{\isamath{[}}%
 | |
| 237 | \def\isacharbackslash{\isamath{\backslash}}%
 | |
| 238 | \def\isacharbrackright{\isamath{]}}%
 | |
| 239 | \def\isacharunderscore{\mbox{-}}%
 | |
| 240 | \def\isacharbraceleft{\isamath{\{}}%
 | |
| 241 | \def\isacharbar{\isamath{\mid}}%
 | |
| 242 | \def\isacharbraceright{\isamath{\}}}%
 | |
| 243 | \def\isachartilde{\isamath{{}\sp{\sim}}}%
 | |
| 73404 | 244 | \def\isacharbackquoteopen{\isatext{\guilsinglleft}}%
 | 
| 245 | \def\isacharbackquoteclose{\isatext{\guilsinglright}}%
 | |
| 9657 | 246 | } | 
| 247 | ||
| 45646 
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
 wenzelm parents: 
43458diff
changeset | 248 | \newcommand{\isabellestyleliteral}{%
 | 
| 42663 
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
 wenzelm parents: 
42514diff
changeset | 249 | \isabellestyleit% | 
| 
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
 wenzelm parents: 
42514diff
changeset | 250 | \def\isacharunderscore{\_}%
 | 
| 
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
 wenzelm parents: 
42514diff
changeset | 251 | \def\isacharunderscorekeyword{\_}%
 | 
| 45646 
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
 wenzelm parents: 
43458diff
changeset | 252 | \chardef\isacharbackquoteopen=`\`% | 
| 
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
 wenzelm parents: 
43458diff
changeset | 253 | \chardef\isacharbackquoteclose=`\`% | 
| 42663 
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
 wenzelm parents: 
42514diff
changeset | 254 | } | 
| 
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
 wenzelm parents: 
42514diff
changeset | 255 | |
| 55365 | 256 | \newcommand{\isabellestyleliteralunderscore}{%
 | 
| 257 | \isabellestyleliteral% | |
| 258 | \def\isacharunderscore{\textunderscore}%
 | |
| 259 | \def\isacharunderscorekeyword{\textunderscore}%
 | |
| 260 | } | |
| 261 | ||
| 9975 | 262 | \newcommand{\isabellestylesl}{%
 | 
| 263 | \isabellestyleit% | |
| 67527 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 264 | \def\isastyle{\small\normalfont\slshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 265 | \def\isastylett{\small\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 266 | \def\isastyleminor{\normalfont\slshape}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 267 | \def\isastyleminortt{\normalfont\ttfamily}%
 | 
| 
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
 wenzelm parents: 
67416diff
changeset | 268 | \def\isastylescript{\footnotesize\normalfont\slshape}%
 | 
| 9975 | 269 | } | 
| 17052 | 270 | |
| 271 | ||
| 67416 | 272 | % cancel text | 
| 273 | ||
| 274 | \usepackage[normalem]{ulem}
 | |
| 67571 
f858fe5531ac
more uniform treatment of formal comments within document source;
 wenzelm parents: 
67527diff
changeset | 275 | \newcommand{\isamarkupcancel}[1]{\isa{\xout{#1}}}
 | 
| 67416 | 276 | |
| 277 | ||
| 17052 | 278 | % tagged regions | 
| 279 | ||
| 280 | %plain TeX version of comment package -- much faster! | |
| 281 | \let\isafmtname\fmtname\def\fmtname{plain}
 | |
| 282 | \usepackage{comment}
 | |
| 283 | \let\fmtname\isafmtname | |
| 284 | ||
| 285 | \newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
 | |
| 286 | ||
| 287 | \newcommand{\isakeeptag}[1]%
 | |
| 288 | {\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
 | |
| 289 | \newcommand{\isadroptag}[1]%
 | |
| 290 | {\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
 | |
| 291 | \newcommand{\isafoldtag}[1]%
 | |
| 292 | {\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
 | |
| 293 | ||
| 67139 
8fe0aba577af
explicit tag for document commands: avoid implicit use of document_tags;
 wenzelm parents: 
64525diff
changeset | 294 | \isakeeptag{document}
 | 
| 17052 | 295 | \isakeeptag{theory}
 | 
| 296 | \isakeeptag{proof}
 | |
| 297 | \isakeeptag{ML}
 | |
| 298 | \isakeeptag{visible}
 | |
| 299 | \isadroptag{invisible}
 | |
| 67151 | 300 | \isakeeptag{important}
 | 
| 301 | \isakeeptag{unimportant}
 | |
| 17052 | 302 | |
| 303 | \IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}
 |