src/Doc/Codegen/document/style.sty
author haftmann
Wed Feb 22 20:24:50 2017 +0100 (2017-02-22)
changeset 65041 2525e680f94f
parent 48985 5386df44a037
child 69660 2bc2a8599369
permissions -rw-r--r--
basic documentation for computations
haftmann@20948
     1
haftmann@20948
     2
%% toc
haftmann@20948
     3
\newcommand{\tocentry}[1]{\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{#1}
haftmann@20948
     4
\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}
haftmann@20948
     5
haftmann@30227
     6
%% paragraphs
haftmann@30227
     7
\setlength{\parindent}{1em}
haftmann@30227
     8
haftmann@20948
     9
%% references
haftmann@20948
    10
\newcommand{\secref}[1]{\S\ref{#1}}
haftmann@39665
    11
\newcommand{\figref}[1]{figure~\ref{#1}}
haftmann@20948
    12
haftmann@29017
    13
%% logical markup
haftmann@29017
    14
\newcommand{\strong}[1]{{\bfseries {#1}}}
haftmann@29017
    15
\newcommand{\qn}[1]{\emph{#1}}
haftmann@29017
    16
haftmann@29017
    17
%% typographic conventions
haftmann@29017
    18
\newcommand{\qt}[1]{``{#1}''}
haftmann@38404
    19
\newcommand{\ditem}[1]{\item[\isastyletext #1]}
haftmann@29017
    20
haftmann@65041
    21
%% vectors
haftmann@65041
    22
\newcommand{\isactrlvec}[1]{\emph{$\overline{#1}$}}
haftmann@65041
    23
haftmann@30227
    24
%% quote environment
haftmann@29017
    25
\isakeeptag{quote}
haftmann@30227
    26
\renewenvironment{quote}
haftmann@30227
    27
  {\list{}{\leftmargin2em\rightmargin0pt}\parindent0pt\parskip0pt\item\relax}
haftmann@30227
    28
  {\endlist}
haftmann@30227
    29
\renewcommand{\isatagquote}{\begin{quote}}
haftmann@30227
    30
\renewcommand{\endisatagquote}{\end{quote}}
haftmann@30227
    31
\newcommand{\quotebreak}{\\[1.2ex]}
haftmann@29017
    32
haftmann@39664
    33
%% typewriter text
haftmann@39680
    34
\newenvironment{typewriter}{\renewcommand{\isastyletext}{}%
haftmann@39680
    35
\renewcommand{\isadigit}[1]{{##1}}%
haftmann@39665
    36
\parindent0pt%
haftmann@39746
    37
\makeatletter\isa@parindent0pt\makeatother%
haftmann@39676
    38
\isabellestyle{tt}\isastyle%
haftmann@39676
    39
\fontsize{9pt}{9pt}\selectfont}{}
haftmann@39664
    40
haftmann@39746
    41
\isakeeptag{quotetypewriter}
haftmann@39746
    42
\renewcommand{\isatagquotetypewriter}{\begin{quote}\begin{typewriter}}
haftmann@39746
    43
\renewcommand{\endisatagquotetypewriter}{\end{typewriter}\end{quote}}
haftmann@39746
    44
haftmann@39746
    45
\isakeeptag{quotett}
haftmann@39746
    46
\renewcommand{\isatagquotett}{\begin{quote}\isabellestyle{tt}\isastyle}
haftmann@39746
    47
\renewcommand{\endisatagquotett}{\end{quote}}
haftmann@29017
    48
haftmann@29017
    49
%% a trick
haftmann@29017
    50
\newcommand{\isasymSML}{SML}
haftmann@40351
    51
\newcommand{\isasymSMLdummy}{SML}
haftmann@29017
    52
haftmann@29017
    53
%% presentation
haftmann@20948
    54
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
haftmann@20948
    55
haftmann@30227
    56
%% character detail
haftmann@30227
    57
\renewcommand{\isadigit}[1]{\isamath{#1}}
haftmann@20948
    58
\binperiod
haftmann@29104
    59
\underscoreoff
haftmann@20948
    60
haftmann@30227
    61
%% format
haftmann@30227
    62
\pagestyle{headings}
haftmann@30227
    63
\isabellestyle{it}
haftmann@20948
    64
haftmann@29017
    65
%% ml reference
haftmann@20948
    66
\newenvironment{mldecls}{\par\noindent\begingroup\footnotesize\def\isanewline{\\}\begin{tabular}{l}}{\end{tabular}\smallskip\endgroup}
haftmann@20948
    67
haftmann@20948
    68
\isakeeptag{mlref}
haftmann@20948
    69
\renewcommand{\isatagmlref}{\subsection*{\makebox[0pt][r]{\fbox{\ML}~~}Reference}\begingroup\def\isastyletext{\rm}\small}
haftmann@20948
    70
\renewcommand{\endisatagmlref}{\endgroup}
haftmann@20948
    71
haftmann@29017
    72
\isabellestyle{it}
haftmann@20948
    73
haftmann@20948
    74
haftmann@20948
    75
%%% Local Variables: 
haftmann@20948
    76
%%% mode: latex
haftmann@20948
    77
%%% TeX-master: "implementation"
haftmann@20948
    78
%%% End: