src/Doc/How_to_Prove_it/document/prelude.tex
author nipkow
Fri, 02 May 2014 07:54:23 +0200
changeset 56820 7fbed439b8d3
child 58873 db866dc081f8
permissions -rw-r--r--
new documentation: How to Prove it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56820
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     1
\usepackage{makeidx}         % allows index generation
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     2
\usepackage{graphicx}        % standard LaTeX graphics tool
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     3
                             % when including figure files
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     4
\usepackage{multicol}        % used for the two-column index
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     5
\usepackage[bottom]{footmisc}% places footnotes at page bottom
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     6
\usepackage{alltt}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     7
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     8
\usepackage[T1]{fontenc}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     9
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    10
\usepackage{isabelle,isabellesym}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    11
%\usepackage{amssymb}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    12
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    13
\renewcommand*\descriptionlabel[1]{\hspace\labelsep \textbf{#1}\hfil}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    14
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    15
% this should be the last package used
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    16
\usepackage{xcolor}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    17
\definecolor{linkcolor}{rgb}{0,0,0.4}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    18
\usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    19
            filecolor=linkcolor,pagecolor=linkcolor,
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    20
            urlcolor=linkcolor]{hyperref}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    21
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    22
% urls in roman style, theory text in math-similar italics
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    23
\urlstyle{tt}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    24
\isabellestyle{it}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    25
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    26
\renewcommand{\isadigit}[1]{\ensuremath{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    27
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    28
% font size
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    29
\renewcommand{\isastyle}{\isastyleminor}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    30
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    31
% indexing
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    32
\usepackage{ifthen}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    33
\newcommand{\indexdef}[3]%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    34
{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    35
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    36
\renewcommand{\isamarkupheader}[1]{{\rmfamily\subsection{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    37
\renewcommand{\isamarkupsection}[1]{{\rmfamily\subsection{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    38
\renewcommand{\isamarkupsubsection}[1]{{\rmfamily\subsubsection{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    39
% isabelle in-text command font
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    40
\newcommand{\isacom}[1]{\isa{\isacommand{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    41
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    42
\protected\def\isacharunderscore{\raisebox{2pt}{\_\kern-1.7pt}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    43
\protected\def\isacharunderscorekeyword{\raisebox{2pt}{\_}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    44
% isabelle keyword, adapted from isabelle.sty
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    45
\renewcommand{\isakeyword}[1]
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    46
{\emph{\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    47
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}\textsf{\textbf{#1}}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    48
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    49
% add \noindent to text blocks automatically
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    50
\renewenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}\noindent}{\end{isapar}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    51
\renewenvironment{isamarkuptxt}{\par\isastyletext\begin{isapar}\noindent}{\end{isapar}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    52
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    53
\newcommand{\noquotes}[1]{{\renewcommand{\isachardoublequote}{}\renewcommand{\isachardoublequoteopen}{}\renewcommand{\isachardoublequoteclose}{}#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    54
\newcommand{\xsymbol}[1]{\texttt{\char`\\\char`<#1>}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    55
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    56
%index
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    57
\newcommand{\conceptnoidx}[1]{\textbf{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    58
\newcommand{\concept}[1]{\conceptnoidx{#1}\index{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    59
\newcommand{\conceptidx}[2]{\conceptnoidx{#1}\index{#2}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    60
\newcommand{\indexed}[2]{#1\index{#2@\protect#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    61
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    62
\chardef\isachardoublequote=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    63
\chardef\isachardoublequoteopen=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    64
\chardef\isachardoublequoteclose=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    65
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    66
\renewcommand{\isacharbackquoteopen}{\isacharbackquote}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    67
\renewcommand{\isacharbackquoteclose}{\isacharbackquote}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    68
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    69
\hyphenation{Isa-belle}