lib/texinputs/isabelle.sty
author hoelzl
Mon, 06 Dec 2010 19:54:48 +0100
changeset 41024 ba961a606c67
parent 40407 2ff10e613689
child 42514 f32500b4bc23
permissions -rw-r--r--
move coercions to appropriate places
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7709
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     1
%%
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     2
%% macros for Isabelle generated LaTeX output
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     3
%%
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     4
9913
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
     5
%%% Simple document preparation (based on theory token language and symbols)
7709
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     6
8714
61cafd91963c \newenvironment{isabellequote};
wenzelm
parents: 8713
diff changeset
     7
% isabelle environments
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
     8
9913
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
     9
\newcommand{\isabellecontext}{UNKNOWN}
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
    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
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    14
\newcommand{\isastyletext}{\normalsize\rm}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    15
\newcommand{\isastyletxt}{\rm}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    16
\newcommand{\isastylecmt}{\rm}
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    17
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
    18
%symbol markup -- \emph achieves decent spacing via italic corrections
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
    19
\newcommand{\isamath}[1]{\emph{$#1$}}
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
    20
\newcommand{\isatext}[1]{\emph{#1}}
25055
3bb2ad8b1b37 DeclareRobustCommand isascriptstyle (enables sub/superscripts within section headings etc.);
wenzelm
parents: 22647
diff changeset
    21
\DeclareRobustCommand{\isascriptstyle}{\def\isamath##1{##1}\def\isatext##1{\mbox{\isastylescript##1}}}
17180
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
    22
\newcommand{\isactrlsub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
    23
\newcommand{\isactrlsup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
    24
\newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
    25
\newcommand{\isactrlisup}[1]{\emph{\isascriptstyle${}\sp{#1}$}}
25081
aabaab4ad212 DeclareRobustCommand \isactrlbsub/esub etc.;
wenzelm
parents: 25055
diff changeset
    26
\DeclareRobustCommand{\isactrlbsub}{\emph\bgroup\math{}\sb\bgroup\mbox\bgroup\isastylescript}
aabaab4ad212 DeclareRobustCommand \isactrlbsub/esub etc.;
wenzelm
parents: 25055
diff changeset
    27
\DeclareRobustCommand{\isactrlesub}{\egroup\egroup\endmath\egroup}
aabaab4ad212 DeclareRobustCommand \isactrlbsub/esub etc.;
wenzelm
parents: 25055
diff changeset
    28
\DeclareRobustCommand{\isactrlbsup}{\emph\bgroup\math{}\sp\bgroup\mbox\bgroup\isastylescript}
aabaab4ad212 DeclareRobustCommand \isactrlbsub/esub etc.;
wenzelm
parents: 25055
diff changeset
    29
\DeclareRobustCommand{\isactrlesup}{\egroup\egroup\endmath\egroup}
11573
4f85af77038f bold symbols;
wenzelm
parents: 10949
diff changeset
    30
\newcommand{\isactrlbold}[1]{{\bfseries\upshape\boldmath#1}}
17173
5616217e3cec added \isactrlloc;
wenzelm
parents: 17158
diff changeset
    31
\newcommand{\isactrlloc}[1]{{\bfseries\upshape\boldmath#1}}
27337
ed3719ffdf00 added isaantiqopen/close;
wenzelm
parents: 25081
diff changeset
    32
22647
d920afb63323 newenvironment{isaantiq};
wenzelm
parents: 21185
diff changeset
    33
\newenvironment{isaantiq}{{\isacharat\isacharbraceleft}}{{\isacharbraceright}}
27337
ed3719ffdf00 added isaantiqopen/close;
wenzelm
parents: 25081
diff changeset
    34
\newcommand{\isaantiqopen}{\isakeyword{\isacharbraceleft}}
ed3719ffdf00 added isaantiqopen/close;
wenzelm
parents: 25081
diff changeset
    35
\newcommand{\isaantiqclose}{\isakeyword{\isacharbraceright}}
14332
fd3535af90ab spanning super and sub scripts \<^bsub> .. \<^esub> and \<^bsup> .. \<^esup>
kleing
parents: 14234
diff changeset
    36
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    37
\newdimen\isa@parindent\newdimen\isa@parskip
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    38
9702
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    39
\newenvironment{isabellebody}{%
11863
87643169ae7d \newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents: 11573
diff changeset
    40
\isamarkuptrue\par%
9702
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    41
\isa@parindent\parindent\parindent0pt%
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    42
\isa@parskip\parskip\parskip0pt%
10470
3d5492494a4b isabellebody: \par at begin/end;
wenzelm
parents: 10422
diff changeset
    43
\isastyle}{\par}
9702
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    44
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    45
\newenvironment{isabelle}
10422
b5a577a800bc tuned isabelle environment;
wenzelm
parents: 10260
diff changeset
    46
{\begin{trivlist}\begin{isabellebody}\item\relax}
b5a577a800bc tuned isabelle environment;
wenzelm
parents: 10260
diff changeset
    47
{\end{isabellebody}\end{trivlist}}
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    48
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    49
\newcommand{\isa}[1]{\emph{\isastyleminor #1}}
8714
61cafd91963c \newenvironment{isabellequote};
wenzelm
parents: 8713
diff changeset
    50
10949
98cdeb6beb3b \isaindent;
wenzelm
parents: 10822
diff changeset
    51
\newcommand{\isaindent}[1]{\hphantom{#1}}
13933
b224c2fd4288 in \isanewline: \\ -> \par
kleing
parents: 11863
diff changeset
    52
\newcommand{\isanewline}{\mbox{}\par\mbox{}}
17158
d68bf267cbba added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents: 17052
diff changeset
    53
\newcommand{\isasep}{}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    54
\newcommand{\isadigit}[1]{#1}
7752
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    55
18860
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
    56
\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
    57
\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
    58
\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
    59
\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
    60
\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
    61
\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
    62
\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
    63
\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
    64
\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
    65
\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
    66
\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
    67
\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
    68
\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
    69
\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
    70
\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
    71
\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
    72
\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
    73
\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
    74
\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
    75
\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
    76
\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
    77
\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
    78
\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
    79
\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
    80
\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
    81
\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
    82
\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
    83
\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
    84
\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
    85
\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
    86
\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
    87
\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
    88
\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
    89
\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
    90
\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
    91
\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
    92
\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
    93
\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
    94
\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
    95
\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
    96
}
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
    97
40402
b646316f8b3c basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
wenzelm
parents: 39662
diff changeset
    98
\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
    99
\newcommand{\isanil}{}
40402
b646316f8b3c basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
wenzelm
parents: 39662
diff changeset
   100
7797
38a46d9ea08a improved special chars;
wenzelm
parents: 7788
diff changeset
   101
38a46d9ea08a improved special chars;
wenzelm
parents: 7788
diff changeset
   102
% keyword and section markup
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
   103
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   104
\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
   105
{\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   106
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   107
\newcommand{\isacommand}[1]{\isakeyword{#1}}
7758
d36c19045493 tuned markup commands;
wenzelm
parents: 7752
diff changeset
   108
8501
2ff3d25943f1 \isamarkupheader: \section;
wenzelm
parents: 8489
diff changeset
   109
\newcommand{\isamarkupheader}[1]{\section{#1}}
7752
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   110
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   111
\newcommand{\isamarkupsection}[1]{\section{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   112
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   113
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   114
\newcommand{\isamarkupsect}[1]{\section{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   115
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
   116
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
8662
f9679ddbc492 isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm
parents: 8512
diff changeset
   117
11863
87643169ae7d \newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents: 11573
diff changeset
   118
\newif\ifisamarkup
87643169ae7d \newif\ifisamarkup controls spacing of isabeginpar;
wenzelm
parents: 11573
diff changeset
   119
\newcommand{\isabeginpar}{\par\ifisamarkup\relax\else\medskip\fi}
10586
b3f386ec0fd2 added \isabeginpar, \isaendpar;
wenzelm
parents: 10470
diff changeset
   120
\newcommand{\isaendpar}{\par\medskip}
b3f386ec0fd2 added \isabeginpar, \isaendpar;
wenzelm
parents: 10470
diff changeset
   121
\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
   122
\newenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}}{\end{isapar}}
8b969275a5d2 isamarkuptext/txt: \par before changing sizes prevents spacing anomaly;
wenzelm
parents: 17180
diff changeset
   123
\newenvironment{isamarkuptxt}{\par\isastyletxt\begin{isapar}}{\end{isapar}}
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   124
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   125
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   126
18860
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   127
% styles
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   128
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   129
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   130
18860
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   131
\newcommand{\isabellestyledefault}{%
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   132
\renewcommand{\isastyle}{\small\tt\slshape}%
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   133
\renewcommand{\isastyleminor}{\small\tt\slshape}%
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   134
\renewcommand{\isastylescript}{\footnotesize\tt\slshape}%
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   135
\isachardefaults%
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
\isabellestyledefault
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   138
10024
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
   139
\newcommand{\isabellestylett}{%
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
   140
\renewcommand{\isastyle}{\small\tt}%
10188
2899182af616 fixed \isastyleminor for "tt": \small;
wenzelm
parents: 10118
diff changeset
   141
\renewcommand{\isastyleminor}{\small\tt}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   142
\renewcommand{\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
   143
\isachardefaults%
10024
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
   144
}
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
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   146
\newcommand{\isabellestyleit}{%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   147
\renewcommand{\isastyle}{\small\it}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   148
\renewcommand{\isastyleminor}{\it}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   149
\renewcommand{\isastylescript}{\footnotesize\it}%
18860
9089cdb4c5fd all styles now reset to defaults first, i.e. the document may switch styles back and forth;
wenzelm
parents: 17531
diff changeset
   150
\renewcommand{\isacharunderscorekeyword}{\mbox{-}}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   151
\renewcommand{\isacharbang}{\isamath{!}}%
40407
2ff10e613689 more robust treatment of suppressed quotes concerning replacement text -- for improved copy/paste behaviour;
wenzelm
parents: 40402
diff changeset
   152
\renewcommand{\isachardoublequote}{\isanil}%
2ff10e613689 more robust treatment of suppressed quotes concerning replacement text -- for improved copy/paste behaviour;
wenzelm
parents: 40402
diff changeset
   153
\renewcommand{\isachardoublequoteopen}{\isanil}%
2ff10e613689 more robust treatment of suppressed quotes concerning replacement text -- for improved copy/paste behaviour;
wenzelm
parents: 40402
diff changeset
   154
\renewcommand{\isachardoublequoteclose}{\isanil}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   155
\renewcommand{\isacharhash}{\isamath{\#}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   156
\renewcommand{\isachardollar}{\isamath{\$}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   157
\renewcommand{\isacharpercent}{\isamath{\%}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   158
\renewcommand{\isacharampersand}{\isamath{\&}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   159
\renewcommand{\isacharprime}{\isamath{\mskip2mu{'}\mskip-2mu}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   160
\renewcommand{\isacharparenleft}{\isamath{(}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   161
\renewcommand{\isacharparenright}{\isamath{)}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   162
\renewcommand{\isacharasterisk}{\isamath{*}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   163
\renewcommand{\isacharplus}{\isamath{+}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   164
\renewcommand{\isacharcomma}{\isamath{\mathord,}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   165
\renewcommand{\isacharminus}{\isamath{-}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   166
\renewcommand{\isachardot}{\isamath{\mathord.}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   167
\renewcommand{\isacharslash}{\isamath{/}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   168
\renewcommand{\isacharcolon}{\isamath{\mathord:}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   169
\renewcommand{\isacharsemicolon}{\isamath{\mathord;}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   170
\renewcommand{\isacharless}{\isamath{<}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   171
\renewcommand{\isacharequal}{\isamath{=}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   172
\renewcommand{\isachargreater}{\isamath{>}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   173
\renewcommand{\isacharat}{\isamath{@}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   174
\renewcommand{\isacharbrackleft}{\isamath{[}}%
17052
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   175
\renewcommand{\isacharbackslash}{\isamath{\backslash}}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   176
\renewcommand{\isacharbrackright}{\isamath{]}}%
9725
d53e4fd36448 underscore: added \mbox to avoid hyphenation;
wenzelm
parents: 9710
diff changeset
   177
\renewcommand{\isacharunderscore}{\mbox{-}}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   178
\renewcommand{\isacharbraceleft}{\isamath{\{}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   179
\renewcommand{\isacharbar}{\isamath{\mid}}%
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   180
\renewcommand{\isacharbraceright}{\isamath{\}}}%
10260
6c31c8bb78e8 avoid "_" and "^" (more robust);
wenzelm
parents: 10220
diff changeset
   181
\renewcommand{\isachartilde}{\isamath{{}\sp{\sim}}}%
17158
d68bf267cbba added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents: 17052
diff changeset
   182
\renewcommand{\isacharbackquoteopen}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\langle$}}}%
d68bf267cbba added \isachardoublequoteopen/close, \isacharbackquoteopen/close;
wenzelm
parents: 17052
diff changeset
   183
\renewcommand{\isacharbackquoteclose}{\isatext{\raise.3ex\hbox{$\scriptscriptstyle\rangle$}}}%
17180
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
   184
\renewcommand{\isacharverbatimopen}{\isamath{\langle\!\langle}}%
5fefe658a6f8 recover original definitions of \isactrlsub etc.;
wenzelm
parents: 17173
diff changeset
   185
\renewcommand{\isacharverbatimclose}{\isamath{\rangle\!\rangle}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   186
}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   187
9975
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   188
\newcommand{\isabellestylesl}{%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   189
\isabellestyleit%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   190
\renewcommand{\isastyle}{\small\sl}%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   191
\renewcommand{\isastyleminor}{\sl}%
10220
2a726de6e124 proper symbol markup with \isamath, \isatext;
wenzelm
parents: 10188
diff changeset
   192
\renewcommand{\isastylescript}{\footnotesize\sl}%
9975
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   193
}
17052
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   194
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   195
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   196
% tagged regions
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   197
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   198
%plain TeX version of comment package -- much faster!
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   199
\let\isafmtname\fmtname\def\fmtname{plain}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   200
\usepackage{comment}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   201
\let\fmtname\isafmtname
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   202
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   203
\newcommand{\isafold}[1]{\emph{$\langle\mathord{\mathit{#1}}\rangle$}}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   204
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   205
\newcommand{\isakeeptag}[1]%
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   206
{\includecomment{isadelim#1}\includecomment{isatag#1}\csarg\def{isafold#1}{}}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   207
\newcommand{\isadroptag}[1]%
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   208
{\excludecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{}}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   209
\newcommand{\isafoldtag}[1]%
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   210
{\includecomment{isadelim#1}\excludecomment{isatag#1}\csarg\def{isafold#1}{\isafold{#1}}}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   211
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   212
\isakeeptag{theory}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   213
\isakeeptag{proof}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   214
\isakeeptag{ML}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   215
\isakeeptag{visible}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   216
\isadroptag{invisible}
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   217
30781cc78fc6 \isabellestyleit: proper \isacharbackslash;
wenzelm
parents: 16558
diff changeset
   218
\IfFileExists{isabelletags.sty}{\usepackage{isabelletags}}{}