2

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?

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.