[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: [me] Fix remaining bugs with line numbering.
From: |
Werner LEMBERG |
Subject: |
[groff] 01/01: [me] Fix remaining bugs with line numbering. |
Date: |
Sat, 19 Nov 2016 06:39:40 +0000 (UTC) |
wl pushed a commit to branch master
in repository groff.
commit 2cc968c7828263e1d2f53944f83e2d6d78bb737c
Author: George HELFFRICH <address@hidden>
Date: Sat Nov 19 07:38:29 2016 +0100
[me] Fix remaining bugs with line numbering.
* tmac/e.tmac (nm): Redefine.
(.n1, .n2): Update so all environments affected.
(.ip): Fix double numbering.
(.)c, .)l): Restore numbering after diversion included.
---
ChangeLog | 9 +++++++++
tmac/e.tmac-u | 32 +++++++++++++++++++++++++++++---
2 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8a5d700..863c1a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-11-19 George HELFFRICH <address@hidden>
+
+ [me] Fix remaining bugs with line numbering.
+
+ * tmac/e.tmac (nm): Redefine.
+ (.n1, .n2): Update so all environments affected.
+ (.ip): Fix double numbering.
+ (.)c, .)l): Restore numbering after diversion included.
+
2016-11-01 Deri James <address@hidden>
gropdf remaps characters to position 13 (#48986 )
diff --git a/tmac/e.tmac-u b/tmac/e.tmac-u
index 92d3f7a..778e3ad 100644
--- a/tmac/e.tmac-u
+++ b/tmac/e.tmac-u
@@ -136,6 +136,23 @@
.
..
.
+.rn nm @# \" --- rename to original command
+.de nm \" --- turn on number mode preserving font info
+.ie \\n(.$ \
+\{\
+. nr _S \\n(.s
+. nr _F \\n(.f
+. ps \\n[_#p]
+. ft \\n[_#f]
+. @# \\$1 \\$2 \\$3 \\$4
+. ft \\n(_F
+. ps \\n(_S
+. rr _F
+. rr _S
+.\}
+.el address@hidden
+..
+.
.de @z \" --- end macro
.if \n@>1 .tm >> @z, .z=\\n(.z ?a=\\n(?a
.if !"\\n(.z"" \
@@ -524,9 +541,11 @@
..
.
.de n1 \" *** line numbering 1
-.nm 1
.ll -\w'0000'u
.nr ?n 1
+.nr _#p \\n(.s
+.nr _#f \\n(.f
+.nm 1
..
.
.de n2 \" *** line numbering 2
@@ -549,6 +568,8 @@
. nr ln (\\n[_ln])-\\*(|j
. el \
. nr ln \\$1 \" unsigned N
+. nr _#p \\n(.s
+. nr _#f \\n(.f
. nm \\n(ln
. nr ?n 2
. rm |i |j
@@ -664,10 +685,13 @@
address@hidden \\n(_0u
.nr _I \\n(.iu
.in 0
+.nm
.di |i
\&\\$1
.br
.di
+.if \\n(?n \
+. nm \\n(ln
.in \\n(_Iu
.ds |j \\*(|i\\
.ie \\w"\\*(|j" \
@@ -1063,6 +1087,8 @@
. nm
.ev
.rm |c
+.if \\n(?n \
+. nm \\n(ln
..
.
.
@@ -1102,9 +1128,9 @@
.
.de )l \" *** end list
.br
-.if \\n(?n \
-. nm
.ev
+.if \\n(?n \
+. nm \\n(ln
.sp \\n(bsu+\\n(.Lv-1v
.nr ?k 0
..
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: [me] Fix remaining bugs with line numbering.,
Werner LEMBERG <=