[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] extending .B1/.B2 behaviour
From: |
Heinz-Jürgen Oertel |
Subject: |
[Groff] extending .B1/.B2 behaviour |
Date: |
Tue, 6 Jan 2004 23:51:38 +0100 |
User-agent: |
KMail/1.5.3 |
Hello,
I have extended the box macros to use the polygon drawing basics with the
ability to fill the polygon.
Syntax is now:
.B1 [fill_color [frame_color [frame_thickness]]]
text
.B2
B1 called without arguments emulates the old behavior using line drawing
\D'l ..'. -Tascii and -Tlatin1 can be used with it.
But these devices have problems anyway with the .BX macro.
One of the problems is that the polygon must be drawn before the text. It is
difficult to calculate the hight of the box, especially if the text contains
other diversions, e.g. for foot-notes.
Please find attached an example (7.t2), the output (7.pdf), and a s.tmac.diff
and let me know what you think about it.
groff -ms -e 7.t2
--
with best regards / mit freundlichen Grüßen
Heinz-Jürgen Oertel
--
with best regards / mit freundlichen Grüßen
Heinz-Jürgen Oertel
+===================================================================
| Heinz-Jürgen Oertel port GmbH http://www.port.de
| mailto:address@hidden
| phone +49 345 77755-0 fax +49 345 77755-20
| Regensburger Str. 7b, D-06132 Halle/Saale, Germany
| CAN Wiki http://www.CAN-Wiki.info
| Newsletter: http://www.port.de/engl/company/content/abo_form.html
+===================================================================
7.t2
Description: Troff document
7.pdf
Description: Adobe PDF document
s.tmac.diff
Description: Text Data
- [Groff] extending .B1/.B2 behaviour,
Heinz-Jürgen Oertel <=