This is my first post so please go easy on me.

I am writing a vector using the bracket notation as shown below:

     \vec{u} = \left\langle \frac{1}{10} , \frac{1}{3} \right\rangle

Fraction Valued Vector, comma centered vertically

The comma is typeset in the center of the fractions in line with the Vinculum (division line), and I'm wondering if there is a way to put it at the bottom in line with the denominators?

Or, is this the proper typesetting notation, and I should just be okay with where it is at?

  • Welcome! You can move the comma down, e.g. with \[\vec{u} = \left\langle \frac{1}{10} \genfrac{}{}{0pt}{}{}{,} \frac{1}{3} \right\rangle\] (which requires amsmath), but I personally wouldn't do that. – user194703 Dec 7 '19 at 19:23
  • Thanks for the comment, that works perfectly! Outside of personal preference, is there reason I should choose NOT to typeset the comma this way? – Shaun Dec 7 '19 at 19:32
  • 2
    Well, this depends on whom you ask. There are some users who are very religious about these things (and go as far as proclaiming their conventions are "correct" while others are "incorrect"). I personally think that if you have a good reason why you want to do that, go for it. However, for me the comma separates the two fractions, and it is at the right place in you screen shot. Please also note that the braket package may make it more convenient to typeset such bra-kets. – user194703 Dec 7 '19 at 19:36
  • Thank you for your suggestion, and your explanation! I don't think that the braket package is a good fit for this particular document, but I appreciate the suggestion. I think that I will post an answer to this question based on your solution and how I intend to implement it into my code. Thank you again for your help! – Shaun Dec 7 '19 at 19:54
  • 1
    @Shaun Just think to \left\langle\frac{1}{10},1\right\rangle; where would you put the comma? Midway? – egreg Dec 7 '19 at 20:42

As User Schrödinger's cat suggested, including \includepackage{amsmath} in the preamble, the following code produces the desired result:

\[\vec{u} = \left\langle \frac{1}{10} \genfrac{}{}{0pt}{}{}{,} \frac{1}{3} \right\rangle\]

For my implementation, I've defined a new macro as a shortcut in the preamble as:


Then the final code produces:

     \vec{u} = \left\langle \frac{1}{10} \fraccomma \frac{1}{3} \right\rangle

Comma in line with denominators


However, as User egreg also pointed out, when implementing this solution we should also consider that it might not be appropriate if not all of the terms are fractions. In that event, then a more appropriate typesetting would be to just leave the comma in it's default position: \vec{u} = \left\langle \frac{1}{10} , 3 \right\rangle

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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