| author | wenzelm |
| Fri, 09 Mar 2018 12:42:34 +0100 | |
| changeset 67788 | 34e76587dc94 |
| parent 67571 | f858fe5531ac |
| child 70142 | 7efe226c50e4 |
| 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:
58868
diff
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:
17531
diff
changeset
|
12 |
\newcommand{\isastyle}{\UNDEF}
|
|
58716
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
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:
17531
diff
changeset
|
14 |
\newcommand{\isastyleminor}{\UNDEF}
|
|
58716
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
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:
17531
diff
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:
67416
diff
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:
67416
diff
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:
67416
diff
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:
43321
diff
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:
43321
diff
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:
17173
diff
changeset
|
34 |
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
|
|
5fefe658a6f8
recover original definitions of \isactrlsub etc.;
wenzelm
parents:
17173
diff
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:
43321
diff
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:
43321
diff
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:
14234
diff
changeset
|
43 |
|
| 8713 | 44 |
\newdimen\isa@parindent\newdimen\isa@parskip |
| 9657 | 45 |
|
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
46 |
\newenvironment{isabellebody}{%
|
|
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
47 |
\isamarkuptrue\par% |
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
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:
43321
diff
changeset
|
50 |
\isaspacing\isastyle}{\par}
|
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
changeset
|
51 |
|
|
58716
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
52 |
\newenvironment{isabellebodytt}{%
|
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
53 |
\isamarkuptrue\par% |
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
54 |
\isa@parindent\parindent\parindent0pt% |
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
55 |
\isa@parskip\parskip\parskip0pt% |
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
56 |
\isaspacing\isastylett}{\par}
|
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
57 |
|
|
9702
f23bee3c0682
\newenvironment{isabellebody}: version without trivlist;
wenzelm
parents:
9688
diff
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:
55365
diff
changeset
|
62 |
\newenvironment{isabellett}
|
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
63 |
{\begin{trivlist}\begin{isabellebodytt}\item\relax}
|
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
changeset
|
64 |
{\end{isabellebodytt}\end{trivlist}}
|
|
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
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:
43321
diff
changeset
|
66 |
\newcommand{\isa}[1]{\emph{\isaspacing\isastyleminor #1}}
|
|
58716
23a380cc45f4
official support for "tt" style variants, avoid fragile \verb in LaTeX;
wenzelm
parents:
55365
diff
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:
17052
diff
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:
17531
diff
changeset
|
74 |
\newcommand{\isachardefaults}{%
|
|
64525
9c3da2276e19
avoid extra space intruding rail diagrams (amending 4854f7ee0987);
wenzelm
parents:
63590
diff
changeset
|
75 |
\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:
17531
diff
changeset
|
76 |
\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
|
77 |
\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
|
78 |
\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
|
79 |
\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
|
80 |
\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
|
81 |
\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
|
82 |
\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
|
83 |
\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
|
84 |
\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
|
85 |
\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
|
86 |
\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
|
87 |
\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
|
88 |
\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
|
89 |
\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
|
90 |
\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
|
91 |
\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
|
92 |
\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
|
93 |
\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
|
94 |
\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
|
95 |
\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
|
96 |
\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
|
97 |
\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
|
98 |
\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
|
99 |
\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
|
100 |
\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
|
101 |
\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
|
102 |
\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
|
103 |
\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
|
104 |
\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
|
105 |
\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
|
106 |
\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
|
107 |
\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
|
108 |
\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
|
109 |
\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
|
110 |
\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
|
111 |
\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
|
112 |
\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
|
113 |
\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
|
114 |
\def\isacharverbatimclose{\isacharasterisk\isacharbraceright}%
|
| 55033 | 115 |
\def\isacartoucheopen{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
|
116 |
\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:
17531
diff
changeset
|
117 |
} |
| 7788 | 118 |
|
| 7797 | 119 |
|
120 |
% keyword and section markup |
|
| 7788 | 121 |
|
| 9669 | 122 |
\newcommand{\isakeyword}[1]
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
123 |
{\emph{\normalfont\bfseries\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
|
| 9669 | 124 |
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
|
125 |
\newcommand{\isacommand}[1]{\isakeyword{#1}}
|
|
| 7758 | 126 |
|
| 67146 | 127 |
\newcommand{\isakeywordcontrol}[1]
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
128 |
{\emph{\normalfont\bfseries\itshape\def\isacharunderscore{\isacharunderscorekeyword}#1\,}}
|
| 67146 | 129 |
|
| 8501 | 130 |
\newcommand{\isamarkupheader}[1]{\section{#1}}
|
| 7752 | 131 |
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
|
132 |
\newcommand{\isamarkupsection}[1]{\section{#1}}
|
|
133 |
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
|
|
134 |
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
|
|
| 61463 | 135 |
\newcommand{\isamarkupparagraph}[1]{\paragraph{#1}}
|
136 |
\newcommand{\isamarkupsubparagraph}[1]{\subparagraph{#1}}
|
|
|
8662
f9679ddbc492
isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm
parents:
8512
diff
changeset
|
137 |
|
|
11863
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
138 |
\newif\ifisamarkup |
|
87643169ae7d
\newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents:
11573
diff
changeset
|
139 |
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
|
| 10586 | 140 |
\newcommand{\isaendpar}{\par\medskip}
|
141 |
\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
|
142 |
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
|
|
8b969275a5d2
isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents:
17180
diff
changeset
|
143 |
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
|
| 9657 | 144 |
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
|
145 |
||
146 |
||
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
147 |
% styles |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
148 |
|
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
149 |
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
|
| 9657 | 150 |
|
|
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 |
\newcommand{\isabellestyledefault}{%
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
152 |
\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:
67416
diff
changeset
|
153 |
\def\isastylett{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
154 |
\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:
67416
diff
changeset
|
155 |
\def\isastyleminortt{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
156 |
\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:
17531
diff
changeset
|
157 |
\isachardefaults% |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
158 |
} |
|
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
159 |
\isabellestyledefault |
| 9657 | 160 |
|
| 10024 | 161 |
\newcommand{\isabellestylett}{%
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
162 |
\def\isastyle{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
163 |
\def\isastylett{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
164 |
\def\isastyleminor{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
165 |
\def\isastyleminortt{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
166 |
\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:
17531
diff
changeset
|
167 |
\isachardefaults% |
| 10024 | 168 |
} |
|
18860
9089cdb4c5fd
all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents:
17531
diff
changeset
|
169 |
|
| 9669 | 170 |
\newcommand{\isabellestyleit}{%
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
171 |
\def\isastyle{\small\normalfont\itshape}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
172 |
\def\isastylett{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
173 |
\def\isastyleminor{\normalfont\itshape}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
174 |
\def\isastyleminortt{\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
175 |
\def\isastylescript{\footnotesize\normalfont\itshape}%
|
| 42514 | 176 |
\isachardefaults% |
177 |
\def\isacharunderscorekeyword{\mbox{-}}%
|
|
178 |
\def\isacharbang{\isamath{!}}%
|
|
|
49320
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
wenzelm
parents:
45646
diff
changeset
|
179 |
\def\isachardoublequote{}%
|
|
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
wenzelm
parents:
45646
diff
changeset
|
180 |
\def\isachardoublequoteopen{}%
|
|
94bd2fb83d11
discontinued experiment with literal replacement text in PDF (cf. b646316f8b3c, 2ff10e613689);
wenzelm
parents:
45646
diff
changeset
|
181 |
\def\isachardoublequoteclose{}%
|
| 42514 | 182 |
\def\isacharhash{\isamath{\#}}%
|
183 |
\def\isachardollar{\isamath{\$}}%
|
|
184 |
\def\isacharpercent{\isamath{\%}}%
|
|
185 |
\def\isacharampersand{\isamath{\&}}%
|
|
186 |
\def\isacharprime{\isamath{\mskip2mu{'}\mskip-2mu}}%
|
|
187 |
\def\isacharparenleft{\isamath{(}}%
|
|
188 |
\def\isacharparenright{\isamath{)}}%
|
|
189 |
\def\isacharasterisk{\isamath{*}}%
|
|
190 |
\def\isacharplus{\isamath{+}}%
|
|
191 |
\def\isacharcomma{\isamath{\mathord,}}%
|
|
192 |
\def\isacharminus{\isamath{-}}%
|
|
193 |
\def\isachardot{\isamath{\mathord.}}%
|
|
194 |
\def\isacharslash{\isamath{/}}%
|
|
195 |
\def\isacharcolon{\isamath{\mathord:}}%
|
|
196 |
\def\isacharsemicolon{\isamath{\mathord;}}%
|
|
197 |
\def\isacharless{\isamath{<}}%
|
|
198 |
\def\isacharequal{\isamath{=}}%
|
|
199 |
\def\isachargreater{\isamath{>}}%
|
|
200 |
\def\isacharat{\isamath{@}}%
|
|
201 |
\def\isacharbrackleft{\isamath{[}}%
|
|
202 |
\def\isacharbackslash{\isamath{\backslash}}%
|
|
203 |
\def\isacharbrackright{\isamath{]}}%
|
|
204 |
\def\isacharunderscore{\mbox{-}}%
|
|
205 |
\def\isacharbraceleft{\isamath{\{}}%
|
|
206 |
\def\isacharbar{\isamath{\mid}}%
|
|
207 |
\def\isacharbraceright{\isamath{\}}}%
|
|
208 |
\def\isachartilde{\isamath{{}\sp{\sim}}}%
|
|
209 |
\def\isacharbackquoteopen{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
|
|
210 |
\def\isacharbackquoteclose{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
|
|
211 |
\def\isacharverbatimopen{\isamath{\langle\!\langle}}%
|
|
212 |
\def\isacharverbatimclose{\isamath{\rangle\!\rangle}}%
|
|
| 9657 | 213 |
} |
214 |
||
|
45646
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
215 |
\newcommand{\isabellestyleliteral}{%
|
|
42663
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
216 |
\isabellestyleit% |
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
217 |
\def\isacharunderscore{\_}%
|
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
218 |
\def\isacharunderscorekeyword{\_}%
|
|
45646
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
219 |
\chardef\isacharbackquoteopen=`\`% |
|
02afa20cf397
refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents:
43458
diff
changeset
|
220 |
\chardef\isacharbackquoteclose=`\`% |
|
42663
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
221 |
} |
|
c31df4184ead
provide \isabellestyle{itunderscore} (requires underscore.sty);
wenzelm
parents:
42514
diff
changeset
|
222 |
|
| 55365 | 223 |
\newcommand{\isabellestyleliteralunderscore}{%
|
224 |
\isabellestyleliteral% |
|
225 |
\def\isacharunderscore{\textunderscore}%
|
|
226 |
\def\isacharunderscorekeyword{\textunderscore}%
|
|
227 |
} |
|
228 |
||
| 9975 | 229 |
\newcommand{\isabellestylesl}{%
|
230 |
\isabellestyleit% |
|
|
67527
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
231 |
\def\isastyle{\small\normalfont\slshape}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
232 |
\def\isastylett{\small\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
233 |
\def\isastyleminor{\normalfont\slshape}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
234 |
\def\isastyleminortt{\normalfont\ttfamily}%
|
|
a93a9e89da72
expand definitions of \DeclareOldFontCommand in traditional article.cls, e.g. KOMA-Script no longer provides these;
wenzelm
parents:
67416
diff
changeset
|
235 |
\def\isastylescript{\footnotesize\normalfont\slshape}%
|
| 9975 | 236 |
} |
| 17052 | 237 |
|
238 |
||
| 67416 | 239 |
% cancel text |
240 |
||
241 |
\usepackage[normalem]{ulem}
|
|
|
67571
f858fe5531ac
more uniform treatment of formal comments within document source;
wenzelm
parents:
67527
diff
changeset
|
242 |
\newcommand{\isamarkupcancel}[1]{\isa{\xout{#1}}}
|
| 67416 | 243 |
|
244 |
||
| 17052 | 245 |
% tagged regions |
246 |
||
247 |
%plain TeX version of comment package -- much faster! |
|
248 |
\let\isafmtname\fmtname\def\fmtname{plain}
|
|
249 |
\usepackage{comment}
|
|
250 |
\let\fmtname\isafmtname |
|
251 |
||
252 |
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
|
|
253 |
||
254 |
\newcommand{\isakeeptag}[1]%
|
|
255 |
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
|
|
256 |
\newcommand{\isadroptag}[1]%
|
|
257 |
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
|
|
258 |
\newcommand{\isafoldtag}[1]%
|
|
259 |
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
|
|
260 |
||
|
67139
8fe0aba577af
explicit tag for document commands: avoid implicit use of document_tags;
wenzelm
parents:
64525
diff
changeset
|
261 |
\isakeeptag{document}
|
| 17052 | 262 |
\isakeeptag{theory}
|
263 |
\isakeeptag{proof}
|
|
264 |
\isakeeptag{ML}
|
|
265 |
\isakeeptag{visible}
|
|
266 |
\isadroptag{invisible}
|
|
| 67151 | 267 |
\isakeeptag{important}
|
268 |
\isakeeptag{unimportant}
|
|
| 17052 | 269 |
|
270 |
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}
|