# multicols not splitting a long list into columns

I have an enumerated list where each list item has an itemized sublist which I want to be displayed in 3 columns. Based on other questions/answers I decided the best way was to use the multicol package.

This works fine if the sub-list is small, 3 or fewer items, but if the list is longer than the number of columns I specify in the multicols tag, the list comes out as a single item list.


\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{enumerate}
\item Programming Languages:
\begin{multicols}{3}
\begin{itemize}
\item awk
\item bash
\item C
\item C++
\item java
\item perl
\item python
\end{itemize}
\end{multicols}
\item Operating Systems:
\begin{multicols}{3}
\begin{itemize}
\item Linux
\item Windows
\end{itemize}
\end{multicols}
\item Network Tools:
\end{enumerate}
\end{document}


I expect the output to look like this:


1. Programming Languages:
awk  bash  c
c++  java  perl
python
2. Operating Systems:
Linux  Windows
3. Network tools


With the columns aligned properly.

It may just be how my screenreader is reading the resulting pdf, but I see the list of languages in a single column and the operating systems beside each other.

• I added a screen shot of the output of your code. – Dr. Manuel Kuehner Sep 7 '17 at 18:45
• I do not understand your problem though ... what is wrong with the output? – Dr. Manuel Kuehner Sep 7 '17 at 18:50
• how you imagine that result should be? – Zarko Sep 7 '17 at 18:50
• @Zarko Same idea/question here ;) – Dr. Manuel Kuehner Sep 7 '17 at 18:51
• Maybe it is my screenreader's problem, but I picture the result to look something like: – dnraikes Sep 7 '17 at 18:55

The itemize environment is working vertically, not horizontally. Either reorder the \item statements (tedious) or use a better method, say tasks package, defining a \NewTasks environment and giving it the style=itemize option

\documentclass{article}
\usepackage{enumitem}

\setlist[enumerate,1]{wide=0pt}
\begin{document}

\begin{enumerate}
\item Programming Languages:
\begin{ComputerScience}(3)
\end{ComputerScience}
\item Operating Systems:
\begin{ComputerScience}(2)
\end{ComputerScience}
\item Network Tools:
\end{enumerate}

\end{document}


For a more basic approach, just use tasks and label=\textbullet.

\documentclass{article}
\begin{document}
\begin{enumerate}
\item Programming Languages:
\item Operating Systems:

• I would improve the layout loading enumitem and setting [wide=0pt] for enumerate. – Bernard Sep 7 '17 at 19:41