[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Hanging paragraphs in MM
From: |
Anton Shepelev |
Subject: |
Re: [Groff] Hanging paragraphs in MM |
Date: |
Tue, 01 Jun 2010 16:22:46 +0400 |
Ted Harding:
> One "hack" which might lead to what you want is to calculate an
> indent based on the width of the tag "PS: ", and then increment
> the line-indentation once the paragraph has been started (but
> you would need to reset it at the end of the paragraph):
> (Note the use of the unstretchable space "\ "). With Type 0 para:
>
> .nr indnt \w'PS:\ '
> .P
> PS:\ This is a hanging paragraph.
> .in +\n[indnt]u
> This is a hanging paragraph.
I have made your code a bit simpler:
.nr indnt 120
.in +\n[indnt]u
.ti -(\n[indnt]u)
PS:\ Example of a post-scriptum, it has a hanging indent.
.in -\n[indnt]u
But I was asking how to do it using a macro just
like you mentioned it was made in MS.
Anton
- [Groff] Hanging paragraphs in MM, Anton Shepelev, 2010/06/01
- RE: [Groff] Hanging paragraphs in MM, Ted Harding, 2010/06/01
- Re: [Groff] Hanging paragraphs in MM,
Anton Shepelev <=
- Re: [Groff] Hanging paragraphs in MM, Mike Bianchi, 2010/06/01
- Re: [Groff] Hanging paragraphs in MM, Anton Shepelev, 2010/06/01
- Re: [Groff] Hanging paragraphs in MM, Tadziu Hoffmann, 2010/06/02
- Re: [Groff] Hanging paragraphs in MM, Anton Shepelev, 2010/06/02
- Re: [Groff] Hanging paragraphs in MM, Tadziu Hoffmann, 2010/06/02
- Re: [Groff] Hanging paragraphs in MM, Anton Shepelev, 2010/06/03