Tagged lists with multiple tags in mdoc

Sergey Kandaurov pluknet at gmail.com
Sun Mar 17 19:00:40 UTC 2013


On 17 March 2013 21:26, Dag-Erling Smørgrav <des at des.no> wrote:
> I need to make a tagged list where some items have multiple tags - for
> instance,
>
>     function1()
>     function2()
>     function3()
>             These are the first three functions.
>
>     function4()
>             This is the fourth function.
>
> If I use
>
> .Bl -tag
> .It Fn function1
> .It Fn function2
> .It Fn function3
> These are the first three functions.
> .It Fn function4
> This is the fourth function.
> .El
>
> groff will insert blank lines after function1() and function2(), which
> I'd like to avoid.  Conversely, if I use -compact, it will omit the
> blank lines between before function4() and between the list and the
> surrounding text, which is also wrong.

What about this?

.Pp
.Bl -tag -width indent -compact
.It Fn function1
.It Fn function2
.It Fn function3
These are the first three functions.
.Pp
.It Fn function4
This is the fourth function.
.El

-- 
wbr,
pluknet


More information about the freebsd-doc mailing list