TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

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

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

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

share|improve this question
10  
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:

\begin{itemize}
   \item   $\pi_{k}$
   \item   $f_k(x) \equiv  ....$
\end{itemize}
share|improve this answer
    
Welcome to TeX.SE! – Mico Mar 28 at 15:56
4  
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
3  
@jamesqf Hover the mouse over the symbol and read the tooltip ... – Thorsten Mar 28 at 18:05
1  
@jamesqf Quite a few programming languages (including TeX!) use braces as delimiters. – Lambda Fairy Mar 29 at 2:10

Your Answer

 
discard

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.