From: Jan Stary <hans@stare.cz>
To: discuss@mandoc.bsd.lv
Subject: Re: .Bl -tag -width ".mdoc macro" not recognised sometimes(?)
Date: Sun, 5 Jun 2022 19:55:39 +0200 [thread overview]
Message-ID: <YpzuG2Nld7nqMwmI@www.stare.cz> (raw)
In-Reply-To: <20220605161635.chte3k2gotoceerf@tarta.nabijaczleweli.xyz>
On Jun 05 18:16:35, nabijaczleweli@nabijaczleweli.xyz wrote:
> Hi!
>
> I'm attaching a manual that reproduces this; in short:
> .Bl -tag -compact -offset 4n -width ".Sy \e\e , \ea , \eb , \et"
> works, but
> .Bl -tag -offset 4n -width ".Sy [\& Ns Ar c Ns Sy *] , [\& Ns Ar c Ns Sy * Ns Ar len Ns Sy \&]"
> doesn't.
>
> Wherein "doesn't" is defined as "I think it's just taking the literal
> width of the string", which means mandoc really struggles to set this:
Quoting mdoc(7):
The -width and -offset arguments accept
macro names as described for Bd -offset,
scaling widths as described in roff(7),
or use the length of the given string.
Is your -width a macro name (such as Ds) as descibed for -offset? No.
Is it a scalinbg width as described in roff(7)? No.
Apparently, mandoc uses the length of the given string then.
AFAICT, that's what you told it to do.
Jan
--
To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv
next prev parent reply other threads:[~2022-06-05 17:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-05 16:16 наб
2022-06-05 17:55 ` Jan Stary [this message]
2022-06-05 18:28 ` наб
2022-06-05 19:43 ` Ingo Schwarze
2022-06-05 20:16 ` наб
2022-06-05 20:48 ` Jan Stary
2022-06-06 10:08 ` Ingo Schwarze
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=YpzuG2Nld7nqMwmI@www.stare.cz \
--to=hans@stare.cz \
--cc=discuss@mandoc.bsd.lv \
/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).