1

I use bussproofs all the time, but here's a scenario that I have yet to solve. I want to typeset the following in such a way that the "in [CATEGORY]" additions to the right, aslign with the baselines of the bussproofs tree. (Of course I don't want to just put the texts into the 'tree', that would defeat the purpose.) Ideally, the texts would additionally be right-aligned.

This example just has two bussproof trees aligned side by side, but the double line vs no line difference makes them have different heights. (And, other typographical things could worsen the situation.)

Does anybody have some cool trick to offer?

\documentclass{article}
\usepackage{amsmath}
\usepackage{bussproofs}

\begin{document}

\begin{align*}
  \AxiomC{$\mathsf{Forget}(A) \xrightarrow{f} Y$}
  \doubleLine
  \UnaryInfC{$A \xrightarrow{g} \nabla Y$}
  \DisplayProof
  \AxiomC{$\textrm{in \textbf{Set}}$}
  \noLine
  \UnaryInfC{$\textrm{in $D$-\textbf{Set}}$}
  \DisplayProof
\end{align*}

\end{document}
David Carlisle
  • 757,742
  • 1
    please provide a small complete document that produces the image shown, so people can test answers – David Carlisle Jun 12 '18 at 19:36
  • Ah, I already found 1 solution what works reasonably: adding the texts with \rlap{\quad\textrm{...}} – Kelley van Evert Jun 12 '18 at 19:45
  • The align doesn't really matter here, of course. 2) The next column doesn't fix, because the problem is that bussproof trees, with resp. without (double)lines, are of different heights. 3) Now the code should be a complete working document.
  • – Kelley van Evert Jun 12 '18 at 20:28
  • yes, sorry I deleted that comment I was thrown by the mis use of align, which should just be \[ if it is a single row with no & as here, – David Carlisle Jun 12 '18 at 20:38