doc-src/IsarImplementation/style.sty
author huffman
Fri, 30 Mar 2012 15:24:24 +0200
changeset 47224 773fe2754b8c
parent 45646 02afa20cf397
permissions -rw-r--r--
add simp rules for eve/odd on numerals
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     1
%% toc
18554
bff7a1466fe4 more stuff;
wenzelm
parents: 18537
diff changeset
     2
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
bff7a1466fe4 more stuff;
wenzelm
parents: 18537
diff changeset
     3
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     4
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     5
%% references
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     6
\newcommand{\secref}[1]{\S\ref{#1}}
20470
c839b38a1f32 more on variables;
wenzelm
parents: 20451
diff changeset
     7
\newcommand{\chref}[1]{chapter~\ref{#1}}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     8
\newcommand{\figref}[1]{figure~\ref{#1}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
     9
20497
wenzelm
parents: 20491
diff changeset
    10
%% math
wenzelm
parents: 20491
diff changeset
    11
\newcommand{\text}[1]{\mbox{#1}}
wenzelm
parents: 20491
diff changeset
    12
\newcommand{\isasymvartheta}{\isamath{\theta}}
29776
8f2eb202ae94 replaced \overline by \vec;
wenzelm
parents: 29763
diff changeset
    13
\newcommand{\isactrlvec}[1]{\emph{$\vec{#1}$}}
29763
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    14
\newcommand{\isactrlBG}{\isacharbackquoteopen}
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    15
\newcommand{\isactrlEN}{\isacharbackquoteclose}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    16
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    17
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    18
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    19
\pagestyle{headings}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    20
\sloppy
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    21
\binperiod
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    22
39861
b8d89db3e238 use continental paragraph style, which works better with mixture of (in)formal text;
wenzelm
parents: 39830
diff changeset
    23
\parindent 0pt\parskip 0.5ex
b8d89db3e238 use continental paragraph style, which works better with mixture of (in)formal text;
wenzelm
parents: 39830
diff changeset
    24
20451
27ea2ba48fa3 misc cleanup;
wenzelm
parents: 20448
diff changeset
    25
\renewcommand{\isadigit}[1]{\isamath{#1}}
27ea2ba48fa3 misc cleanup;
wenzelm
parents: 20448
diff changeset
    26
40400
db905e068a60 more literal appearance of antiqopen/antiqclose;
wenzelm
parents: 39861
diff changeset
    27
\renewcommand{\isaantiqopen}{\isasymlbrace}
db905e068a60 more literal appearance of antiqopen/antiqclose;
wenzelm
parents: 39861
diff changeset
    28
\renewcommand{\isaantiqclose}{\isasymrbrace}
db905e068a60 more literal appearance of antiqopen/antiqclose;
wenzelm
parents: 39861
diff changeset
    29
20547
wenzelm
parents: 20497
diff changeset
    30
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    31
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    32
\isafoldtag{FIXME}
39830
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    33
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    34
\isakeeptag{mlref}
39830
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    35
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{ML}~~}Reference}}
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    36
\renewcommand{\endisatagmlref}{}
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    37
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    38
\isakeeptag{mlantiq}
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    39
\renewcommand{\isatagmlantiq}{\subsection*{\makebox[0pt][r]{\fbox{ML}~~}Antiquotations}}
7c501d7f1e45 clarified tag markup;
wenzelm
parents: 39828
diff changeset
    40
\renewcommand{\endisatagmlantiq}{}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    41
34923
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    42
\isakeeptag{mlex}
39825
f9066b94bf07 eliminated fancy \ML logo for the sake of simpler source text (less dependence on LaTeX);
wenzelm
parents: 34923
diff changeset
    43
\renewcommand{\isatagmlex}{\subsection*{\makebox[0pt][r]{\fbox{ML}~~}Examples}}
34923
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    44
\renewcommand{\endisatagmlex}{}
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    45
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    46
\renewcommand{\isatagML}{\begingroup\isabellestyle{default}\isastyle\def\isadigit##1{##1}}
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    47
\renewcommand{\endisatagML}{\endgroup}
e59915c6a552 basic setup for ML examples: tag "mlex";
wenzelm
parents: 34920
diff changeset
    48
22868
wenzelm
parents: 22289
diff changeset
    49
\newcommand{\minorcmd}[1]{{\sf #1}}
wenzelm
parents: 22289
diff changeset
    50
\newcommand{\isasymtype}{\minorcmd{type}}
wenzelm
parents: 22289
diff changeset
    51
\newcommand{\isasymval}{\minorcmd{val}}
wenzelm
parents: 22289
diff changeset
    52
29763
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    53
\newcommand{\isasymFIX}{\isakeyword{fix}}
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    54
\newcommand{\isasymASSUME}{\isakeyword{assume}}
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    55
\newcommand{\isasymDEFINE}{\isakeyword{define}}
c0f2c8424848 some more Isar macros;
wenzelm
parents: 29758
diff changeset
    56
\newcommand{\isasymNOTE}{\isakeyword{note}}
20491
wenzelm
parents: 20478
diff changeset
    57
\newcommand{\isasymGUESS}{\isakeyword{guess}}
wenzelm
parents: 20478
diff changeset
    58
\newcommand{\isasymOBTAIN}{\isakeyword{obtain}}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    59
\newcommand{\isasymTHEORY}{\isakeyword{theory}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    60
\newcommand{\isasymUSES}{\isakeyword{uses}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    61
\newcommand{\isasymEND}{\isakeyword{end}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    62
\newcommand{\isasymCONSTS}{\isakeyword{consts}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    63
\newcommand{\isasymDEFS}{\isakeyword{defs}}
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    64
\newcommand{\isasymTHEOREM}{\isakeyword{theorem}}
20024
wenzelm
parents: 18554
diff changeset
    65
\newcommand{\isasymDEFINITION}{\isakeyword{definition}}
18537
2681f9e34390 "The Isabelle/Isar Implementation" manual;
wenzelm
parents:
diff changeset
    66
45646
02afa20cf397 refined "literal" document style, with some correspondence to actual text source;
wenzelm
parents: 42666
diff changeset
    67
\isabellestyle{literal}
42653
d25bf6996368 treat underscore as in IsarRef;
wenzelm
parents: 40400
diff changeset
    68
42664
ae7707198403 simplified rail configuration;
wenzelm
parents: 42653
diff changeset
    69
\railtermfont{\isabellestyle{tt}}
ae7707198403 simplified rail configuration;
wenzelm
parents: 42653
diff changeset
    70
\railnontermfont{\isabellestyle{itunderscore}}
ae7707198403 simplified rail configuration;
wenzelm
parents: 42653
diff changeset
    71
\railnamefont{\isabellestyle{itunderscore}}