56

When creating a nested itemize environment in LaTeX as follows:

\begin{itemize} 
\item one \dots{}
     \begin{itemize} 
        \item Language Models
        \item Vector Space Models
     \end{itemize}
\item two \dots{}
\item three \dots{}
\end{itemize}

I have tried to change the inner item characters by adding the following line after line 3

\renewcommand{\labelitemi}{$\star$}

Nothing changes!

However, if it is only one "not nested", it works just fine as in the following:

\begin{itemize} 
\renewcommand{\labelitemi}{$\star$}
\item one \dots{}
\item two \dots{}
\item three \dots{}
\end{itemize}

Many thanks in advance.

0
64

Without any package, the correct command to be redefined is \labelitemii (note the second i).

\documentclass{article}

\renewcommand{\labelitemii}{$\star$}

\begin{document}

\begin{itemize} 
\item one \dots{}
     \begin{itemize} 
        \item Language Models
        \item Vector Space Models
     \end{itemize}
\item two \dots{}
\item three \dots{}
\end{itemize}

\end{document}

enter image description here

2
  • 1
    Stating the obvious : the number of i denotes the item level. i = first level, ii = second level, etc. – Skippy le Grand Gourou Dec 12 '17 at 9:10
  • 1
    Not "etc." unfortunately - it seems to stop at iii. No iiii: ! LaTeX Error: \labelitemiiii undefined. :-/ – Sixtyfive Jan 4 '20 at 16:48
43

If you use the enumitem package you can easily reset the label via [label=$\star$] option.

If this is the default behavior you want for nested lists you can use \setlist[itemize,2]{label={$\star$}} to automatically set the 2nd level itemize lists to use the \star.

enter image description here

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{itemize} 
\item one \dots{}
     \begin{itemize}[label=$\star$]
        \item Language Models
        \item Vector Space Models
     \end{itemize}
\item two \dots{}
\item three \dots{}
\end{itemize}
\end{document}
3

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.