groff
[Top][All Lists]
Advanced

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

Re: Bulleted list items without ms macros?


From: Thomas Dupond
Subject: Re: Bulleted list items without ms macros?
Date: Wed, 10 Feb 2021 12:23:11 +0000

> Is there a way to get bulleted list items
> ( ".IP \(bu 2" in the ms macros) without using ms and
> without getting a "scrambled" document as result?

In the book Unix Text Processing, you can find an example of exactly
this by using the .ti and .in macros:

.in 4
.ti -4
1.  Going through a demo session gave me a much better understanding
of the product.  I confess to being amazed by Alcuin...

However this simple example only works well in nroff were every
character has the same width.  There is however a better version of
this macro in the chapter 17: An Extended ms Macro Package. Here it
is:

.de IP
.sp \\n(PDu
.in \\$2u
.ti -\\$2u
.ta \\$2u
\\$1\t\c
..

This very book has been since revisited and can be found here:

https://github.com/larrykollar/Unix-Text-Processing

Have a nice day,
Thomas




reply via email to

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