[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List within a table using the mm package
From: |
Günther Wollenweber |
Subject: |
Re: List within a table using the mm package |
Date: |
Thu, 23 May 2024 11:19:20 +0200 |
Hi Branden,
Thank you so much, your suggestion works like a charm!
In fact, I was well aware of the possibility to use *roff requests even
within macro packages, e.g. I frequently use .sp within mm lists to get a
non-standard vertical space between two specific lines. So my first
approach was indeed to use the .ns request you suggested, but I put it
before the first list item (.LI), not realising that you have to put it
before the list initialization macro itself (.AL in this case).
Thanks again and have a nice day,
Günther
Am Do., 23. Mai 2024 um 03:18 Uhr schrieb G. Branden Robinson <
g.branden.robinson@gmail.com>:
> Hi Günther,
>
> At 2024-05-23T03:08:22+0200, Günther Wollenweber wrote:
> > I'm fairly new to groff and have a question about the mm macro
> > package.
>
> Welcome!
>
> > When including a list in a table cell, how can I prevent mm from
> > inserting a blank vertical space before the first list item and thus
> > completely disrupt the alignement of the lines?
>
> This is one of those relatively rare circumstances where it's necessary
> to resort to a *roff request. I got the desired output by adding an
> `ns` request before the `AL` macro call.
>
> Here is my illustration.
>
> .P
> This is an
> .I mm
> document.
> .TS
> tab(;);
> ll.
> Case_1;T{
> .ns
> .AL a 2 1
> .LI
> Subcase_A
> .LI
> Subcase_B
> .LI
> Subcase_C
> .LE
> T}
> .TE
>
> Regards,
> Branden
>