lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested numbered lists


From: Paul Zarucki
Subject: Re: Nested numbered lists
Date: Sun, 02 Jan 2011 15:53:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

Hi,

Thank you Mark and Jeff for your help.

I'll add the necessary text to the list style options as you suggest.

Regards,
Paul.

Mark Summerfield wrote:
Hi Paul,

On Sat, 1 Jan 2011 13:01:09 +0000
Paul Zarucki<address@hidden>  wrote:
Hi,

Thanks for your reply. I must also apologise for my multiple posts - I
had some problems in signing up to the mailing list (obviously a real
newbie)!

I was actually trying to produce a list with the following numbering
format:

1. Item one
    1.1  sub-item one
    1.2  sub-item two
         1.2.1  sub-sub-item one
         1.2.2  sub-sub-item two
         ...

whereas Lout's default numbered list format produces this

1 Item one
    1  sub-item one
    2  sub-item two
         1  sub-sub-item one
         2  sub-sub-item two
         ...

It is not a show stopper for me if Lout can't produce this format.
Since the Lout input files will be produced by software that I am
writing, my software could add the appropriate text to each list's
style option to achieve the required format (see my previous post).

Thanks for your help.
I find that lout can be persuaded to do most things. Here's how to do
the nested lists you want:


@SysInclude{doc}
@Doc
@Text @Begin
@List style{num.} labelwidth{1.5f}
@LI{Item 1
     @List style{1.num} labelwidth{2f}
     @LI{Sub item 1}
     @LI{Sub item 2
         @List style{1.2.num} labelwidth{2.75f}
         @LI{Subsub item 1}
         @LI{Subsub item 2}
         @RawEndList
     }
     @RawEndList
}
@LI{Item 2}
@EndList
@End @Text

If you wanted every item number to end with a dot just change the
styles, e.g., style{1.num} ->  style{1.num.} etc.

It is of course a pity that a nested list can't know the number of the
item it occupies in its containing list (unless someone on the list
knows better?), but it is perfectly doable.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]