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 have made a list of questions and subquestions using nested \itemize commands, like this:

\documentclass[11pt]{report}
\usepackage[british]{babel}
\usepackage{enumitem}

\begin{document}

\begin{itemize}
\item{First item}
\begin{itemize}
\item{First subitem}
\item{Second subitem}
\item{Third subitem}
\end{itemize}
\item{Second item}
\item{Third item}
\end{itemize}

\end{document}

Now this works fine for me, but I am just wondering, can you also create bullets when using \subitem instead of a nested list, like below? I do get an indentation at my subquestions, but no bullets. I have not found anything on this topic, but maybe it is just me.

\begin{itemize}
\item{First item}
\subitem{First subitem}
\subitem{Second subitem}
\subitem{Third subitem}
\item{Second item}
\item{Third item}
\end{itemize}
share|improve this question
6  
Don't use \subitem for this purpose. It's defined only for working in an index. –  egreg Nov 25 '12 at 15:07
    
I am having the same problem. What is the suggested alternative? Using a nested list, particularly when I only need one sub-item, is a waste of space –  Jeff Dec 4 '12 at 22:13
    
Found package outlines, suits my needs... Hopefully this will help others –  Jeff Dec 4 '12 at 22:41
    
See tex.stackexchange.com/questions/32182/… –  Fran Jan 17 '13 at 4:23
add comment

1 Answer 1

While you should not use \subitem, you can use a different name like \SubItem to achieve the desired results with some small hackery. For comparison purposes I put the two lists (one on the right uses \SubItem) in a minipage:

enter image description here

Warning:

Code:

\documentclass[11pt]{report}
\usepackage[british]{babel}
\usepackage{enumitem}

\newlist{SubItemList}{itemize}{1}
\setlist[SubItemList]{label={$-$}}

\let\OldItem\item
\newcommand{\SubItemStart}[1]{%
    \let\item\SubItemEnd
    \begin{SubItemList}[resume]%
        \OldItem #1%
}
\newcommand{\SubItemMiddle}[1]{%
    \OldItem #1%
}
\newcommand{\SubItemEnd}[1]{%
    \end{SubItemList}%
    \let\item\OldItem
    \item #1%
}
\newcommand*{\SubItem}[1]{%
    \let\SubItem\SubItemMiddle%
    \SubItemStart{#1}%
}%

\begin{document}
\begin{minipage}[t]{0.4\linewidth}
    \begin{itemize}
     \item{First item}
      \begin{itemize}
        \item{First subitem}
        \item{Second subitem}
        \item{Third subitem}
      \end{itemize}
      \item{Second item}
      \item{Third item}
    \end{itemize}
\end{minipage}
%
\begin{minipage}[t]{0.4\linewidth}
    \begin{itemize}
      \item{First item}
      \SubItem{First subitem}
      \SubItem{Second subitem}
      \SubItem{Third subitem}
      \item{Second item}
      \item{Third item}
    \end{itemize}
\end{minipage}
\end{document}
share|improve this answer
1  
I'd never recommend doing it this way. A nested list is the way to go. –  egreg Nov 25 '12 at 22:36
add comment

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.