[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Long text in tbl won't wrap, maybe related to mom
From: |
T. Kurt Bond |
Subject: |
Re: Long text in tbl won't wrap, maybe related to mom |
Date: |
Fri, 5 Feb 2021 16:14:22 -0500 |
I can't remember if the groff mailing list allows small attachments or not,
so I'm trying to attach the mom source I used (in a .zip so the tabs won't
get modified) and the output pdf it produces to this email.
Oh, and the slightly munged version of groff from git I was using
was 1.22.4.196-1d2d-dirty.
And here's the exact groff command I used and its output:
groff -t -Tpdf -mom x.mom >x.pdf
troff: x.mom:2: error: can't transparently output node at top level
troff: x.mom:13: warning [p 1, 1.5i, div '3tbd2,0', 0.0i]: cannot adjust
line
warning: file 'x.mom', around line 13:
table wider than line width
warning: file 'x.mom', around line 8:
table squeezed horizontally to fit line length
Can someone try and see if they can reproduce these results with the
current groff git source?
On Fri, Feb 5, 2021 at 2:26 PM T. Kurt Bond <tkurtbond@gmail.com> wrote:
> When I tried this with groff 1.22.4 I got a bad result, with the table
> cells not flowed correctly and the table itself too wide and extending off
> the right side of the PDF:
> [image: image.png]
>
> I think you were expecting something like this:
> [image: image.png]
> which is what I get when I change the last format line to leave out the
> width specifications like this: "lti | lt | lp8 | l." and ran it with the
> slightly munged (but with nothing in mom changed) and several months out of
> date version of groff from git. (it's out of date since it's been several
> months since making groff finished successfully. I'm on macOS, and I
> *think* it's something in Xcode causing the problem.)
>
> Perhaps something changed in mom between 1.22.4 and the git version of
> groff? You might be able to install a newer version of mom from the mom
> download page <https://www.schaffter.ca/mom/mom-05.html> and check if
> that works with 1.22.4?
>
>
> On Fri, Feb 5, 2021 at 11:43 AM Bento Borges Schirmer <
> bbschirmer@inf.ufsm.br> wrote:
>
>> Hey, thanks for the quick response!
>>
>> > I don't know what the intended appearance was supposed to be, but
>> > this sort-of works; substitute a tab-character for each <TAB> ...
>>
>> Sorry about my omission, but I did use tab; I guess they were replaced by
>> spaces
>> after sending the e-mail, however. For instance, if I use tab(@) and
>> replace the
>> tabs with @, the problem persists with the mom package. I now perceive
>> that the
>> following error ensues:
>>
>> $ groff -Tpdf -t -mom exemplo-minimo-mom.mom > exemplo-minimo-mom.pdf
>> troff: exemplo-minimo-mom.mom:2: can't transparently output node at top
>> level
>> warning: file 'exemplo-minimo-mom.mom', around line 13:
>> table wider than line width
>>
>> $ pdfmom -t exemplo-minimo-mom.mom > exemplo-minimo-mom.pdf
>> troff: exemplo-minimo-mom.mom:2: can't transparently output node at top
>> level
>> warning: file 'exemplo-minimo-mom.mom', around line 13:
>> table wider than line width
>>
>> even though I expected T{ T} to handle this.
>> https://www.troff.org/faq.html
>> has an image illustrating what I expected, whereas the table currently
>> just
>> runs off to the right of the page unless I don't use the mom package.
>>
>> Best regards,
>> Bento
>>
>>
>
> --
> T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io
>
--
T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io


x-mom.zip
Description: Zip archive
x.pdf
Description: Adobe PDF document
- Long text in tbl won't wrap, maybe related to mom, Bento Borges Schirmer, 2021/02/05
- Re: Long text in tbl won't wrap, maybe related to mom, Mike Bianchi, 2021/02/05
- Re: Long text in tbl won't wrap, maybe related to mom, Bento Borges Schirmer, 2021/02/05
- groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), G. Branden Robinson, 2021/02/07
- Re: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), Axel Kielhorn, 2021/02/08
- Message not available
- Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), T. Kurt Bond, 2021/02/09
- Re: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), T. Kurt Bond, 2021/02/09
- Re: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), Dave Kemper, 2021/02/09
- Re: Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), Bjarni Ingi Gislason, 2021/02/09
- Re: Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), T. Kurt Bond, 2021/02/10
- Re: Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), T. Kurt Bond, 2021/02/10
- Re: Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom), G. Branden Robinson, 2021/02/11