Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
3  
What you want is wrong: the fraction is not sitting on the baseline. –  egreg Jun 30 '12 at 17:35
add comment

2 Answers

up vote 2 down vote accepted

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

share|improve this answer
add comment

If you really want to do this, you could try

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

but the result looks awful. Keep in mind that 'TeX knows more about typesetting than many authors do' (Lamport), so it probably has the comma in the best place by default.

share|improve this answer
add comment

Your Answer

 
discard

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.