ECN No Name Newsletter: May, 1992

The ECN No Name Newsletter is no longer being published. This is an archived issue.

[previous article] [next article]

TROFF: Nifty Paragraph Close

Dave Halsema

The following is a nifty little macro definition that you can include in your TROFF documents. It allows you to place a small box at the end of a paragraph that will appear slightly in the right margin. Pick up any math book and you'll find hundreds of these little squares ending important theorems and equations.

      .de BB
      .br
      .sp -\\n(.Lv
      .ti \\n(.lu+1n
      \(sq
      .br
      ..

Placing this macro at the beginning of your documents will cause ".BB" to be recognized as a macro instruction to create the little box. Here's an example using the macro:

At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer. .BB .sp

The brain is a wonderful organ; it starts the moment you get up in the morning, and does not stop until you get to school. .BB

Which produces the following:

At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer. 7 []

The brain is a wonderful organ; it starts the moment you get up in the morning, and does not stop until you get to school. 7 []


webmaster@ecn.purdue.edu
Last modified: Wednesday, 22-Oct-97 15:01:53 EST

[HTML Check] HTML