Re: [Groff] List labels in MM and three argument .ds

2009-08-02 Thread Werner LEMBERG
>>> > .ie d misc*st-\\$1 .ds misc*st-\\$1 \\$2 \\*[misc*st-\\$1] > > This macro does simply the equivalent to > >foo = bar + foo Uff, not a macro, it's a simple string definition. Werner

Re: [Groff] List labels in MM and three argument .ds

2009-08-02 Thread Werner LEMBERG
>> > While looking at the MM code I noticed a line: >> > >> > .ie d misc*st-\\$1 .ds misc*st-\\$1 \\$2 \\*[misc*st-\\$1] >> > >> > It seems like .ds is taking three arguments. >> >> No, only two. The argument to the string name `misc*st-\\$1' is >> `\\$2 \\*[misc*st-\\$1]'. `info groff' should g

Re: [Groff] List labels in MM and three argument .ds

2009-08-01 Thread Blake McBride
Okay, thanks. The fact that there is a space between the two parts of the second argument threw me. I interpreted that to be a third argument. Thanks. Blake McBride On Sat, Aug 1, 2009 at 2:55 AM, Werner LEMBERG wrote: > > While looking at the MM code I noticed a line: > > > > .ie d misc*st

Re: [Groff] List labels in MM and three argument .ds

2009-08-01 Thread Peter Schaffter
On Fri, Jul 31, 2009, Blake McBride wrote: > I'd like to label nested lists with the enclosing list's number using MM > like the following: > > 1. First item > 1.1. First sub-item of the first list > 1.2. Second sub-item of the first list > 2. Second item > 2.1. First sub-item of

Re: [Groff] List labels in MM and three argument .ds

2009-08-01 Thread Werner LEMBERG
> While looking at the MM code I noticed a line: > > .ie d misc*st-\\$1 .ds misc*st-\\$1 \\$2 \\*[misc*st-\\$1] > > It seems like .ds is taking three arguments. No, only two. The argument to the string name `misc*st-\\$1' is `\\$2 \\*[misc*st-\\$1]'. `info groff' should give all the details.

[Groff] List labels in MM and three argument .ds

2009-07-31 Thread Blake McBride
Greetings, I'd like to label nested lists with the enclosing list's number using MM like the following: 1. First item 1.1. First sub-item of the first list 1.2. Second sub-item of the first list 2. Second item 2.1. First sub-item of the second list 2.2. Second sub-item of th