I am not sure if this counts as a duplicate question, but I would like to have a fraction where the delimiter consists of two lines. I tried using the Tfrac solution at Fraction with doubled line and it works fine, until I use an ams environment in the denominator and get the following output
I assume it is related to the usage of ooalign. I tried to look up online how I should go about this, but I can't seem to find much.
My code is
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{xcolor}% http://ctan.org/pkg/xcolor
\newcommand{\Tfrac}[2]{%
\ooalign{%
$\genfrac{}{}{1.2pt}1{#1}{#2}$\cr%
$\color{white}\genfrac{}{}{.4pt}1{\phantom{#1}}{\phantom{#2}}$}%
}
$
\Tfrac
{
\phantom{test}
}
{
\mathtt{B} \oplus {\mathit{repeat}:, \mathtt{B?[int]; S'}}
, \leq ,
\mathtt{B \oplus}
\left{
\begin{aligned}
& \mathit{notify} : \mathtt{B![bool]; end} \
& \mathit{repeat}: S_4 \
& \mathit{stop}: \mathtt{end} \
\end{aligned}
\right}
}
$
Edit: To show the intended use, I would like to end up with something like this, but with double lined fractions instead.



ebproofpackage and it seems much more suited for what I want to achieve – Filu Dec 29 '23 at 15:13