8751
|
1 |
%%
|
|
2 |
%% $Id$
|
|
3 |
%%
|
|
4 |
%% macros for Isabelle generated LaTeX output
|
|
5 |
%%
|
|
6 |
|
|
7 |
%%% Simple document preparation (based on theory token language)
|
|
8 |
|
|
9 |
% isabelle environments
|
|
10 |
|
8824
|
11 |
\newcommand{\isabellestyle}{\small\tt\slshape}
|
8751
|
12 |
|
|
13 |
\newdimen\isa@parindent\newdimen\isa@parskip
|
|
14 |
\newenvironment{isabelle}{%
|
|
15 |
\isa@parindent\parindent\parindent0pt%
|
|
16 |
\isa@parskip\parskip\parskip0pt%
|
8824
|
17 |
\isabellestyle}{}
|
8751
|
18 |
|
8824
|
19 |
\newcommand{\isa}[1]{\emph{\isabellestyle #1}}
|
8751
|
20 |
|
8771
|
21 |
\newenvironment{isabellequote}%
|
|
22 |
{\begin{quote}\begin{isabelle}\noindent}{\end{isabelle}\end{quote}}
|
|
23 |
|
8751
|
24 |
\newcommand{\isanewline}{\mbox{}\\\mbox{}}
|
|
25 |
|
|
26 |
\chardef\isabraceleft=`\{
|
|
27 |
\chardef\isabraceright=`\}
|
|
28 |
\chardef\isatilde=`\~
|
|
29 |
\chardef\isacircum=`\^
|
|
30 |
\chardef\isabackslash=`\\
|
|
31 |
|
|
32 |
|
|
33 |
% keyword and section markup
|
|
34 |
|
|
35 |
\newcommand{\isacommand}[1]{\emph{\bf #1}}
|
|
36 |
\newcommand{\isakeyword}[1]{\emph{\bf #1}}
|
|
37 |
\newcommand{\isabeginblock}{\isakeyword{\{}}
|
|
38 |
\newcommand{\isaendblock}{\isakeyword{\}}}
|
|
39 |
|
|
40 |
\newcommand{\isamarkupheader}[1]{\section{#1}}
|
|
41 |
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
|
|
42 |
\newcommand{\isamarkupsection}[1]{\section{#1}}
|
|
43 |
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
|
|
44 |
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
|
|
45 |
\newcommand{\isamarkupsect}[1]{\section{#1}}
|
|
46 |
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
|
|
47 |
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
|
|
48 |
|
|
49 |
\newenvironment{isapar}{\parindent\isa@parindent\parskip\isa@parskip\par\medskip}{\par\smallskip}
|
|
50 |
\newenvironment{isamarkuptext}{\normalsize\rm\begin{isapar}}{\end{isapar}}
|
|
51 |
\newenvironment{isamarkuptxt}{\rm\begin{isapar}}{\end{isapar}}
|
|
52 |
\newcommand{\isamarkupcmt}[1]{{\rm--- #1}}
|