summaryrefslogtreecommitdiff
path: root/tmac/s.tmac
diff options
context:
space:
mode:
authoresr <esr>2007-02-01 23:09:22 +0000
committeresr <esr>2007-02-01 23:09:22 +0000
commite5ec8a68e9d35924bfd0cae7cf1c8f7b5f0e0768 (patch)
tree4ffb10c7dd57119360412becf72e98f2e64e6bf7 /tmac/s.tmac
parentaf59761e5bcec4ffd5bef033340e32935907db78 (diff)
downloadgroff-e5ec8a68e9d35924bfd0cae7cf1c8f7b5f0e0768.tar.gz
The other Bell Labs localisms are now enabled when you call .SC.
It is no longer necessary to specift "-r bell=1" on the command line.
Diffstat (limited to 'tmac/s.tmac')
-rw-r--r--tmac/s.tmac32
1 files changed, 19 insertions, 13 deletions
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 4ce3b919..c85377b0 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -470,7 +470,11 @@ Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
..
.nr pg*P1 0
.de P1
-.nr pg*P1 1
+.ie r bell_localisms \{\
+. DS L
+. ft CW
+.\}
+.el .nr pg*P1 1
..
.wh -\n[FM]u pg@bottom
.wh -\n[FM]u/2u pg*footer
@@ -2076,28 +2080,30 @@ Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
.\" ****************************
.\" ******** module bell ********
.\" ****************************
-.\" Emulate Bell Labs localisms by setting `-r bell=1' on the command line.
-.\" They're not enabled by default because (a) they're not documented, and
-.\" (b) the .P1 and .UC macros collides with different ones in Berkeley ms.
+.\" Emulate Bell Labs localisms. Note, (a) they're not documented, and
+.\" (b) the .P1 and .UC macros collide with different ones in Berkeley ms.
+.\" We hack around this by conditionalizing the behavior of P1; UC was
+.\" not defined by groff and will be a no-op if called Berkeley style
+.\" with no arguments, so there is no problem with hijacking it here.
+.\"
.\" What's done here is sufficient to give back the Guide to EQN (1976) its
.\" section headings and restore some text that had gone missing as macro
.\" arguments; no warranty express or implied is given as to how well the
.\" typographic details these produce match the original Bell Labs macros.
-.if r bell \{\
+.\"
+.\" P1 is now defined in module pg.
.de SC
+.nr bell_localisms 1
.NH
\\$*
..
.de UC
-\f(CW\\$*\fP
-..
-.de P1
-.DS L
-ft CW
+.if r bell_localisms \f(CW\\$*\fP
..
.de P2
-.ft
-.DE
-..
+.if r bell_localisms \{\
+. ft
+. DE
.\}
+..
.\" Make sure that no blank lines creep in at the end of this file.