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