On Thursday 20 November 2008 07:08:04 am FERNANDO DIAZ wrote:
> On Thu, Nov 20, 2008 at 5:01 AM, Jean-Marc Lasgouttes 
<[EMAIL PROTECTED]>wrote:
> > "FERNANDO DIAZ" <[EMAIL PROTECTED]> writes:
> > > Hello:
> > >
> > > I am trying to change the depth  of the paragraph numbering in LyX 1.6
> >
> > but I
> >
> > > have not been lucky. Paragraph numbering looks like this:
> > >
> > > 1.0.0.1 My text....
> > > 1.0.0.2 Another paragraph....
> > >
> > > I would like to have it like this:
> > >
> > > 1.1 My text....
> > > 1.2 Another paragraph....
> >
> > Try using Section and Subsection.
> >
> > Thanks. But I don´t see how that would shorten the depth of paragraph
>
> numbering:. If I include a section, instead of having:
>
>  1.0.0.1 My text....
>   1.0.0.2 Another paragraph....
>
> I get:
>
> 1.1.0.1 <http://1.0.0.1/> My text....
>  1.1.0.2 <http://1.0.0.2/> Another paragraph....
>
>
> And what I want is:
>
> 1.1 <http://1.0.0.1/> My text....
> 1.2 <http://1.0.0.2/> Another paragraph....
>
>
>  The thing is that every paragraph in the text must be numbered.
>
> Thanks

Try this code in the preamble:

\renewcommand\thesection{\arabic{section}}

\renewcommand\theparagraph{\thesection.\arabic{paragraph}}


It should get you what you want. Notice, however, that you need an initial 
section to obtain 1.1, 1.2, etcetera.

In other words, if you have 

First section
first paragraph
second paragraph
third paragraph

then you'll get
1 First section
1.1 first paragraph
1.2 second paragraph
1.3 third paragraph


but if you have only paragraphs, i.e.

first paragraph
second paragraph
third paragraph

then you'll get

0.1 first paragraph
0.2 second paragraph
0.3 third paragraph


I am not sure which situation is yours.


Cheers,

Stefano
-- 
______________________________________________________________
Stefano Franchi
Department of Philosophy          Ph:  (979) 862-2211
Texas A&M University              Fax: (979) 845-0458
305B Bolton Hall                  [EMAIL PROTECTED]
College Station, TX 77843-4237

Reply via email to