linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "G. Branden Robinson" <g.branden.robinson@gmail.com>
To: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>,
	linux-man@vger.kernel.org, colomar.6.4.3@gmail.com
Subject: Re: .RS
Date: Fri, 13 Nov 2020 19:03:52 +1100	[thread overview]
Message-ID: <20201113080349.vp6ggswc2jbhseki@localhost.localdomain> (raw)
In-Reply-To: <eaee2c6e-cbb7-94b2-f6c4-9039d184e129@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

At 2020-11-12T21:57:34+0100, Alejandro Colomar (man-pages) wrote:
> > * [.in 4] simply doesn't seem to work at all.

It's important here to check what request comes next.  Many of the man
macros will change the indentation again on you.

> > * [.RS 4] and [.RS +4n] seem to be equivalent.
> > * [.RS 4] is different (worse) than [.in +4n]
> >           in some very specific scenario:
> > 
> and [.in 4n] seems to indent to absolute column 4.

Yes.  Many *roff requests are documented like .in is in groff(7).

   .in ±N    Change indentation according to ±N (default scaling indica‐
             tor m).

The ± indicates an optional sign.  Where there is no sign, the .in
request performs absolute positioning.  I might have led you astray by
bringing up the "|" operator before; a hazard of my unfortunate tendency
to ramble when composing emails in haste.

The '+' that .RS forces as a prefix to its argument before passing it to
.in prevents the _macro_ argument from being interpreted as an absolute
position (even if the "|" operator is used).

.TH foo 1 2020-11-13 "foo 1.2.3"
.SH Name
bar \- baz
.SH Description
foo
.RS 4n
indent
.RS |5n
bar
.RE
.RE

In the above example, "bar" is set 5 ens to the right of "foo", even
though we tried to set it much farther left.

Regards,
Branden

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-11-13  8:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 14:22 .RS Alejandro Colomar (man-pages)
2020-11-11 15:09 ` .RS G. Branden Robinson
2020-11-11 15:34   ` .RS Alejandro Colomar (man-pages)
2020-11-12  7:09     ` .RS G. Branden Robinson
2020-11-12  9:49       ` .RS Alejandro Colomar (man-pages)
2020-11-12 19:57         ` .RS Alejandro Colomar (man-pages)
2020-11-12 20:57           ` .RS Alejandro Colomar (man-pages)
2020-11-13  8:03             ` G. Branden Robinson [this message]
2020-11-13  8:52           ` .RS Michael Kerrisk (man-pages)
     [not found]             ` <20201113093846.jzxlkw3o3pqkkr47@localhost.localdomain>
2020-11-13 10:02               ` .RS Michael Kerrisk (man-pages)
2020-11-13 10:15             ` .RS Alejandro Colomar
2020-11-13 10:27               ` .RS Michael Kerrisk (man-pages)
2020-11-13 10:34       ` .RS G. Branden Robinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201113080349.vp6ggswc2jbhseki@localhost.localdomain \
    --to=g.branden.robinson@gmail.com \
    --cc=alx.manpages@gmail.com \
    --cc=colomar.6.4.3@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).