lib/texinputs/isabelle.sty
author wenzelm
Mon Apr 03 14:02:40 2000 +0200 (2000-04-03)
changeset 8662 f9679ddbc492
parent 8512 9c5edbf5eefd
child 8713 05688a1a4f41
permissions -rw-r--r--
isapar, isamarkuptext, isamarkuptxt turned into environments;
wenzelm@7709
     1
%%
wenzelm@7709
     2
%% $Id$
wenzelm@7709
     3
%%
wenzelm@7709
     4
%% macros for Isabelle generated LaTeX output
wenzelm@7709
     5
%%
wenzelm@7709
     6
wenzelm@7709
     7
%%% Simple document preparation (based on theory token language)
wenzelm@7709
     8
wenzelm@7788
     9
% basic environment
wenzelm@7788
    10
wenzelm@8474
    11
\newcommand{\isabellestyle}{}
wenzelm@8474
    12
\newenvironment{isabelle}{%
wenzelm@8489
    13
\newdimen\@parindent\@parindent\parindent\parindent0pt%
wenzelm@8512
    14
\newdimen\@parskip\@parskip\parskip\parskip0pt%
wenzelm@8512
    15
\small\tt\slshape\isabellestyle}{}
wenzelm@7709
    16
\newcommand{\isanewline}{\mbox{}\\\mbox{}}
wenzelm@7752
    17
wenzelm@7797
    18
\chardef\isabraceleft=`\{
wenzelm@7797
    19
\chardef\isabraceright=`\}
wenzelm@7797
    20
\chardef\isatilde=`\~
wenzelm@7797
    21
\chardef\isacircum=`\^
wenzelm@7797
    22
\chardef\isabackslash=`\\
wenzelm@7788
    23
wenzelm@7797
    24
wenzelm@7797
    25
% keyword and section markup
wenzelm@7788
    26
wenzelm@7918
    27
\newcommand{\isacommand}[1]{\emph{\bf #1}}
wenzelm@7918
    28
\newcommand{\isakeyword}[1]{\emph{\bf #1}}
wenzelm@7797
    29
\newcommand{\isabeginblock}{\isakeyword{\{}}
wenzelm@7797
    30
\newcommand{\isaendblock}{\isakeyword{\}}}
wenzelm@7758
    31
wenzelm@8501
    32
\newcommand{\isamarkupheader}[1]{\section{#1}}
wenzelm@7752
    33
\newcommand{\isamarkupchapter}[1]{\chapter{#1}}
wenzelm@7752
    34
\newcommand{\isamarkupsection}[1]{\section{#1}}
wenzelm@7752
    35
\newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
wenzelm@7752
    36
\newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
wenzelm@7752
    37
\newcommand{\isamarkupsect}[1]{\section{#1}}
wenzelm@7752
    38
\newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
wenzelm@7752
    39
\newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
wenzelm@8662
    40
wenzelm@8662
    41
\newenvironment{isapar}{\parindent\@parindent\parskip\@parskip\par\medskip}{\par\smallskip}
wenzelm@8662
    42
\newenvironment{isamarkuptext}{\normalsize\rm\begin{isapar}}{\end{isapar}}
wenzelm@8662
    43
\newenvironment{isamarkuptxt}{\rm\begin{isapar}}{\end{isapar}}
wenzelm@7758
    44
\newcommand{\isamarkupcmt}[1]{{\rm--- #1}}