aboutsummaryrefslogtreecommitdiff
path: root/rf.1
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-04 17:03:41 +0100
committerJohn Ankarström <john@ankarstrom.se>2021-01-04 17:03:41 +0100
commit987c3b5a6e0b6a800c354725d214d71e5098c1d8 (patch)
tree5d31f20caae446db37003b36627f5b0def8d1966 /rf.1
parentc71a898216c4bcfa0c5195df857b2aa09a9636a4 (diff)
downloadrf-987c3b5a6e0b6a800c354725d214d71e5098c1d8.tar.gz
Change multi-line format specification syntax
Diffstat (limited to 'rf.1')
-rw-r--r--rf.129
1 files changed, 14 insertions, 15 deletions
diff --git a/rf.1 b/rf.1
index 924f9c7..ca37ad4 100644
--- a/rf.1
+++ b/rf.1
@@ -233,24 +233,24 @@ of the authors, you can use the special
syntax, with an uppercase instead of lowercase
.Sq a .
.
-.Ss Special backslash behavior
-.Bl -enum
-.It
-A backslash at the end of a format line acts as a line continuation marker.
-The newline after the backslash is preserved.
-.It
-For format macros describing citations, a backslash immediately following the macro name will cause the reference be joined to the preceding line.
-.El
+.Ss Multiple lines
+If no argument is given to a format macro, then
+.Nm
+will read the format specification from the following lines until a line containing
+.Sq ..
+is encountered, signifying the end of the multi-line format specification.
.Pp
-Anywhere else in the line, backslashes are preserved literally.
+Within a multi-line format spefication, use the escapes \\$2 and \\$3
+to interpolate (respectively) any suffix and prefix given to the citation macro.
.Pp
-By using backslashes, you can implement footnote-based citations.
-For example, using the ms macro package:
+For example, the following multi-line format specification implements footnote references:
.Bd -literal -offset indent
-\&.Fx\\ \\**\\
-\&.FS\\
-%a, {\\fI%t\\fR}, {\\*Q%q\\*U}, %y.\\
+\&.Fx
+\\$3\\**\\$2
+\&.FS
+%a, {\\fI%t\\fR}, {\\*Q%q\\*U}, %y.
\&.FE
+\&..
.Ed
.
.Ss Automatic cleanup
@@ -311,7 +311,6 @@ will output the following source code:
\&.SH
Previous work
-
\&.LP
Davidson
(1991)