From db4b7f51c9a06b407e550c9c3d0b609ebdc2ac67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 20 Jun 2021 10:52:11 +0200 Subject: Remove n macro (use d instead) When limiting yourself to one-letter macros, you need to be clever. --- g.tmac | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/g.tmac b/g.tmac index 8418e40..4db6e69 100644 --- a/g.tmac +++ b/g.tmac @@ -123,18 +123,14 @@ . \" post-environment operations . if !'\$1'' \{\ . \" add small space after title -. if '\*[_penv]'t' \{\ -. if '\*[_env]'n' .sp 0.1v -. if '\*[_env]'d' .sp 0.1v -. \} +. if '\*[_penv]'t' .if '\*[_env]'d' .sp 0.1v . -. \" add space after date/name/title +. \" add space after title block (including date) . if !'\*[_env]'n' .if !'\*[_env]'d' \{\ -. nr _dnt 0 -. ie '\*[_penv]'t' .nr _dnt 1 -. el .ie '\*[_penv]'n' .nr _dnt 1 -. el .if '\*[_penv]'d' .nr _dnt 1 -. if \n[_dnt]==1 \{\ +. nr _tb 0 +. ie '\*[_penv]'t' .nr _tb 1 +. el .if '\*[_penv]'d' .nr _tb 1 +. if \n[_tb]==1 \{\ . sp 0.5i . ns . \} @@ -294,11 +290,6 @@ ___________________ . br . _e l .. -.\" n -- name (of author) -.de n -. br -. _e n -.. . .\" p -- paragraph .de p -- cgit v1.2.3