summaryrefslogtreecommitdiff
path: root/tmac/s.tmac
diff options
context:
space:
mode:
authorkeithmarshall <keithmarshall>2007-04-08 18:50:42 +0000
committerkeithmarshall <keithmarshall>2007-04-08 18:50:42 +0000
commitb2a1f56aae5b54ea16ec720c8c5261f26578eded (patch)
tree4636fc80ee40253adfe68030352cc5ebfe69b075 /tmac/s.tmac
parent9c69cededab2639d986d56850dc846dbff99ab8c (diff)
downloadgroff-b2a1f56aae5b54ea16ec720c8c5261f26578eded.tar.gz
* tmac/s.tmac (SN): Define unconditionally.
(SN-STYLE): New string; define. * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
Diffstat (limited to 'tmac/s.tmac')
-rw-r--r--tmac/s.tmac13
1 files changed, 11 insertions, 2 deletions
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 82e4aaf7..b43fd454 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -1534,6 +1534,16 @@ Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
.\" Numbered headings.
.\" nh*hl is the level of the last heading
.nr nh*hl 0
+.\" SN-DOT and SN-NO-DOT represent the section number of
+.\" the current heading, with and without a terminating dot.
+.ds SN-DOT
+.ds SN-NO-DOT
+.\" SN-STYLE sets the statement numbering style used in headings
+.\" (either SN-DOT or SN-NO-DOT); for backward compatibility with
+.\" earlier ms versions, the default is SN-DOT
+.als SN-STYLE SN-DOT
+.\" Also for backward compatibility, let SN represent SN-DOT.
+.als SN SN-DOT
.\" numbered heading
.de @NH
.ie '\\$1'S' \{\
@@ -1577,12 +1587,11 @@ Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
. as SN-NO-DOT .\\n[H\\n[nh*i]]
.\}
.ds SN-DOT \\*[SN-NO-DOT].
-.if !dSN .als SN SN-DOT
.nr sh*psincr (\\n[GROWPS]-\\n[nh*hl])*\\n[PSINCR]
.SH-NO-TAG
.DEVTAG-NH "\\$1"
. if '\*(.T'html' .nr need_eo_h 1
-\\*[SN-DOT]
+\\*[SN-STYLE]
..
.\" ****************************
.\" ******** module toc ********