2 minute read

In this post we will learn how to use itemized lists in Latex.

Unordered List

Unordered lists are created using the \begin{itemize}...\end{itemize} environment. Normally, an item is added using the \item command inside the environment.

\begin{itemize}
    \item first item
    \item second item
\end{itemize}

Usually, the command \item creates a bullet point list. If you want to use different notations, you need to use [] to customize the target notation.

\begin{itemize}
    \item[Q1.] first item
    \item[Q2.] second item
\end{itemize}

Ordered List

Ordered list can be created using the \begin{enumerate}...\end{enumerate} environment. This simply adds $1,2,3,\dots$ to the items.

However, you can use [i.] with the environment to convert the number to appear as Roman numbers.

\usepackage{enumerate}
\begin{enumerate}[i.]
    \item first item
    \item second item
\end{enumerate}

To-do Items

Combining fontawesome and itemize

This is the best way to create and customize to-do lists. You can check the fontawesome handbook for more symbols.

\usepackage{fontawesome}
\begin{itemize}
    \item[\faCheckSquareO] This is done
    \item[\faSquareO] To be done 
    \item[\faSquareO] To be done 
\end{itemize}

Here are some other example icons:

\faCalendarCheckO, \faCalendarPlusO, \faCalendarMinusO, 
\faCheck, \faCheckCircleO, \faClone, 
\faClose, \faCut, \faEdit, \faMailForward, 
\faPencilSquareO, \faRemove

Creating new todolist environment

Based on the thread in StackExchange: How to create checkbox todo list?, here is another way to create such lists.

% enumitem clashes with enumerate
\usepackage{enumitem,amssymb} 
\newlist{todolist}{itemize}{2}
\setlist[todolist]{label=$\square$}

\usepackage{pifont}
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\newcommand{\done}{\rlap{$\square$}{\raisebox{2pt}{\large\hspace{1pt}\cmark}}%
\hspace{-2.5pt}}
\newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}}

And then-

 \begin{todolist}
	  \item[\done] Frame the problem
	  \item Write solution
	  \item[\wontfix] profit
 \end{todolist}

That’s all. Cheers!!!

You can find a comprehensive list of Latex resources in the following post:

Latex Resources in a Nutshell

If you are a new Latex user, check out this post: 20 Most Common Mistakes Made by New Latex Users

You can find all Latex oriented posts of mine in: https://shantoroy.com/categories/#latex

Promotions and Referrals (US Residents Only)

  • Chime: Open a Checking account at Chime using my referral link and get $100 after your employer deposit paycheck of minimum $200 within the first 45 days.
  • Rakuten: Get $30 after you spend $30 at Rakuten select stores after you use my referral link to open an account.
  • Chase Freedom Credit Card: Earn $200 cash back with Chase Freedom Unlimited or Chase Freedom Flex credit card. I can be rewarded if you apply using my referral link and are approved for the card.

  • Chase Checking Account: Get $200 when you open a checking account using my referral link after your first salary is deposited.
  • Discover: Earn $50 cash back with Discover when you apply using my referral link and are approved for the card.
  • Amex Blue Cash Preferred: Earn $250 as statement credit when you spend $3000 in first six months. Apply using my referral link.

Leave a comment