Debian Codegraph @

texmf-dist/doc/latex/lkproof/lkproof-doc.tex

raw
1 \documentclass[pagesize=auto, fontsize=12pt, DIV=9, parskip=half]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{lmodern}
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \usepackage[svgnames]{xcolor}
9 \usepackage{proof}
10 \usepackage{microtype}
11 \usepackage{hyperref}
12
13 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
14 \newcommand*{\pkg}[1]{\textsf{#1}}
15 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
16 \makeatletter
17 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
18 \makeatother
19 \newcommand*{\opt}[1]{\texttt{#1}}
20 \newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
21 \newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
22 \newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}}
23
24 \addtokomafont{title}{\rmfamily}
25 \addtokomafont{descriptionlabel}{\mdseries}
26
27 \title{The \pkg{proof} package\thanks{This manual corresponds to \pkg{proof.sty}~v3.1 (for both \LaTeX\,2.09 and \LaTeXe), dated~Nov 24, 2005.}}
28 \subtitle{Proof figure macros}
29 \author{Makoto Tatsuta\thanks{\mail{[email protected]}}}
30 \date{Nov 24, 2005}
31
32
33 \begin{document}
34
35 \righthyphenmin=2
36
37 \maketitle
38
39 \section{Usage:}
40
41 In \cmd{\documentstyle}, specify an optional style `\opt{proof}', say,\\
42 \verb+\documentstyle[proof]{article}+.
43
44 The following macros are available:
45
46 In all the following macros, all the arguments such as
47 \meta{Lowers} and \meta{Uppers} are processed in math mode.
48 %
49 \begin{description}
50 \item[\cmd{\infer}\marg{Lower}\marg{Uppers}]
51 draws an inference.
52
53 Use \verb+&+ in \meta{Uppers} to delimit upper formulae.
54 \meta{Uppers} consists more than 0 formulae.
55
56 \cmd{\infer} returns \verb+\hbox{ ... }+ or \verb+\vbox{ ... }+ and
57 sets \cmd{\@LeftOffset} and \cmd{\@RightOffset} globally.
58
59 \item[\cmd{\infer}\oarg{Label}\marg{Lower}\marg{Uppers}]
60 draws an inference labeled with~\meta{Label}.
61
62 \item[\cmd{\infer*}\marg{Lower}\marg{Uppers}]
63 draws a many step deduction.
64
65 \item[\cmd{\infer*}\oarg{Label}\marg{Lower}\marg{Uppers}]
66 draws a many step deduction labeled with~\meta{Label}.
67
68 \item[\cmd{\infer=}\marg{Lower}\marg{Uppers}]
69 draws a double-ruled deduction.
70
71 \item[\cmd{\infer=}\oarg{Label}\marg{Lower}\marg{Uppers}]
72 \begingroup
73 \spaceskip=\fontdimen2\font plus \fontdimen3\font minus 1.2\fontdimen4\font
74 draws a double-ruled deduction labeled with~\meta{Label}.
75 \endgroup
76
77 \item[\cmd{\deduce}\marg{Lower}\marg{Uppers}]
78 draws an inference without a rule.
79
80 \item[\cmd{\deduce}\oarg{Proof}\marg{Lower}\marg{Uppers}]
81 draws a many step deduction with a proof~name.
82 \end{description}
83
84
85 \section{Example:}
86
87 If you want to write
88
89 \medskip
90 \infer{E}{
91 A
92 &
93 \infer{D}{B & C}
94 }
95
96 use
97 %
98 \begin{verbatim}
99 \infer{E}{
100 A
101 &
102 \infer{D}{B & C}
103 }
104 \end{verbatim}
105
106 \end{document}