[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Underlining in groff
From: |
Blake McBride |
Subject: |
Re: [Groff] Underlining in groff |
Date: |
Thu, 30 Jul 2009 09:24:39 -0500 |
That kind-of works but I have two problems with it.
1. What if I'd rather use MM or MOM?
2. The underline is way too far below the line. If you try underlining a
word within a paragraph it almost looks like a line in the middle of two
text lines. It's is terrible. Basically, the bottom of a lowercase "y"
should extend through the line. If it doesn't look good then the line is
too thick.
I am having luck with a macro I found (and modified) in Volume II of
Gehano's book as follows:
.de Ul
.nr sL \w'\\$1'u
.if \\n(.lu-\\n(.ku<=\\n(sLu .br
\\$1\
\h'-\\n(sLu'\
\v'1p'\
\l'\\n(sLu'\
\v'-2p'\
\\$2
..
Thanks for the help.
Blake McBride
2009/7/10 Heinz-Jürgen Oertel <address@hidden>
> Am Freitag, 10. Juli 2009 schrieb Blake McBride:
> > Greetings,
> >
> > I know about troff using italics, and nroff using underlines, but I want
> to
> > do underlines in groff (troff mode) too. I searched the net and found
> the
> > ul.tmac (by Werner LEMBERG, version 1.0, 12/18/03). It partially works
> but
> > not well enough for me.
> >
> > See: http://osdir.com/ml/printing.groff.general/2003-12/msg00079.html
> >
> > If I do:
> >
> > .so ul.tmac
> > Some text
> > .Underline "Executive Summary"
> > and some more text
> >
> >
> > it works fine. However if I do:
> >
> > .so ul.tmac
> > .ce 1
> > .Underline "Executive Summary"
> >
> > It correctly centers the text but the entire line is underlined instead
> of
> > just the "Executive Summary".
> >
> > Also if I do:
> >
> > .so ul.tmac
> > .ce 1
> > .Underline "Executive Summary"
> > and some more text
> >
> > An underline starts at the "E" and ends on the middle of the next line.
> >
> > How can this be easily done?
> >
> > Thanks.
> >
> > Blake McBride
>
>
>
> May be the much simpler ms macros are working in your case:
>
>
> .LP
> some text
> .ce 1
> .UL "Executive Summary"
> .LP
> and more text.
> And more text.
> And more text.
> And more text.
> And more text.
> And more text.
>
> groff -ms text
>
>
>
> Heinz
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>