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