Skip to content

Commit 9200f4c

Browse files
authored
Merge pull request #262 from mathjax/v3.1-bussproofs
Documentation of the bussproofs package.
2 parents 6a54678 + 66537a3 commit 9200f4c

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

input/tex/extensions/bussproofs.rst

+39-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,46 @@
44
bussproofs
55
##########
66

7-
The `bussproofs` extension defines ...
7+
The `bussproofs` extension implements the ``bussproofs`` style package from
8+
LaTeX. See the `Ctan page <https://www.ctan.org/pkg/bussproofs>`__ for
9+
more information and documentation of `bussproofs`.
810

9-
[description here]
11+
Note that there are a couple of important differences to the use of the actual
12+
package: Proofs always have to be in a `prooftree` environment, i.e., inference
13+
macros are only recognised if they are enclosed in `\begin{prooftree}` and
14+
`\end{prooftree}`. Consequently the `\DisplayProof` command is not necessary.
15+
16+
Unlike in the LaTeX package, options for abbreviated inference rule macros do
17+
not have to be manually set. All abbreviated macros are directly available. Thus
18+
commands like `\BinaryInfC` and `\BIC` can be used immediately and
19+
interchangeably.
20+
21+
22+
For example
23+
24+
.. code-block:: latex
25+
26+
\begin{prooftree}
27+
\AxiomC{}
28+
\RightLabel{Hyp$^{1}$}
29+
\UnaryInfC{$P$}
30+
\AXC{$P\to Q$}
31+
\RL{$\to_E$}
32+
\BIC{$Q^2$}
33+
\AXC{$Q\to R$}
34+
\RL{$\to_E$}
35+
\BIC{$R$}
36+
\AXC{$Q$}
37+
\RL{Rit$^2$}
38+
\UIC{$Q$}
39+
\RL{$\wedge_I$}
40+
\BIC{$Q\wedge R$}
41+
\RL{$\to_I$$^1$}
42+
\UIC{$P\to Q\wedge R$}
43+
\end{prooftree}
44+
45+
Also note that the `bussproofs` commands for sequent calculus derivations are
46+
not yet fully implemented.
1047

1148
This extension is **not** loaded by the `autoload` extension is used.
1249
To load the `bussproofs` extension explicitly, add

0 commit comments

Comments
 (0)