doc-src/extra.sty
author lcp
Mon, 11 Jul 1994 16:29:21 +0200
changeset 455 466dd59b3645
parent 292 cc69ef31cfc3
child 596 cffb278ec83e
permissions -rw-r--r--
misc updates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
292
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     1
% extra.sty : Isabelle Manual extra macros for non-Springer version
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     2
%
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     3
\typeout{Document Style extra. Released 17 February 1994}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     4
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     5
%%Euro-style date: 20 September 1955
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     6
\def\today{\number\day\space\ifcase\month\or
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     7
January\or February\or March\or April\or May\or June\or
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     8
July\or August\or September\or October\or November\or December\fi
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
     9
\space\number\year}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    10
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    11
\input{alltt.sty}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    12
%Indented, boxed alltt environment; uses \small\tt font
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    13
%\leftmargini is LaTeX's first-level indentation for items (2.5em)
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    14
%@endparenv is LaTeX's trick for preventing indentation of next paragraph
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    15
\newenvironment{ttbox}{\par\nobreak\vskip-2pt
455
466dd59b3645 misc updates
lcp
parents: 292
diff changeset
    16
           \vbox\bgroup\footnotesize\begin{alltt}\chardef\{=`\{\chardef\}=`\}%
466dd59b3645 misc updates
lcp
parents: 292
diff changeset
    17
             \leftskip\leftmargini}%
292
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    18
        {\end{alltt}\egroup\vskip-7pt\@endparenv}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    19
\newcommand\ttbreak{\end{ttbox}\vskip-10pt\begin{ttbox}}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    20
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    21
%%%Put first chapter on odd page, with arabic numbering; like \cleardoublepage
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    22
\newcommand\clearfirst{\clearpage\ifodd\c@page\else
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    23
    \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    24
    \pagenumbering{arabic}}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    25
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    26
%%%Ruled chapter headings 
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    27
\def\@rulehead#1{\hrule height1pt \vskip 14pt \Huge \bf 
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    28
   #1 \vskip 14pt\hrule height1pt}
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    29
\def\@makechapterhead#1{ { \parindent 0pt 
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    30
 \ifnum\c@secnumdepth >\m@ne \raggedleft\large\bf\@chapapp{} \thechapter \par 
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    31
 \vskip 20pt \fi \raggedright \@rulehead{#1} \par \nobreak \vskip 40pt } }
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    32
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    33
\def\@makeschapterhead#1{ { \parindent 0pt \raggedright 
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    34
 \@rulehead{#1} \par \nobreak \vskip 40pt } }
cc69ef31cfc3 first draft of Springer volume
lcp
parents:
diff changeset
    35