[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Bulleted number - How to do???
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] Bulleted number - How to do??? |
Date: |
Fri, 03 Aug 2007 13:23:51 +0100 |
Hi andlabs,
> What I meant to say is that although it is easy making the circle
> (\D'c {radius}'), there are hard parts:
>
> - troff offsets the drawing, making it harder to place the text than
> \kx\D'c {radius}'\h'|\nxu+3u'text (the given \k and \h instructions
> from the troff Users' Manual by Joe Ossanna)
\Z'...' is your friend. It makes the stuff in the quotes have no effect
on the current position.
> - troff takes all circle radiuses in ems (suffix m); there is no way
> to override (I tried)
Don't think it does, see below.
> - And when you're done with the circle, how do you get yourself out of
> it?
I'd suggest drawing the circle then move back into it to draw the
number.
$ cat circ.tr
foo
.sp 2
foo \D'c 1i' bar \D'c 1c' foo
.sp 4
.nr w \w'123'
foo \v'-0.3v'\D'c (u;\nw*3/2)'\v'0.3v'\
\Z'\h'(u;-\nw*3/2/2)'\h'(u;-\nw/2)'123' bar
$
Cheers,
Ralph.