lib/texinputs/isabelle.sty
author wenzelm
Wed, 11 Oct 2000 12:52:56 +0200
changeset 10188 2899182af616
parent 10118 68d6c5b336c1
child 10220 2a726de6e124
permissions -rw-r--r--
fixed \isastyleminor for "tt": \small;
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
%% $Id$
9818
wenzelm
parents: 9725
diff changeset
     3
%% Author: Markus Wenzel, TU Muenchen
wenzelm
parents: 9725
diff changeset
     4
%% License: GPL (GNU GENERAL PUBLIC LICENSE)
7709
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     5
%%
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     6
%% macros for Isabelle generated LaTeX output
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     7
%%
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
     8
9913
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
     9
%%% Simple document preparation (based on theory token language and symbols)
7709
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
    10
8714
61cafd91963c \newenvironment{isabellequote};
wenzelm
parents: 8713
diff changeset
    11
% isabelle environments
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
    12
9913
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
    13
\newcommand{\isabellecontext}{UNKNOWN}
b9ecbe4667d0 added \isabellecontext;
wenzelm
parents: 9818
diff changeset
    14
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    15
\newcommand{\isastyle}{\small\tt\slshape}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    16
\newcommand{\isastyleminor}{\small\tt\slshape}
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    17
\newcommand{\isastyletext}{\normalsize\rm}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    18
\newcommand{\isastyletxt}{\rm}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    19
\newcommand{\isastylecmt}{\rm}
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    20
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    21
\newdimen\isa@parindent\newdimen\isa@parskip
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    22
9702
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    23
\newenvironment{isabellebody}{%
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    24
\isa@parindent\parindent\parindent0pt%
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    25
\isa@parskip\parskip\parskip0pt%
9702
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    26
\isastyle}{}
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    27
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    28
\newenvironment{isabelle}
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    29
{\begin{isabellebody}\begin{trivlist}\item\relax}
f23bee3c0682 \newenvironment{isabellebody}: version without trivlist;
wenzelm
parents: 9688
diff changeset
    30
{\end{trivlist}\end{isabellebody}}
8713
05688a1a4f41 global \isa@parindent, \isa@parskip;
wenzelm
parents: 8662
diff changeset
    31
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    32
\newcommand{\isa}[1]{\emph{\isastyleminor #1}}
8714
61cafd91963c \newenvironment{isabellequote};
wenzelm
parents: 8713
diff changeset
    33
7709
545637744a85 macros for Isabelle generated LaTeX output;
wenzelm
parents:
diff changeset
    34
\newcommand{\isanewline}{\mbox{}\\\mbox{}}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    35
\newcommand{\isadigit}[1]{#1}
7752
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    36
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    37
\chardef\isacharbang=`\!
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    38
\chardef\isachardoublequote=`\"
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    39
\chardef\isacharhash=`\#
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    40
\chardef\isachardollar=`\$
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    41
\chardef\isacharpercent=`\%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    42
\chardef\isacharampersand=`\&
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    43
\chardef\isacharprime=`\'
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    44
\chardef\isacharparenleft=`\(
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    45
\chardef\isacharparenright=`\)
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    46
\chardef\isacharasterisk=`\*
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    47
\chardef\isacharplus=`\+
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    48
\chardef\isacharcomma=`\,
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    49
\chardef\isacharminus=`\-
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    50
\chardef\isachardot=`\.
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    51
\chardef\isacharslash=`\/
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    52
\chardef\isacharcolon=`\:
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    53
\chardef\isacharsemicolon=`\;
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    54
\chardef\isacharless=`\<
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    55
\chardef\isacharequal=`\=
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    56
\chardef\isachargreater=`\>
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    57
\chardef\isacharquery=`\?
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    58
\chardef\isacharat=`\@
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    59
\chardef\isacharbrackleft=`\[
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    60
\chardef\isacharbackslash=`\\
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    61
\chardef\isacharbrackright=`\]
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    62
\chardef\isacharcircum=`\^
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    63
\chardef\isacharunderscore=`\_
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    64
\chardef\isacharbackquote=`\`
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    65
\chardef\isacharbraceleft=`\{
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    66
\chardef\isacharbar=`\|
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    67
\chardef\isacharbraceright=`\}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    68
\chardef\isachartilde=`\~
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
    69
7797
38a46d9ea08a improved special chars;
wenzelm
parents: 7788
diff changeset
    70
38a46d9ea08a improved special chars;
wenzelm
parents: 7788
diff changeset
    71
% keyword and section markup
7788
825b8b1ad136 removed verbatim markups;
wenzelm
parents: 7771
diff changeset
    72
9710
159469a85035 \isakeywordcharunderscore;
wenzelm
parents: 9702
diff changeset
    73
\newcommand{\isakeywordcharunderscore}{\_}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    74
\newcommand{\isakeyword}[1]
9710
159469a85035 \isakeywordcharunderscore;
wenzelm
parents: 9702
diff changeset
    75
{\emph{\bf\def\isachardot{.}\def\isacharunderscore{\isakeywordcharunderscore}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    76
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}#1}}
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    77
\newcommand{\isacommand}[1]{\isakeyword{#1}}
7758
d36c19045493 tuned markup commands;
wenzelm
parents: 7752
diff changeset
    78
8501
2ff3d25943f1 \isamarkupheader: \section;
wenzelm
parents: 8489
diff changeset
    79
\newcommand{\isamarkupheader}[1]{\section{#1}}
7752
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    80
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    81
\newcommand{\isamarkupsection}[1]{\section{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    82
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    83
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    84
\newcommand{\isamarkupsect}[1]{\section{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    85
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
7ee322caf59c accomodate markup commands;
wenzelm
parents: 7709
diff changeset
    86
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
8662
f9679ddbc492 isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm
parents: 8512
diff changeset
    87
10118
68d6c5b336c1 isapar: \medskip;
wenzelm
parents: 10053
diff changeset
    88
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\par\medskip}{\par\medskip}
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    89
\newenvironment{isamarkuptext}{\isastyletext\begin{isapar}}{\end{isapar}}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    90
\newenvironment{isamarkuptxt}{\isastyletxt\begin{isapar}}{\end{isapar}}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    91
\newcommand{\isamarkupcmt}[1]{{\isastylecmt--- #1}}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    92
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    93
10024
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
    94
% alternative styles
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    95
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    96
\newcommand{\isabellestyle}{}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
    97
\def\isabellestyle#1{\csname isabellestyle#1\endcsname}
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
    98
10024
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
    99
\newcommand{\isabellestylett}{%
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
   100
\renewcommand{\isastyle}{\small\tt}%
10188
2899182af616 fixed \isastyleminor for "tt": \small;
wenzelm
parents: 10118
diff changeset
   101
\renewcommand{\isastyleminor}{\small\tt}%
10024
f79ce04d0b94 added plain "tt" style;
wenzelm
parents: 9975
diff changeset
   102
}
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   103
\newcommand{\isabellestyleit}{%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   104
\renewcommand{\isastyle}{\small\it}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   105
\renewcommand{\isastyleminor}{\it}%
9725
d53e4fd36448 underscore: added \mbox to avoid hyphenation;
wenzelm
parents: 9710
diff changeset
   106
\renewcommand{\isakeywordcharunderscore}{\mbox{-}}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   107
\renewcommand{\isacharbang}{\emph{$!$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   108
\renewcommand{\isachardoublequote}{}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   109
\renewcommand{\isacharhash}{\emph{$\#$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   110
\renewcommand{\isachardollar}{\emph{$\$$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   111
\renewcommand{\isacharpercent}{\emph{$\%$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   112
\renewcommand{\isacharampersand}{\emph{$\&$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   113
\renewcommand{\isacharprime}{$\mskip2mu{'}\mskip-2mu$}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   114
\renewcommand{\isacharparenleft}{\emph{$($}}%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   115
\renewcommand{\isacharparenright}{\emph{$)$}}%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   116
\renewcommand{\isacharasterisk}{\emph{$*$}}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   117
\renewcommand{\isacharplus}{\emph{$+$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   118
\renewcommand{\isacharcomma}{\emph{$\mathord,$}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   119
\renewcommand{\isacharminus}{\emph{$-$}}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   120
\renewcommand{\isachardot}{\emph{$\mathord.$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   121
\renewcommand{\isacharslash}{\emph{$/$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   122
\renewcommand{\isacharcolon}{\emph{$\mathord:$}}%
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   123
\renewcommand{\isacharsemicolon}{\emph{$\mathord;$}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   124
\renewcommand{\isacharless}{\emph{$<$}}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   125
\renewcommand{\isacharequal}{\emph{$=$}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   126
\renewcommand{\isachargreater}{\emph{$>$}}%
9669
542fb6c6c9b2 added \isastyleminor;
wenzelm
parents: 9657
diff changeset
   127
\renewcommand{\isacharat}{\emph{$@$}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   128
\renewcommand{\isacharbrackleft}{\emph{$[$}}%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   129
\renewcommand{\isacharbrackright}{\emph{$]$}}%
9725
d53e4fd36448 underscore: added \mbox to avoid hyphenation;
wenzelm
parents: 9710
diff changeset
   130
\renewcommand{\isacharunderscore}{\mbox{-}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   131
\renewcommand{\isacharbraceleft}{\emph{$\{$}}%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   132
\renewcommand{\isacharbar}{\emph{$\mid$}}%
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   133
\renewcommand{\isacharbraceright}{\emph{$\}$}}%
10053
ef58424d7893 improved \isachartilde for non-tt styles;
wenzelm
parents: 10024
diff changeset
   134
\renewcommand{\isachartilde}{\emph{${}^\sim$}}%
9657
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   135
}
0a187a43ef21 added \isachar definitions;
wenzelm
parents: 8822
diff changeset
   136
9975
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   137
\newcommand{\isabellestylesl}{%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   138
\isabellestyleit%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   139
\renewcommand{\isastyle}{\small\sl}%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   140
\renewcommand{\isastyleminor}{\sl}%
236cf072264d fixed "sl" style;
wenzelm
parents: 9913
diff changeset
   141
}