doc-src/Tutorial/extra.sty
author wenzelm
Fri, 16 Jul 1999 22:24:42 +0200
changeset 7024 44bd3c094fd6
parent 5375 1463e182c533
child 9675 0fe0dce56bd8
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5375
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     1
% extra.sty : Isabelle Manual extra macros for non-Springer version
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     2
%
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     3
\typeout{Document Style extra. Released 17 February 1994}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     4
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     5
%%Euro-style date: 20 September 1955
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     6
\def\today{\number\day\space\ifcase\month\or
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     7
January\or February\or March\or April\or May\or June\or
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     8
July\or August\or September\or October\or November\or December\fi
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     9
\space\number\year}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    10
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    11
%%Borrowed from alltt.sty, but leaves % as the comment character
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    12
\def\docspecials{\do\ \do\$\do\&%
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    13
  \do\#\do\^\do\^^K\do\_\do\^^A\do\~}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    14
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    15
%%%Put first chapter on odd page, with arabic numbering; like \cleardoublepage
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    16
\newcommand\clearfirst{\clearpage\ifodd\c@page\else
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    17
    \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    18
    \pagenumbering{arabic}}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    19
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    20
%%%Ruled chapter headings 
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    21
\def\@rulehead#1{\hrule height1pt \vskip 14pt \Huge \bf 
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    22
   #1 \vskip 14pt\hrule height1pt}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    23
\def\@makechapterhead#1{ { \parindent 0pt 
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    24
 \ifnum\c@secnumdepth >\m@ne \raggedleft\large\bf\@chapapp{} \thechapter \par 
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    25
 \vskip 20pt \fi \raggedright \@rulehead{#1} \par \nobreak \vskip 40pt } }
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    26
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    27
\def\@makeschapterhead#1{ { \parindent 0pt \raggedright 
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    28
 \@rulehead{#1} \par \nobreak \vskip 40pt } }
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    29