bug-groff
[Top][All Lists]
Advanced

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

[bug #62190] Equation Label Wrongly Positioned from Within an Indented d


From: Damian McGuckin
Subject: [bug #62190] Equation Label Wrongly Positioned from Within an Indented display - 1.22.4
Date: Tue, 15 Mar 2022 17:13:53 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62190>

                 Summary: Equation Label Wrongly Positioned from Within an
Indented display - 1.22.4
                 Project: GNU troff
            Submitted by: damianmoz
            Submitted on: Tue 15 Mar 2022 09:13:51 PM UTC
                Category: Macro mm
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The use os

         EQ (L)

Should put the label (L) on the right hand side margin.  It does so corrected
for left-justified and centered displays. It used to work inearlier versions
of MM, say 1.18.? but I have lost the ability to double check.

The offending line is 2418 in

         /usr/local/share/groff/current/tmac/m.tmac
i.e.
         \h'|\\n[.l]u-\w'\\*[eq*label]'u'\\*[eq*label]

A fix is possible if you replace this like with these 2 lines:

.ie \\n[ds*format]=1 \h'|\\n[.l]u-\w'\\*[eq*label]'u+\\n(Sin'\\*[eq*label]
.el \h'|\\n[.l]u-\w'\\*[eq*label]'u'\\*[eq*label]

I have attached examples of the misaligned and corrected behaviour as PDF
output from:

     groff -rO3.2c -ma4 -mm -fT -t -e -U -p





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 15 Mar 2022 09:13:51 PM UTC  Name: misaligned-eqn-label  Size: 84B  
By: damianmoz
File misaligned-eqn-label provides test cases - original (misaligned) and
corrected PDFs
<http://savannah.gnu.org/bugs/download.php?file_id=52991>
-------------------------------------------------------
Date: Tue 15 Mar 2022 09:13:51 PM UTC  Name: eqnlabel-misaligned.pdf  Size:
5KiB   By: damianmoz
File misaligned-eqn-label provides test cases - original (misaligned) and
corrected PDFs
<http://savannah.gnu.org/bugs/download.php?file_id=52992>
-------------------------------------------------------
Date: Tue 15 Mar 2022 09:13:51 PM UTC  Name: eqnlabel-corrected.pdf  Size:
5KiB   By: damianmoz
File misaligned-eqn-label provides test cases - original (misaligned) and
corrected PDFs
<http://savannah.gnu.org/bugs/download.php?file_id=52993>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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