Text Formattingenumitem | Settings for itemized Lists

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
elglanto
Posts: 6
Joined: Fri Oct 05, 2012 1:05 pm

enumitem | Settings for itemized Lists

Post by elglanto »

Hello,

As I wanted to have a list with a 2cm shift to the right of my page, I tried the enumitem package and my code is:

Code: Select all

\usepackage[utf8]{inputenc}
\usepackage[english,francais]{babel}
\usepackage[euler]{textgreek}
\usepackage{xspace}
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{caption}
\usepackage{subcaption}
\usepackage{array}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage[final]{pdfpages}

Code: Select all

\begin{itemize}[leftmargin=2cm]
\item item 1
\item item 2
\end{itemize}
And it does not work. What is see is:

[leftmargin=2cm]item 1 item 2

But if change my code by :

Code: Select all

\begin{enumerate}[leftmargin=2cm]
\item item 1
\item item 2
\end{enumerate}
Works fine.

Does anyone have an idea about this?

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

enumitem | Settings for itemized Lists

Post by cgnieder »

Would you mind preparing a proper Infominimal working example, please? This works fine for me:

Code: Select all

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

\noindent Text
\begin{itemize}[leftmargin=2cm]
 \item bla
\end{itemize}
Text

\end{document}
Regards
site moderator & package author
Post Reply