diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-11 19:37:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-11 19:37:16 -0700 |
commit | d1e0e1f15227bd01dbbfcb0a77f261d01764e408 (patch) | |
tree | aecf2e5b4db9ad21ea5035a736c8301527066bcf /txr.1 | |
parent | ad43b4c8bbd9fde359a7138d56bfb038842729ed (diff) | |
download | txr-d1e0e1f15227bd01dbbfcb0a77f261d01764e408.tar.gz txr-d1e0e1f15227bd01dbbfcb0a77f261d01764e408.tar.bz2 txr-d1e0e1f15227bd01dbbfcb0a77f261d01764e408.zip |
doc: italicize meta-identifers in nroff mode.
* txr.1 (meta, metn, gets): In nroff mode, don't just
add angle brackets around meta symbols, but also typeset
them in italic using \fI...\fP. This is useful because
the output of man can be colorized when viewed using the
less pager. If these symbols are italicized, then they
get colored differently from surrounding text.
We keep the angle brackets because it helps these words
stand out as "meta" in the absence of color.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -52,11 +52,11 @@ \f[4]\\$1\f[] .. .\" like .code typesets meta-syntax -.\" which is done in angle brackets in nroff or oblique +.\" which is done in angle brackets + italic in nroff or oblique .\" courier in PDF/HTML. .de meta . ie n \{\ -<\\$1> +\fI<\\$1>\fP . \} . el \{\ \f[5]\\$1\f[] @@ -65,7 +65,7 @@ .\" like .meta but tack on second argument with no space. .de metn . ie n \{\ -<\\$1>\\$2 +\fI<\\$1>\fP\\$2 . \} . el \{\ \f[5]\\$1\f[]\\$2 @@ -146,27 +146,27 @@ . while (\\n[.$]>0) \{\ . ie "\\$1"<" \{\ . shift -. as s <\\$1> +. as s \fI<\\$1>\fP . shift . \} . el \{\ . ie "\\$1"<<" \{\ . shift -. as s <\\$1>\\$2 +. as s \fI<\\$1>\fP\\$2 . shift . shift . \} . el \{\ . ie "\\$1">>" \{\ . shift -. as s \\$1<\\$2> +. as s \\$1\fI<\\$2>\fP . shift . shift . \} . el \{\ . ie "\\$1"<>" \{\ . shift -. as s \\$1<\\$2>\\$3 +. as s \\$1\fI<\\$2>\fP\\$3 . shift . shift . shift |