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

If I try to use \cdot in my .tex document (moderncv) then I'm getting error like this:

! Missing $ inserted.
(inserted text)

This line have this structure:

\tlcventry[orange]{year}{0}{DESC_1}{\href{http://DESC_1}{DESC_1} \cdot \href{http://DESC_1}{DESC_1}}{DESC_1}{ \scriptsize{\underline{\textbf{DESC_1}}} }{DESC_COMMENT}

When I remove \cdot from it, then my document compiles sucessfully.

share|improve this question
as the error message says, \cdot is a math command, you have to use it in math mode: $\cdot$ – Juri Robl Sep 2 '12 at 11:08
It seems you need no math mode here. You can also use \dots without switching in mathmode. – Kurt Sep 2 '12 at 14:31
@Kurt \dots is not the same as $\cdot$. \dots produces an ellipsis, i.e. three consecutive dots on the baseline, while $\cdot$ produce a single dot that is centered vertically. The equivalent of \cdot in text mode is \textbullet. – Xavier Sep 7 '12 at 12:50
@Xavier: you are right. I oversaw the missing s. – Kurt Sep 7 '12 at 13:20
up vote 6 down vote accepted

The command \cdot works only in mathmode so type $\cdot$. By the way the error message gave you the correct hint.

\tlcventry[orange]{year}{0}{DESC_1}{\href{http://DESC_1}{DESC_1}$\cdot$ \href{http://DESC_1}{DESC_1}}{DESC_1}{ \scriptsize{\underline{\textbf{DESC_1}}} }{DESC_COMMENT}
share|improve this answer

As others have said, \cdot only works in math mode, so you can write $\cdot$.

However, a more elegant solution in my opinion is to use \textbullet, which is the equivalent of \cdot but for text mode.

share|improve this answer
\textbullet isn't exactly the equivalent. It gives a different shape, especially in moderncv: for example, under the banking style, it's redefined to be a filled square. – wchargin Nov 23 '14 at 19:51

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.