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.

The problem:

I get an undefined control sequence error when trying to define the bullet type of the second-level items. I'm using:

\renewcommand{\labelitemii}{$\centerdot$}

Notes:

  • I've read in some pages (e.g. Latex symbols) that \centerdots is a valid symbol.

  • My document compiles fine without that line. It also works fine if I use another type, like \Rightarrow or \cdot. For example

    \renewcommand{\labelitemii}{$\cdot$}
    
  • The error message is:

    ! Undefined control sequence.
    <recently read> \centerdot
    l.114 \item C
    ontienen los operandos vectoriales en máquinas de registros
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., `\hobx'), type `I' and the correct
    spelling (e.g., `I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    
  • The line which the first error points to is:

    \begin{itemize} % first level
       \item \textbf{Registros Vectoriales}
       \begin{itemize} % second level
           \item Contienen los operandos vectoriales en máquinas de registros % ERROR
       ...
    
share|improve this question
1  
Welcome to TeX.SX! –  Andrew Swann May 27 at 8:47

2 Answers 2

up vote 4 down vote accepted

I'd avoid loading mathabx just in order to get a square bullet:

\documentclass{article}
\usepackage{enumitem}

\DeclareRobustCommand{\sqbullet}{%
  \raisebox{.3ex}{\rule{.3em}{.3em}}%
}

\setlist[itemize,2]{label=\sqbullet} % similar to \renewcommand{\labelitemii}{\sqbullet}

\begin{document}

\begin{itemize} % first level
   \item \textbf{Registros Vectoriales}
   \begin{itemize} % second level
       \item Contienen los operandos vectoriales
   \end{itemize}
\end{itemize}

\end{document}

enter image description here

share|improve this answer

You need to do \usepackage{amssymb} or \usepackage{mathabx} in order to use \centerdot. Note that the latter will redefine a lot of other mathematical symbols.

share|improve this answer

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.