diff options
author | jhaegg <jhaegg> | 2002-05-27 03:28:25 +0000 |
---|---|---|
committer | jhaegg <jhaegg> | 2002-05-27 03:28:25 +0000 |
commit | 72b192a31d25dd8b6ce48edeba710f2296a022ff (patch) | |
tree | 7305cdc961c598462f44522be567e86235cb6525 | |
parent | b8991a5e68cd0af95e5601eace3a53be281fc02c (diff) | |
download | groff-72b192a31d25dd8b6ce48edeba710f2296a022ff.tar.gz |
* PIC is now drawn 1v higher, making it
possible to put a picture at 0,0.
* Indentbug in P fixed, Pt=2 now behaves as it should
-rw-r--r-- | contrib/mm/ChangeLog | 6 | ||||
-rw-r--r-- | contrib/mm/m.tmac | 50 |
2 files changed, 34 insertions, 22 deletions
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog index 2881dac8..c8e78fdb 100644 --- a/contrib/mm/ChangeLog +++ b/contrib/mm/ChangeLog @@ -1,3 +1,9 @@ +Sat May 07:36:08 2002 Joergen Haegg <jh@axis.com> + + * PIC is now drawn 1v higher, making it + possible to put a picture at 0,0. + * Indentbug in P fixed, Pt=2 now behaves as it should + Wed May 10:18:26 2002 Joergen Haegg <jh@axis.com> * added L, W and O in groff_mm.man diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac index 47fb900d..fd208d91 100644 --- a/contrib/mm/m.tmac +++ b/contrib/mm/m.tmac @@ -3,8 +3,8 @@ .ds RE \\$2 .. .\" -.\" $Id: m.tmac,v 2.10 2002/05/23 08:34:51 jhaegg Exp $ -.@revision $Revision: 2.10 $ +.\" $Id: m.tmac,v 2.11 2002/05/27 03:28:25 jhaegg Exp $ +.@revision $Revision: 2.11 $ .ig Copyright (C) 1991-2000 Free Software Foundation, Inc. @@ -402,7 +402,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] .\" ####### module par ################################# .nr par@ind-flag 1 \" indent on following P if Pt=2 .nr hd*last-pos -1 -.nr hd*last-hpos -1 +.nr hd*last-hsize -1 .nr par*number 0 1 .af par*number 01 .nr par*number2 0 1 @@ -418,17 +418,17 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] .\" paragraph .de P .\" skip P if previous heading -.ie !((\\n[nl]=\\n[hd*last-pos]):(\\n[nl]=(\\n[hd*last-pos]-.5v))) \{\ -. if \\n[D]>2 .tm Paragraph nl=\\n[nl] -. par@doit \\$* -. if \\n[Np] \\n[H1].\\n+[par*number]\ \ \c +.if \\n[D]>2 \{\ +. tm Paragraph nl=\\n[nl], last=\\n[hd*last-pos] +. tm Paragraph .k=\\n[.k], hsize=\\n[hd*last-hsize] .\} -.el .if !(\\n[hd*last-hpos]=\\n[.k]) \{\ -. if \\n[D]>2 .tm Paragraph nl=\\n[nl] -. par@doit \\$* -. if \\n[Np] \\n[H1].\\n+[par*number]\ \ \c +.if !((\\n[nl]=\\n[hd*last-pos]):(\\n[hd*last-hsize]=\\n[.k])) \{\ +. if \\n[D]>2 .tm Paragraph set ind-flag=1 +. nr par@ind-flag 1 .\} -.nr par@ind-flag 1 +.\" any collected unprinted text? +.par@doit \\$* +.if \\n[Np] \\n[H1].\\n+[par*number]\ \ \c .. .\"------------ .de nP @@ -438,7 +438,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] . par@doit \\$* \\n[H2].\\n+[par*number2]\ \ \c .\} -.el .if !(\\n[hd*last-hpos]=\\n[.k]) \{\ +.el .if !(\\n[hd*last-hsize]=\\n[.k]) \{\ . if \\n[D]>2 .tm Paragraph nl=\\n[nl] . par@doit \\$* \\n[H2].\\n+[par*number2]\ \ \c @@ -771,10 +771,12 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] . shift . \} .\} +.\" let mmroff know the filename and id .if \\n[Ref]>0 \{\ . tm .\\\\" PIC id \\n[pict*id] . tm .\\\\" PIC file \\*[pict*f] .\} +.\" these are defined by mmroff in the second pass .if d pict*file!\\n[pict*id] \{\ . ds pict*f \\*[pict*file!\\n[pict*id]] . nr pict*llx \\n[pict*llx!\\n[pict*id]] @@ -810,27 +812,31 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] . ds pict*h " . if \\n[pict*h]>0 .ds pict*h \\n[pict*h] . \" -. ne \\n[pict*h]u +. ne \\n[pict*h]u-1v . \" . \" these lines are copied and modified from tmac.pspic. . \" Originally written by James Clark . br . ie \\n[pict*box]>0 \{\ -\h'\\n[pict*in]u'\ +\v'-1v'\h'\\n[pict*in]u'\ \Z'\D'p 0 \\n[pict*h]u \\n[pict*w]u 0 0 -\\n[pict*h]u''\ \v'\\n[pict*h]u'\X'ps: import \\*[pict*f] \ -\\n[pict*llx] \\n[pict*lly] \\n[pict*urx] \\n[pict*ury] \\n[pict*w] \\n[pict*h]' +\\n[pict*llx] \\n[pict*lly] \ +\\n[pict*urx] \\n[pict*ury] \ +\\n[pict*w] \\n[pict*h]' .\} . el \{\ -\h'\\n[pict*in]u'\ +\v'-1v'\h'\\n[pict*in]u'\ \X'ps: invis'\ \Z'\D'p 0 \\n[pict*h]u \\n[pict*w]u 0 0 -\\n[pict*h]u''\ \X'ps: endinvis'\ \v'\\n[pict*h]u'\X'ps: import \\*[pict*f] \ -\\n[pict*llx] \\n[pict*lly] \\n[pict*urx] \\n[pict*ury] \\n[pict*w] \\n[pict*h]' +\\n[pict*llx] \\n[pict*lly] \ +\\n[pict*urx] \\n[pict*ury] \ +\\n[pict*w] \\n[pict*h]' . \} . br -. sp \\n[pict*h]u +. sp \\n[pict*h]u-1v .\} .. .\" external picture @@ -847,7 +853,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] .nr pict*h \\$2 .ds pict*name "External picture .if !''$3' .ds pict*name \\$3 -.ne \\n[pict*h]u-1v +.ne \\n[pict*h]u .sp \\n[pict*h]u-1v .nr pict*ind 0 .if !\\n[pict*adj] .nr pict*ind (u;(\\n[.l]-\\n[.i]-\\n[pict*w])/2) @@ -1064,7 +1070,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] .\"---------- user macro HZ ---------- .if d HZ .HZ \\n[hd*level] \\n[hd*arg1] "\\$2\\$3" .nr hd*last-pos \\n[nl] -.nr hd*last-hpos \\n[.k] +.nr hd*last-hsize \\n[.k] .nr par@ind-flag 0 .. .\"-------- @@ -3108,7 +3114,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%] .\"########################### module ind ############################ .\" Support for mgs-style indexing, borrowed from mgs. .de IX -.tm \\$1\t\\$2\t\\$3\t\\$4 ... \\n[%] +. tm \\$1\t\\$2\t\\$3\t\\$4 ... \\n[%] .. .\"-------------------- .\" Another type of index system |