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

                 Summary: [mm] Inconsistent TC Section Title Indentation
                   Group: GNU roff
               Submitter: afh
               Submitted: Sat 10 Jan 2026 08:52:52 AM UTC
                Category: Macro package mm
                Severity: 3 - Normal
              Item Group: Rendering/Cosmetics
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 10 Jan 2026 08:52:52 AM UTC By: Alexis <afh>
The following issue was originally reported to the
[https://mail.gnu.org/archive/html/groff/2025-12/msg00016.html groff mailing
list] and after having spent more time with groff it seems to me that the
issue also exists in groff 1.23.0, which is why I decided to open this issue,
hoping it might be addressed for the upcoming 1.24.0 release.

While familiarizing myself with the capabilities of the mm macros, I noticed
that the section titles on the table of contents, list of figures, list of
tables, etc. pages—produced by the TC macro—appear misaligned, i.e. not
properly centered.

To validate my assumption I created a minimal working example (see attached
mwe-mm-tc-section-indentation.mm) which replaces the section title strings
with a line-length rule to visualize page offsets/indentation and
line-lengths. The rendering results of the mwe for different groff versions
are shown below.

Please find attached a best-guess patch, which appears to address the
immediate issue, but might miss more sophisticated setups, e.g. when the
user-defined macros TX or TY into play.

Using groff 1.23.0 the mwe rules start at different positions from the left
and run the entire line length unfortunately overshooting the page due to the
incorrect indentation.

nroff -P-cbou -mm mwe-mm-tc-section-indentation.mm | grep -v '^[[:space:]]*$'
      sMinimal Working Example for                  dat2025‐12‐05
       Inconsistent   TC   Section   Title
       Indentation                                  from:
                           MEMORANDUM FOR FILE
       1.  Heading Example
                  Equation 1.  Equation Caption Example
                   Exhibit 1.  Exhibit Caption Example
                    Figure 1.  Figure Caption Example
                     TABLE 1.  Table Caption Example
       ____________________________________________________________
       1.  Heading Example ...................................... 1
                                     i
           ____________________________________________________________
       Figure 1.  Figure Caption Example ........................ 1
                                    ii

____________________________________________________________
       TABLE 1.  Table Caption Example .......................... 1
                                    iii
                 ____________________________________________________________
       Exhibit 1.  Exhibit Caption Example ...................... 1
                                    iv


Using groff built from latest commit (cfcfe1dde5b1752484dcd94dde1d65c65a5540fb
from Fri Jan 9 15:33:12 2026 -0600) the mwe rules start at different positions
from the left and run the entire line length unfortunately overshooting the
page due to the incorrect indentation.

nroff -P-cbou -mm mwe-mm-tc-section-indentation.mm | grep -v '^[[:space:]]*$'
       subject: Minimal Working Example for   date: 2025‐12‐05
                Inconsistent TC Section
                Title Indentation             from:
                           TECHNICAL MEMORANDUM
       1.  Heading Example
                  Equation 1.  Equation Caption Example
                   Exhibit 1.  Exhibit Caption Example
                    Figure 1.  Figure Caption Example
                     Table 1.  Table Caption Example
       ____________________________________________________________
       1.  Heading Example ...................................... 1
                                     i
           ____________________________________________________________
       Figure 1.  Figure Caption Example ........................ 1
                                    ii

____________________________________________________________
       Table 1.  Table Caption Example .......................... 1
                                    iii
                 ____________________________________________________________
       Exhibit 1.  Exhibit Caption Example ...................... 1
                                    iv


Using groff built from latest commit (cfcfe1dde5b1752484dcd94dde1d65c65a5540fb
from Fri Jan 9 15:33:12 2026 -0600) with the attached patch applied the mwe
rules appear properly left aligned and run the entire line length:

nroff -P-cbou -mm mwe-mm-tc-section-indentation.mm | grep -v '^[[:space:]]*$'
       subject: Minimal Working Example for   date: 2025‐12‐05
                Inconsistent TC Section
                Title Indentation             from:
                           TECHNICAL MEMORANDUM
       1.  Heading Example
                  Equation 1.  Equation Caption Example
                   Exhibit 1.  Exhibit Caption Example
                    Figure 1.  Figure Caption Example
                     Table 1.  Table Caption Example
       ____________________________________________________________
       1.  Heading Example ...................................... 1
                                     i
       ____________________________________________________________
       Figure 1.  Figure Caption Example ........................ 1
                                    ii
       ____________________________________________________________
       Table 1.  Table Caption Example .......................... 1
                                    iii
       ____________________________________________________________
       Exhibit 1.  Exhibit Caption Example ...................... 1
                                    iv








    _______________________________________________________
File Attachments:

Name: mm-print-ds-in.patch           Size: 217B
    <https://file.savannah.gnu.org/file/mm-print-ds-in.patch?file_id=58092>

Name: mwe-mm-tc-section-indentation.mm Size: 361B

<https://file.savannah.gnu.org/file/mwe-mm-tc-section-indentation.mm?file_id=58093>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-7f2502422ca8a0e66cc31e092529630c17f6c7cf.tar.gz

    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to