On Saturday, 22 August 2026 17:12:43 British Summer Time Ingo Schwarze wrote:
> I think the best example i have is this one:
> 
>   https://www.openbsd.org/papers/eurobsdcon2018-mandoc.roff
>   https://www.openbsd.org/papers/eurobsdcon2018-mandoc.pdf

Hi Ingo,

I tested this out using git master and unfortunately it is not working 
correctly, it looks like the commit 0afa651fd in 2024 to BVL converting a 
string register to numeric is the culprit. This is the patch I used to get .LI 
working properly:-

diff --g/ontritmac b/contrib/m8..760f18233 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2763,11 +2763,11 @@ exceeds depth of nested lists (\\n[li*lvl])
 .de BVL
 \\*[debug@dump-args]\\
 .if \\n[.$]>3 .@warning \\$0: ignoring excess arguments
-.ie \\n[.$]<1 .nr li*text-indent \\n[Pi]
-.el           .nr li*text-indent \\$1
-.ie \\n[.$]<3 .LB 0\\n[li*text-indent] 0\\$2 0 -1
-.el           .LB 0\\n[li*text-indent] 0\\$2 0 -1 \& 0 1
-.rr li*text-indent
+.ie \\n[.$]=0 .ds li*text-indent \\n[Pi]
+.el           .ds li*text-indent \\$1
+.ie \\n[.$]<3 .LB 0\\*[li*text-indent] 0\\$2 0 -1
+.el           .LB 0\\*[li*text-indent] 0\\$2 0 -1 \& 0 1
+.rm li*text-indent
 ..
 .\" List types `BL` and `DL` use bullets and em dashes, respectively, as
 .\" the item marks, and use register `Pi` to determine text indentation.

A more minor issue (which I did not pursue) is that the last line of page 5 no 
longer fits on the page and is thrown to a new page. I don't know whether the 
problems are deliberate changes of behaviour or unintentional. I also tested 
whether gropdf could produce the document (without presentps, but with 
".pdftransition SLIDE Wipe 1 H" added), the result is here:-

https://chuzzlewit.co.uk/eurobsdcon2018-mandoc.pdf[1]

This also shows the minor problem of page 5 (which also occurs with current 
grops/presentps as well).

Cheers

Deri

--------
[1] https://chuzzlewit.co.uk/eurobsdcon2018-mandoc.pdf




  • ... kollar
    • ... G. Branden Robinson
      • ... Ingo Schwarze
        • ... G. Branden Robinson
          • ... Ingo Schwarze
            • ... Deri via discussion of the GNU roff typesetting system and related software
              • ... G. Branden Robinson
                • ... Deri via discussion of the GNU roff typesetting system and related software
                • ... G. Branden Robinson
                • ... Ingo Schwarze
      • ... kollar

Reply via email to