summaryrefslogtreecommitdiff
path: root/tmac/troffrc
diff options
context:
space:
mode:
Diffstat (limited to 'tmac/troffrc')
-rw-r--r--tmac/troffrc14
1 files changed, 12 insertions, 2 deletions
diff --git a/tmac/troffrc b/tmac/troffrc
index c4cfa20f..dd5597db 100644
--- a/tmac/troffrc
+++ b/tmac/troffrc
@@ -1,6 +1,8 @@
.\" Startup file for troff.
+.
.\" This is tested by pic.
.nr 0p 0
+.
.\" Use .do here, so that it works with -C.
.\" The groff command defines the .X string if the -X option was given.
.ie r.X .do ds troffrc!ps Xps.tmac
@@ -21,10 +23,18 @@
. do mso \*[troffrc!\*[.T]]
.do rm troffrc!ps troffrc!Xps troffrc!dvi troffrc!X75 troffrc!X75-12 \
troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp troffrc!html
-.ie '\*(.T'cp1047' .do tr \[char65]
-.el .do tr \[char160]
+.
+.\" now load up the color definitions
+.do if '\*[.T]'html' .do mso color-html.tmac
+.do if !'\*[.T]'html' .do mso color.tmac
+.
+.ie '\*(.T'cp1047' .do tr \[char65]\~
+.el .do tr \[char160]\~
+.
.\" Set the hyphenation language to `us'.
.do hla us
+.
.\" Load hyphenation patterns from `hyphen.us' (in the tmac directory).
.do hpf hyphen.us
+.
.\" Don't let blank lines creep in here.