Text FormattingItemized list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Itemized list

Post by mas »

I am trying to create an enumerated/itemized list which should look as below :

Code: Select all

  1. Item 1          3. Item 3 
  2. Item 2          4. Item 4
I vaguely recall of having seen a package for doing this and cannot find it now :-( Looked at various search terms and still came up with nothing.

Can someone point me the package which does this sort of thing?

Regards,

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Itemized list

Post by mas »

Sorry for replying to my own post. The package multienum does the above sort of list. But, I did not see a way of getting itemized list in the documentation.

If there are other possibilities, I am still interested to learn.

Regards,

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Itemized list

Post by frabjous »

Would it work just to do a list inside a multicolumn environment? I'd suggest using the multicol environment for balanced columns, which you could apply only to the list:

E.g.:

Code: Select all

\documentclass{article}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}

\lipsum[1-2] % generate text before list

\begin{multicols}{2}
\begin{enumerate}[noitemsep]
\item First item
\item Second item
\item Third item
\item Fourth item
\end{enumerate}
\end{multicols}

\lipsum[3-4] % generate text after list

\end{document}
This should work just as well with itemize rather than enumerate.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Itemized list

Post by gmedina »

Well, I was going to suggest exactly what frabjous did, so there's no point in duplicating suggestions.

However, if mas is still interested in using the features provided by the multienum package but being able to obtain itemized lists, the following idea could be useful. I borrowed some code from multienum.sty and defined a new command (\multiitem) that can be used to produce an itemized list.

The code with an example:

Code: Select all

\documentclass{article}
\usepackage{multienum}

\newcommand\multiitem{%
\renewcommand{\itemx}[1]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep%
  \parbox[t]{\remainx}{\raggedright ##1}\smallskip}
\renewcommand{\itemxx}[2]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{.5\remainxx}{\raggedright ##1}\hfill\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.5\remainxx}{\raggedright ##2}\smallskip}
\renewcommand{\itemxxx}[3]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep%
  \parbox[t]{.3333\remainxxx}{\raggedright ##1}\hfill\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep%
  \parbox[t]{0.3333\remainxxx}{\raggedright ##2}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep%
  \parbox[t]{0.3333\remainxxx}{\raggedright ##3}\smallskip}
\renewcommand{\itemxxxx}[4]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{.25\remainxxxx}{\raggedright ##1}\hfill\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##2}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##3}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##4}\smallskip}
\renewcommand{\itemxox}[2]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{\remainxox}{\raggedright ##1}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.3333\remainxxx}{\raggedright ##2}\smallskip}
\renewcommand{\itemxxo}[2]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.3333\remainxxx}{\raggedright ##1}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{\remainxox}{\raggedright ##2}\smallskip}
\renewcommand{\itemxoxx}[3]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{\remainxoxx}{\raggedright ##1}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##2}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##3}\smallskip}
  \renewcommand{\itemxxox}[3]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{.25\remainxxxx}{\raggedright ##1}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{\remainxoxx}{\raggedright ##2}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{0.25\remainxxxx}{\raggedright ##3}\smallskip}
\renewcommand{\itemxxxo}[3]{\parbox[t]%
  {\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{.25\remainxxxx}{\raggedright ##1}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{.25\remainxxxx}{\raggedright ##2}\hfill%
  \parbox[t]{\labelwidth}{\hfill$\bullet$}\hskip\labelsep
  \parbox[t]{\remainxoxx}{\raggedright ##3}\smallskip}
}

\begin{document}

A multi-itemized list:
\begin{multienumerate}
\multiitem
\mitemxx{first item.}{second item.}
\mitemxxxx{third item.}{fourth item.}{fifth item.}{sixth item.}
\end{multienumerate}

A multi-enumerated list:
\begin{multienumerate}
\mitemxx{first item.}{second item.}
\mitemxxxx{third item.}{fourth item.}{fifth item.}{sixth item.}
\end{multienumerate}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Itemized list

Post by mas »

Thanks for the suggestions.

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply