bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #58736] [me] footnote breaks two-column output


From: G. Branden Robinson
Subject: [bug #58736] [me] footnote breaks two-column output
Date: Sun, 25 Sep 2022 23:53:09 -0400 (EDT)

Follow-up Comment #32, bug #58736 (project groff):

Hi Dave,

Here's a patch to try out.


diff --git a/tmac/e.tmac b/tmac/e.tmac
index a3b529c3e..9a222ec54 100644
--- a/tmac/e.tmac
+++ b/tmac/e.tmac
@@ -411,7 +411,12 @@
 .wh -\\n(_Bu @r
 .if \\n(?n \
 .      nm \\n(ln
+.if \\n(_f \
+.      if !\\n(_f=\\n($m \
+.              @err writing \\n($m-column footnote in \\n(_f-column \
+layout
 .|f
+.nr _f 0
 .if \\n(?n \
 .      nm
 .fi
@@ -1600,6 +1605,11 @@
 .
 .de (f                 \" *** begin footnote
 .if "\\n(.z"|f" .do @err footnotes cannot be nested
+.if \\n(_f \
+.      if !\\n(_f=\\n($m \
+.              @err queueing \\n($m-column footnote after \
+\\n(_f-column footnote
+.nr _f \\n($m
 .ie "\\n(.z"" \
 \{\
 .      nr _D \\n(dn
@@ -2149,6 +2159,7 @@
 .@R ?C\"               \" at chapter header?
 .@R ?e\"               \" in equation?
 .@R ?f\"               \" inside footnote?
+.@R _f\"               \" column count of previous footnote
 .@R ?H\"               \" suppress headers and footers next page?
 .@R ?I\"               \" has the header trap been sprung?
 .@R ?N\"               \" numbering with shorter line length?


I'm attaching it as well, along with my test cases.

(file #53755, file #53756, file #53757)

    _______________________________________________________

Additional Item Attachment:

File name: 58736.diff                     Size:2 KB
    <https://file.savannah.gnu.org/file/58736.diff?file_id=53755>

File name: footnoted-column-switcher-2.me Size:1 KB
   
<https://file.savannah.gnu.org/file/footnoted-column-switcher-2.me?file_id=53756>

File name: footnoted-column-switcher-1.me Size:1 KB
   
<https://file.savannah.gnu.org/file/footnoted-column-switcher-1.me?file_id=53757>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58736>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]