Text Formattingenumitem | Space around enumerated Items

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

enumitem | Space around enumerated Items

Post by Cham »

I need to format enumerate items so there's a space at left and at right, as shown on the picture below (this was done using a standard word processor). I'm currently using the enumitem package to change the enumerate number.
enum.jpg
enum.jpg (62.97 KiB) Viewed 3595 times
How can we tell LaTeX to add some space on the right, so the item is symetrically placed in the middle of the default text ?
Last edited by Cham on Thu Aug 11, 2011 8:14 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: enumitem | Space around enumerated Items

Post by Stefan Kottwitz »

Hi Cham,

you could use a quote or quotation environment, or a centered parbox or minipage, and use an enumerate environment within, just without own left margin.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumitem | Space around enumerated Items

Post by localghost »

The enumitem manual suggests to explicitly set the right margin.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{enumitem}
\usepackage{blindtext}

\begin{document}
  \blindtext
  \begin{enumerate}[rightmargin=\parindent]
    \item \blindtext 
  \end{enumerate}
  \blindtext
\end{document}
This is only a local setting. For global settings consult the package manual.

As always, the blindtext package has only been used to create dummy text. It is not part of the solution.


Thorsten
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

enumitem | Space around enumerated Items

Post by Cham »

localghost wrote:The enumitem manual suggests to explicitly set the right margin.
This is working great. Thanks a lot for the fast answer ! :D
Post Reply