Text FormattingCentered Descriptions

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
niglas
Posts: 1
Joined: Sun Jun 26, 2011 6:34 pm

Centered Descriptions

Post by niglas »

I'm going to create a list of abbreviations. I tried nomenclature, but my version did not seem to have support for that, so this is my new approach.

I would like to have the whole description list centered or indented a couple of cm.

Right now it looks like this:

Code: Select all

This is text in another paragraph.

Abbr1      Desc1
Abbr two   Desc2

This is text in another paragraph.
I would like to have it like this:

Code: Select all

This is text in another paragraph.

          Abbr 1     Desc1
          Abbr two   Desc2

This is text in another paragraph.

Code: Select all

\usepackage{enumitem}

\begin{document}

This is text in another paragraph

\begin{description}[style=multiline, leftmargin=3cm]
  \item[Abbr 1] Desc1
  \item[Abbr two] Desc2
\end{description}

This is text in another paragraph

\end{document}
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Centered Descriptions

Post by localghost »

Put the description list into a minipage and center it.


Best regards and welcome to the board
Thorsten
Post Reply