TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to type the product of n variables, $x_1\cdot\ldots\cdot x_n$. Although maybe this is semantically the right way (like it is for the sum), it doesn't look very well. What should be, typographically, a better way to do it?

For example:

Just the ldots as in $x_1\ldots x_n$ is confusing when there are going to be also lists of the variables separated by commas in nearby sentences.

With \dotsc like in $x_1\dotsc x_n$ maybe, but is there a better idea?

share|improve this question
This web site doesn't parse LaTeX? That would be funny! – Mlazhinka Shung Gronzalez LeWy Aug 5 '10 at 20:37
It was removed since it interferes with displaying raw LaTeX code (which we need to see more often than we need to see rendered mathematics). See meta. – ShreevatsaR Aug 5 '10 at 20:45
up vote 22 down vote accepted

Use \cdots. (See also: \vdots and \ddots.)


Actually, I just read in the «Short Math Guide for LaTeX» by the AMS that:

  • \dotsc is for dots with commas,
  • \dotsb is for dots with binary operators,
  • \dotsm is for multiplication dots,
  • \dotsi is for dots with integrals,
  • \dotso is for other dots.

So, \cdots and \ldots are commonly used but the AMS convention is to use the more semantic commands.

share|improve this answer
So, \dotsm then. – Mlazhinka Shung Gronzalez LeWy Aug 5 '10 at 20:37

Or you can use \dots which can be used both inside and outside of math-mode.

share|improve this answer

Your Answer


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.