| author | wenzelm |
| Sat, 28 Apr 2012 17:50:42 +0200 | |
| changeset 47825 | 4f25960417ae |
| parent 45646 | 02afa20cf397 |
| child 49320 | 94bd2fb83d11 |
| 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:
17531
diff
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:
17531
diff
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:
17531
diff
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:
43321
diff
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:
43321
diff
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:
17173
diff
changeset
|
31 |
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
|
|
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
32 |
\newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
|
|
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
changeset
|
33 |
\newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
|
|
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
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:
43321
diff
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:
43321
diff
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:
14234
diff
changeset
|
44 |
|
| 8713 | 45 |
\newdimen\isa@parindent\newdimen\isa@parskip |
| 9657 | 46 |
|
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
47 |
\newenvironment{isabellebody}{%
|
|
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
48 |
\isamarkuptrue\par% |
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
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:
43321
diff
changeset
|
51 |
\isaspacing\isastyle}{\par}
|
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
52 |
|
|
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
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:
43321
diff
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:
17052
diff
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:
17531
diff
changeset
|
64 |
\newcommand{\isachardefaults}{%
|
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
65 |
\chardef\isacharbang=`\!% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
66 |
\chardef\isachardoublequote=`\"% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
67 |
\chardef\isachardoublequoteopen=`\"% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
68 |
\chardef\isachardoublequoteclose=`\"% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
69 |
\chardef\isacharhash=`\#% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
70 |
\chardef\isachardollar=`\$% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
71 |
\chardef\isacharpercent=`\%% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
72 |
\chardef\isacharampersand=`\&% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
73 |
\chardef\isacharprime=`\'% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
74 |
\chardef\isacharparenleft=`\(% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
75 |
\chardef\isacharparenright=`\)% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
76 |
\chardef\isacharasterisk=`\*% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
77 |
\chardef\isacharplus=`\+% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
78 |
\chardef\isacharcomma=`\,% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
79 |
\chardef\isacharminus=`\-% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
80 |
\chardef\isachardot=`\.% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
81 |
\chardef\isacharslash=`\/% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
82 |
\chardef\isacharcolon=`\:% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
83 |
\chardef\isacharsemicolon=`\;% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
84 |
\chardef\isacharless=`\<% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
85 |
\chardef\isacharequal=`\=% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
86 |
\chardef\isachargreater=`\>% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
87 |
\chardef\isacharquery=`\?% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
88 |
\chardef\isacharat=`\@% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
89 |
\chardef\isacharbrackleft=`\[% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
90 |
\chardef\isacharbackslash=`\\% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
91 |
\chardef\isacharbrackright=`\]% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
92 |
\chardef\isacharcircum=`\^% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
93 |
\chardef\isacharunderscore=`\_% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
94 |
\def\isacharunderscorekeyword{\_}%
|
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
95 |
\chardef\isacharbackquote=`\`% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
96 |
\chardef\isacharbackquoteopen=`\`% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
97 |
\chardef\isacharbackquoteclose=`\`% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
98 |
\chardef\isacharbraceleft=`\{%
|
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
99 |
\chardef\isacharbar=`\|% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
100 |
\chardef\isacharbraceright=`\}% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
101 |
\chardef\isachartilde=`\~% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
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:
17531
diff
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:
17531
diff
changeset
|
104 |
} |
| 7788 | 105 |
|
|
40402
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
wenzelm
parents:
39662
diff
changeset
|
106 |
\newcommand{\isaliteral}[2]{#2}
|
|
40407
2ff10e613689
more robust treatment of suppressed quotes concerning replacement text -- for improved copy/paste behaviour;
wenzelm
parents:
40402
diff
changeset
|
107 |
\newcommand{\isanil}{}
|
|
40402
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
wenzelm
parents:
39662
diff
changeset
|
108 |
|
| 7797 | 109 |
|
110 |
% keyword and section markup |
|
| 7788 | 111 |
|
| 9669 | 112 |
\newcommand{\isakeyword}[1]
|
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
113 |
{\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
|
| 9669 | 114 |
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
|
115 |
\newcommand{\isacommand}[1]{\isakeyword{#1}}
|
|
| 7758 | 116 |
|
| 8501 | 117 |
\newcommand{\isamarkupheader}[1]{\section{#1}}
|
| 7752 | 118 |
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
|
119 |
\newcommand{\isamarkupsection}[1]{\section{#1}}
|
|
120 |
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
|
|
121 |
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
|
|
122 |
\newcommand{\isamarkupsect}[1]{\section{#1}}
|
|
123 |
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
|
|
124 |
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
|
|
|
8662
f9679ddbc492
isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm
parents:
8512
diff
changeset
|
125 |
|
|
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
126 |
\newif\ifisamarkup |
|
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
127 |
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
|
| 10586 | 128 |
\newcommand{\isaendpar}{\par\medskip}
|
129 |
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\isabeginpar}{\isaendpar}
|
|
|
17215
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents:
17180
diff
changeset
|
130 |
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
|
|
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents:
17180
diff
changeset
|
131 |
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
|
| 9657 | 132 |
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
|
133 |
||
134 |
||
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
135 |
% styles |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
136 |
|
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
137 |
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
|
| 9657 | 138 |
|
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
139 |
\newcommand{\isabellestyledefault}{%
|
| 42514 | 140 |
\def\isastyle{\small\tt\slshape}%
|
141 |
\def\isastyleminor{\small\tt\slshape}%
|
|
142 |
\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:
17531
diff
changeset
|
143 |
\isachardefaults% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
144 |
} |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
145 |
\isabellestyledefault |
| 9657 | 146 |
|
| 10024 | 147 |
\newcommand{\isabellestylett}{%
|
| 42514 | 148 |
\def\isastyle{\small\tt}%
|
149 |
\def\isastyleminor{\small\tt}%
|
|
150 |
\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:
17531
diff
changeset
|
151 |
\isachardefaults% |
| 10024 | 152 |
} |
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
153 |
|
| 9669 | 154 |
\newcommand{\isabellestyleit}{%
|
| 42514 | 155 |
\def\isastyle{\small\it}%
|
156 |
\def\isastyleminor{\it}%
|
|
157 |
\def\isastylescript{\footnotesize\it}%
|
|
158 |
\isachardefaults% |
|
159 |
\def\isacharunderscorekeyword{\mbox{-}}%
|
|
160 |
\def\isacharbang{\isamath{!}}%
|
|
161 |
\def\isachardoublequote{\isanil}%
|
|
162 |
\def\isachardoublequoteopen{\isanil}%
|
|
163 |
\def\isachardoublequoteclose{\isanil}%
|
|
164 |
\def\isacharhash{\isamath{\#}}%
|
|
165 |
\def\isachardollar{\isamath{\$}}%
|
|
166 |
\def\isacharpercent{\isamath{\%}}%
|
|
167 |
\def\isacharampersand{\isamath{\&}}%
|
|
168 |
\def\isacharprime{\isamath{\mskip2mu{'}\mskip-2mu}}%
|
|
169 |
\def\isacharparenleft{\isamath{(}}%
|
|
170 |
\def\isacharparenright{\isamath{)}}%
|
|
171 |
\def\isacharasterisk{\isamath{*}}%
|
|
172 |
\def\isacharplus{\isamath{+}}%
|
|
173 |
\def\isacharcomma{\isamath{\mathord,}}%
|
|
174 |
\def\isacharminus{\isamath{-}}%
|
|
175 |
\def\isachardot{\isamath{\mathord.}}%
|
|
176 |
\def\isacharslash{\isamath{/}}%
|
|
177 |
\def\isacharcolon{\isamath{\mathord:}}%
|
|
178 |
\def\isacharsemicolon{\isamath{\mathord;}}%
|
|
179 |
\def\isacharless{\isamath{<}}%
|
|
180 |
\def\isacharequal{\isamath{=}}%
|
|
181 |
\def\isachargreater{\isamath{>}}%
|
|
182 |
\def\isacharat{\isamath{@}}%
|
|
183 |
\def\isacharbrackleft{\isamath{[}}%
|
|
184 |
\def\isacharbackslash{\isamath{\backslash}}%
|
|
185 |
\def\isacharbrackright{\isamath{]}}%
|
|
186 |
\def\isacharunderscore{\mbox{-}}%
|
|
187 |
\def\isacharbraceleft{\isamath{\{}}%
|
|
188 |
\def\isacharbar{\isamath{\mid}}%
|
|
189 |
\def\isacharbraceright{\isamath{\}}}%
|
|
190 |
\def\isachartilde{\isamath{{}\sp{\sim}}}%
|
|
191 |
\def\isacharbackquoteopen{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
|
|
192 |
\def\isacharbackquoteclose{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
|
|
193 |
\def\isacharverbatimopen{\isamath{\langle\!\langle}}%
|
|
194 |
\def\isacharverbatimclose{\isamath{\rangle\!\rangle}}%
|
|
| 9657 | 195 |
} |
196 |
||
|
45646
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
197 |
\newcommand{\isabellestyleliteral}{%
|
|
42663
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
198 |
\isabellestyleit% |
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
199 |
\def\isacharunderscore{\_}%
|
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
200 |
\def\isacharunderscorekeyword{\_}%
|
|
45646
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
201 |
\chardef\isacharbackquoteopen=`\`% |
|
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
202 |
\chardef\isacharbackquoteclose=`\`% |
|
42663
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
203 |
} |
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
204 |
|
| 9975 | 205 |
\newcommand{\isabellestylesl}{%
|
206 |
\isabellestyleit% |
|
| 42514 | 207 |
\def\isastyle{\small\sl}%
|
208 |
\def\isastyleminor{\sl}%
|
|
209 |
\def\isastylescript{\footnotesize\sl}%
|
|
| 9975 | 210 |
} |
| 17052 | 211 |
|
212 |
||
213 |
% tagged regions |
|
214 |
||
215 |
%plain TeX version of comment package -- much faster! |
|
216 |
\let\isafmtname\fmtname\def\fmtname{plain}
|
|
217 |
\usepackage{comment}
|
|
218 |
\let\fmtname\isafmtname |
|
219 |
||
220 |
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
|
|
221 |
||
222 |
\newcommand{\isakeeptag}[1]%
|
|
223 |
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
|
|
224 |
\newcommand{\isadroptag}[1]%
|
|
225 |
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
|
|
226 |
\newcommand{\isafoldtag}[1]%
|
|
227 |
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
|
|
228 |
||
229 |
\isakeeptag{theory}
|
|
230 |
\isakeeptag{proof}
|
|
231 |
\isakeeptag{ML}
|
|
232 |
\isakeeptag{visible}
|
|
233 |
\isadroptag{invisible}
|
|
234 |
||
235 |
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}
|