[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specifying short marginal note?
From: |
John A. |
Subject: |
Re: Specifying short marginal note? |
Date: |
Fri, 8 Jan 2021 11:19:03 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 2021-01-08, Dorai Sitaram wrote:
> What's a good way to put a bit of text in the left margin of the
> "current" line?
With ms, I would do this:
.LP
.mk
.po -2m
>>
.br
.po
.rt
Some text.
This results in ">>" being put to the left of "Some text". You can read
about .mk and .rt in 5.22 "Page Motions" in the groff manual. Very
useful requests!
> [...] the marginal-note (I believe this is the technical term
> for this) text isn't required to be multi-line, if that makes the
> implementation any easier.
It certainly does! They're usually called "margin notes", and they're
quite hard to implement (if they are to be multi-line and continue on
the next page etc.).
Best regards
John