Take the 2-minute tour ×
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.

I am trying to add the character "alpha" in the title of a list like this:

  \item \alpha value

so that I see the bullet, a alpha letter and the word "value", all in the same row.

Even though I see the result I want in the preview, I have this errors:

Missing $ inserted
Missing } inserted
Extra }, or forgotten \endgroup

I don't know what I am doing wrong, any tips?

share|improve this question
    
You can use \item[\textbullet $\alpha$ value] maybe. Note that \alpha needs to be in mathmode, within $$. –  azetina Apr 4 at 16:01
    
"\item $\alpha$ value" worked, thanks a lot! –  Anthony Apr 4 at 16:05

1 Answer 1

up vote 5 down vote accepted

The error

Missing $ inserted
Missing } inserted
Extra }, or forgotten \endgroup

is due to the fact that \alpha needs to be in mathmode; hence, within $<math content>$. Therefore, using

\item $\alpha$ value

should fix the issue.

The following is just a suggestion to look into. It is not fully optimized.

enter image description here

\documentclass[letterpaper]{article}
\usepackage{enumitem}
\usepackage{calc}
\usepackage{lipsum}
\newlength{\alphaitemize}
\setlength{\alphaitemize}{\widthof{\textbullet~$\alpha$ value}}
\begin{document}
\lipsum[1-2]
    \begin{itemize}[label=\textbullet~$\alpha$ value:,itemindent=\alphaitemize]
        \item 23
        \item 24
    \end{itemize}
    \begin{itemize}
        \item $\alpha$ value: 23
        \item $\alpha$ value: 23
    \end{itemize}
\lipsum[1-2]
\end{document}

Note that changed the labeling of the itemization to be more effective.

share|improve this answer
    
it did, thanks! –  Anthony Apr 4 at 16:14

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.