From 977b25a76ae8263e53fb4eb1abfc395769f23e3d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 13 Aug 2020 23:41:59 -0400 Subject: tmac: introduce real manual reference macro instead of overloading IR The overloading of IR emits magic \X'...' sequences that turn into HTML manual links. But not all such IR invocations should be manual links; those had to be written to avoid the IR macro before. Worse, the \X'...' ending the IR causes troff to emit only a single space after a period. Defining a new IM macro for manual references fixes both problems. Fixes #441. --- man/man7/color.7 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'man/man7/color.7') diff --git a/man/man7/color.7 b/man/man7/color.7 index c8b536a0..7e9a39b7 100644 --- a/man/man7/color.7 +++ b/man/man7/color.7 @@ -121,11 +121,11 @@ which is scaled so 0 represents fully transparent and 255 represents opaque colo The alpha is .I premultiplied into the other channels, as described in the paper by Porter and Duff cited in -.IR draw (3). +.IM draw (3) . The function .B setalpha (see -.IR allocimage (3)) +.IM allocimage (3) ) aids the initialization of color values with non-trivial alpha. .PP The packing of pixels into bytes and words is odd. @@ -138,13 +138,13 @@ the byte ordering is blue, green, red. .PP To maintain a constant external representation, the -.IR draw (3) +.IM draw (3) interface as well as the various graphics libraries represent colors by 32-bit numbers, as described in -.IR color (3). +.IM color (3) . .SH "SEE ALSO" -.IR color (3), -.IR graphics (3), -.IR draw (3) +.IM color (3) , +.IM graphics (3) , +.IM draw (3) -- cgit v1.2.3 From d32deab17bfffa5bffc5fab3e6577558e40888c5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 15 Aug 2020 20:07:38 -0400 Subject: tmac: rename IM (italic manual) to MR (manual reference) Suggested by G. Brandon Robinson. --- man/man7/color.7 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'man/man7/color.7') diff --git a/man/man7/color.7 b/man/man7/color.7 index 7e9a39b7..917c2521 100644 --- a/man/man7/color.7 +++ b/man/man7/color.7 @@ -121,11 +121,11 @@ which is scaled so 0 represents fully transparent and 255 represents opaque colo The alpha is .I premultiplied into the other channels, as described in the paper by Porter and Duff cited in -.IM draw (3) . +.MR draw (3) . The function .B setalpha (see -.IM allocimage (3) ) +.MR allocimage (3) ) aids the initialization of color values with non-trivial alpha. .PP The packing of pixels into bytes and words is odd. @@ -138,13 +138,13 @@ the byte ordering is blue, green, red. .PP To maintain a constant external representation, the -.IM draw (3) +.MR draw (3) interface as well as the various graphics libraries represent colors by 32-bit numbers, as described in -.IM color (3) . +.MR color (3) . .SH "SEE ALSO" -.IM color (3) , -.IM graphics (3) , -.IM draw (3) +.MR color (3) , +.MR graphics (3) , +.MR draw (3) -- cgit v1.2.3