[Tex/LaTex] Comma between large functions parameters

math-mode

My problem is actually quite simple. I have fractions as function parameters, but the delimiting comma doesn't behave properly (i.e. not as I want it to behave). I want the comma to be placed as if the fraction was sitting on the baseline, meaning the comma should be lowered down.

The code looks like this:

B\!\left(\tfrac{n+1}{2}, 2\right)

Actually

B\!\left(\tfrac{n+1}{2}_, 2\right)

looks pretty much how I want it to look like, but then the comma gets too small.

Is there some "proper" way to accomplish this?

Best Answer

There is a way. But the result is simply terrible:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$B\!\left(\tfrac{n+1}
                {\ooalign{%
                   $\scriptstyle\hphantom{n+1}$\cr
                   \hidewidth$\scriptstyle2$\hidewidth}%
                 \smash{\rlap{,}}}\,2\right)$
\end{document}

enter image description here

Here's how I'd typeset the whole thing, in descending order of preference:

$B((n+1)/2,2)$

$B\bigl((n+1)/2,2\bigr)$

$B(\tfrac{n+1}{2},2)$

enter image description here