Text Formattingenumerate question

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bar_ba_dos
Posts: 3
Joined: Fri Feb 23, 2007 1:23 pm

enumerate question

Post by bar_ba_dos »

Hi,

I would like to achieve the following enumerate style:

Code: Select all

1. Text for the first item.
2. Text for the second item.
3   i. Text for the first sub-item.
   ii. Text for the second sub-item.
  iii. Text for the third sub-item.
What I have at the moment (by changing enumi, enumii and labelenumii) is close to what I want but the sub-list is starting on a newline I guess with some additional indenting. It looks a bit like:

Code: Select all

1. Text for the first item.
2. Text for the second item.
3.
   i. Text for the first sub-item.
  ii. Text for the second sub-item.
  iii. Text for the third sub-item.
What should I do to get the style I want? Thus what command do I use to make sure the sub-list doesn't start on the next line? Thanks.

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

enumerate question

Post by gmedina »

Hi,

the following does what you want:

Code: Select all

\documentclass{article}

\begin{document}

\renewcommand\labelenumii{\roman{enumii}.}
\begin{enumerate}
  \item First item.
  \item Second item.
  \item 
  \begin{enumerate}
    \item First subitem.
    \item Second subitem.
    \item Third subitem.
  \end{enumerate}
\end{enumerate}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply