Text FormattingCreating lists with a specific unit

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
lgraden
Posts: 2
Joined: Fri Aug 17, 2012 7:03 pm

Creating lists with a specific unit

Post by lgraden »

Hi all,

I'd like a recommendation for what environment or package can be used to create a list where you get a unit or a topic name with each post, in addition to the number. I'd like to make a list which looks like this:

Person 1 Kate
Person 2 William
Person 3 Sarah

or

Line 1 Text text text
Line 2 More text more text
Line 3 Even more text


Meaning, I'd like the automatic enumeration preceeded by a unit/topic/word of my choice. The description environment doesn't quit fit this, since I'd rather not have to enter things manually and I don't want it in bold.

Any hints would be great. Have a great weekend y'all! ;)
Last edited by lgraden on Thu Aug 23, 2012 11:27 am, 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.

alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

Creating lists with a specific unit

Post by alainremillard »

Hi

the {enumerate} should do the trick.

First, make sure to have the enumitem package is loaded. With this package you are able to customize teh enumeration label. Your first example will be code :

Code: Select all

\begin{enumerate}[label=Person \arabic*]
    \item Kate 
    \item William
    \item Sara
\end{enumerate}
Regards
lgraden
Posts: 2
Joined: Fri Aug 17, 2012 7:03 pm

Re: Creating lists with a specific unit

Post by lgraden »

Worked like a charm. Thank you!
Post Reply