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

The problem comes when I try to use a '\' inside an item tag. In my code:

   \item   \pi\textsubscript{k} 
   \item   f\textsubscript{k}(x) \equiv ....

both \pi and and \equiv gives me an error.

How can I fix it? I'm new to LaTeX.

share|improve this question
You need the mathematical mode: $\pi$, i.e. use the $...$ as pair around your 'mathematical' command \pi – Christian Hupfer Mar 28 at 15:53
up vote 19 down vote accepted

By default the itemize environment will not be in math mode which you need to use \pi or \equiv. Try this:

   \item   $\pi_{k}$
   \item   $f_k(x) \equiv  ....$
share|improve this answer
Welcome to TeX.SE! – Mico Mar 28 at 15:56
Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – Thorsten Mar 28 at 15:58
@Thorsten: Now why on Earth would anyone think that a fuzzy grayed-out {} means "code"? – jamesqf Mar 28 at 17:58
@jamesqf Hover the mouse over the symbol and read the tooltip ... – Thorsten Mar 28 at 18:05
@jamesqf Quite a few programming languages (including TeX!) use braces as delimiters. – Lambda Fairy Mar 29 at 2:10

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.