lib/texinputs/isabelle.sty
author wenzelm
Wed, 15 Mar 2000 18:50:14 +0100
changeset 8474 ae32be343647
parent 8232 6b19ee96546c
child 8489 bb41d88f7df5
permissions -rw-r--r--
renamed isabelle env;
proper handling of parindent/parskip;
     1 %%
     2 %% $Id$
     3 %%
     4 %% macros for Isabelle generated LaTeX output
     5 %%
     6 
     7 %%% Simple document preparation (based on theory token language)
     8 
     9 % basic environment
    10 
    11 \newcommand{\isabellestyle}{}
    12 \newenvironment{isabelle}{%
    13 \newdimen\outerparindent\outerparindent=\parindent\parindent=0pt%
    14 \newdimen\outerparskip\outerparskip=\parskip\parskip=0.5ex%
    15 \small\tt\slshape\isabellestyle\mbox{}}{}
    16 \newcommand{\isanewline}{\mbox{}\\\mbox{}}
    17 
    18 \chardef\isabraceleft=`\{
    19 \chardef\isabraceright=`\}
    20 \chardef\isatilde=`\~
    21 \chardef\isacircum=`\^
    22 \chardef\isabackslash=`\\
    23 
    24 
    25 % keyword and section markup
    26 
    27 \newcommand{\isacommand}[1]{\emph{\bf #1}}
    28 \newcommand{\isakeyword}[1]{\emph{\bf #1}}
    29 \newcommand{\isabeginblock}{\isakeyword{\{}}
    30 \newcommand{\isaendblock}{\isakeyword{\}}}
    31 
    32 \newcommand{\isapar}[1]{%
    33 {\parindent=\outerparindent\parskip=\outerparskip\par\medskip #1}\par\smallskip}
    34 \newcommand{\isamarkupheader}[1]{#1}
    35 
    36 \newcommand{\isamarkupchapter}[1]{\chapter{#1}}
    37 \newcommand{\isamarkupsection}[1]{\section{#1}}
    38 \newcommand{\isamarkupsubsection}[1]{\subsection{#1}}
    39 \newcommand{\isamarkupsubsubsection}[1]{\subsubsection{#1}}
    40 \newcommand{\isamarkuptext}[1]{\isapar{\normalsize\rm #1}}
    41 
    42 \newcommand{\isamarkupsect}[1]{\section{#1}}
    43 \newcommand{\isamarkupsubsect}[1]{\subsection{#1}}
    44 \newcommand{\isamarkupsubsubsect}[1]{\subsubsection{#1}}
    45 \newcommand{\isamarkuptxt}[1]{\isapar{\rm #1}}
    46 \newcommand{\isamarkupcmt}[1]{{\rm--- #1}}