groff
[Top][All Lists]
Advanced

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

[Groff] figurate text in groff and TeX


From: Doug McIlroy
Subject: [Groff] figurate text in groff and TeX
Date: Fri, 25 Sep 2015 16:54:40 -0000
User-agent: Heirloom mailx 12.5 7/5/10

Suppose one wants to  control the shape of filled text so it
fits in a figure, for example a triangle or disc. In groff
one would set a trap to change indent and/or line length on
every line. The traps could be set all at once in advance,
or more elegantly by a self-resetting trap macro.

Examples of figurate text appear in Knuth's paper on
the placement of line breaks. How would the changing indent
and length parameters be expressed in TeX?

(The question is motivated from thinking about how to do
Knuth-ish line breaking in the extremely dynamic groff
environment. Figurate text, especially when done by a
self-resetting macro, is an example of path-dependent
state variables. In general it's possible for the text
itself to depend on path, but that's a challenge for
another day.)

Doug



reply via email to

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