From a57153bac89d7630960f468c8e5c4becc31c5282 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Tue, 8 Jun 2021 20:08:01 +0300 Subject: various tweaks --- g.tmac | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/g.tmac b/g.tmac index 36434e6..ef73f4c 100644 --- a/g.tmac +++ b/g.tmac @@ -150,22 +150,16 @@ .nr heading_current_number_2 +1 .nr heading_current_number_3 0 .nr heading_current_number_4 0 -\\n[heading_current_number_1]. -\\n[heading_current_number_2]. +\\n[heading_current_number_1].\\n[heading_current_number_2]. \} .if '\\$2'3' \{\ .nr heading_current_number_3 +1 .nr heading_current_number_4 0 -\\n[heading_current_number_1]. -\\n[heading_current_number_2]. -\\n[heading_current_number_3]. +\\n[heading_current_number_1].\\n[heading_current_number_2].\\n[heading_current_number_3]. \} .if '\\$2'4' \{\ .nr heading_current_number_4 +1 -\\n[heading_current_number_1]. -\\n[heading_current_number_2]. -\\n[heading_current_number_3]. -\\n[heading_current_number_4]. +\\n[heading_current_number_1].\\n[heading_current_number_2].\\n[heading_current_number_3].\\n[heading_current_number_4]. \} \\$1 \f[] \} @@ -223,7 +217,7 @@ \######################################################################### .de footnote .ie '\\$1'end' \{\ -.br + .boxa .ev .ie !d there_is_a_footnote \{\ @@ -232,7 +226,7 @@ .wh -(\\n[current_footnote_height]u+\\n[dn]u) paste_footnote .nr current_footnote_height +\\n[dn]u \} -.el \{ +.el \{\ .wh -\\n[current_footnote_height]u .wh -(\\n[current_footnote_height]u+\\n[dn]u) paste_footnote .nr current_footnote_height +\\n[dn]u @@ -442,7 +436,7 @@ .. \######################################################################### .de superscript -\s-\\n[superscript_size_decrease]\v'-0.5v'\h'-0.2v'\\$1\v'+0.5v'\s+\\n[superscript_size_decrease] +\s-\\n[superscript_size_decrease]\v'-0.3v'\h'-0.3v'\\$1\v'+0.3v'\s+\\n[superscript_size_decrease] .. \######################################################################### .de references -- cgit v1.2.3