TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using bussproofs package to provide some type proofs. According to bussproofs manual, it is impossible to use prooftree inside math mode. However, I would like to insert prooftree in the cases environment. If there are any tricks I can do to overcome this?

The minimal working example:


I want the commented section to compile as well.

share|improve this question
Welcome to TeX.sx! – Peter Jansson Mar 11 '13 at 20:20
up vote 1 down vote accepted

While using bussproofs may simplify logical proofs as a standalone environment, you have to treat it with care when things become more complex. In general, if you're able to box and store the content, you can always use the box inside your more complex structure.

However, an alternative is to avoid the bussproofs package altogether, and stick to traditional array constructions to match your logic expressions:

enter image description here

\usepackage{amssymb,amsmath}% http://ctan.org/pkg/{amssymb,amsmath}
\usepackage{bussproofs,varwidth}% http://ctan.org/pkg/{bussproofs,varwidth}
\begin{lrbox}{\mypt}% Store prooftree in \mypt

  \epsilon =
      \DisplayProof & \text{ if $x$} \\
      \usebox{\mypt} & \text{ if $y$}


  \epsilon = \left\{\begin{array}{@{}l@{}l@{}}
    \dfrac{~\alpha~}{\beta} & \text{ if $x$} \\
    \dfrac{~\alpha \qquad \beta~}{\gamma} & \text{ if $y$}

At this point it's a case of playing around with the spacing, although the output is very similar in structure to that of bussproofs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.