LyXProblem with enumeration

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
monemonemone
Posts: 2
Joined: Sun May 09, 2010 12:50 pm

Problem with enumeration

Post by monemonemone »

hey! i am a lyx-starter... however it works quite well. except for a problem with enumeration.
i want to create an enumeration, looking like this
1. xxx
1.1 xxx
2. xxxx
2.1 xxxx
2.2 xx

-> that means an enumeration only consisting of numbers.

but when i create an enumeration with lyx, enumerations have letters in the second level. they look like this
1. xxx
a) xxx
b) xxx
i. xx

how can i avoid letters and put in numbers instead?

thank you VERY MUCH for your help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with enumeration

Post by gmedina »

Hi,

use some of the features of the enumitem package:

Code: Select all

\documentclass{article}
\usepackage{enumitem}

\begin{document}

\begin{enumerate}
  \item First item
  \begin{enumerate}[label*=\arabic*]
    \item First sub item
  \end{enumerate}
\end{enumerate}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
monemonemone
Posts: 2
Joined: Sun May 09, 2010 12:50 pm

Re: Problem with enumeration

Post by monemonemone »

hey, thanks for your answer.
but i have no idea what to do next.
how can I add this enumitem package to lyx?
thanks again!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with enumeration

Post by gmedina »

monemonemone wrote:...
how can I add this enumitem package to lyx?..
No idea; I've never used LyX. Perhaps a LyX user can help you here.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with enumeration

Post by frabjous »

Try going into Document > Settings, and then under "LaTeX Preamble", add:

Code: Select all

\usepackage{enumitem}
\setenumerate[2]{label*=\arabic*}
It'll still show (a) and (b), etc., in the LyX editor screen, but it should show the right thing when you export to PDF (or DVI or whatever).
Post Reply