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


 $$\left( a_1, a_2, \cdots a_m \right) \mapsto a_1 + \frac{1}{a_2 + \frac{1}{\cdots + \frac{1}{a_m}}}$$

I want to change the cdots into three dots like the following

space dot
space space dot

(Can't find the words to describe this in English.)

Question: Is there an easy way to do this?

share|improve this question
The word is probably 'diagonal'. – N.N. Aug 27 '11 at 11:23
What do you mean with "magnified of course"? – N.N. Aug 27 '11 at 12:04
Removed that to prevent Babylonian type of comms. ;-) – nilo de roock Aug 27 '11 at 13:41
up vote 3 down vote accepted
  1. Use \ddots for diagonal dots (see §3.12. "Punctuation" in Short Math Guide for LaTeX).

  2. Also consider to use \cfrac for continued fractions (see §5.4. "Continued fractions" in Short Math Guide for LaTeX).


\usepackage{amsmath}% For \cfrac in the second example


\[% Here I've just changed the second occurence of \cdots to \vdots
\left( a_1, a_2, \cdots a_m \right) \mapsto a_1 + \frac{1}{a_2 + \frac{1}{\ddots \, + \frac{1}{a_m}}}

\[% \cfrac instead of \frac . This looks much better!
\left( a_1, a_2, \cdots a_m \right) \mapsto a_1 + \cfrac{1}{a_2 + \cfrac{1}{\ddots \, + \cfrac{1}{a_m}}}


Equations with diagonal dots

share|improve this answer
Consider using the amsmath command \cfrac for continued fractions. – You Aug 27 '11 at 12:03
@You Great advice! I've updated my answer accordingly. – N.N. Aug 27 '11 at 12:18
Considering I leech MathJax ( I use Blogger ) which slows down MathJax a bit, adding amsmath makes it really slow. But I'll definitely use cfrac when producing pdf documents. – nilo de roock Aug 27 '11 at 13:36
The /ddots was what I was looking for. Thank you. – nilo de roock Aug 27 '11 at 13:37


\left( a_1, a_2, \cdots a_m \right) \mapsto a_1 
   + \dfrac{1}{a_2 
   + \dfrac{1}{\mkern10mu\raisebox{-0.25\height}{$\ddots$} 
   + \dfrac{1}{a_m}}} 


enter image description here

  • \dfrac is the same as displaystyle\frac
  • \mkern reserves space in math units (1mu=1/18 em)
  • \raisebox is self explanatory
share|improve this answer
Interesting. Could you please include what you're doing here? E.g. a short description of \dfrac, \mkern and \raisebox? – N.N. Aug 27 '11 at 11:15
Maybe Herbert thought I could not use ddots ? - I wasn't even aware of the command before today. - Thanks for answering. – nilo de roock Aug 27 '11 at 13:40

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.