Table title overlap

39 views
Skip to first unread message

Valerio Monti

unread,
Jun 30, 2021, 9:52:11 AM6/30/21
to PreTeXt support
Hello again,
I don't know if this is a bug or if I am doing something wrong. Anyway: if you put a table inside a theorem (or inside an example, or whatever I guess: I just tried these two) when you convert to LaTeX and then to PDF the title of the table overlaps the preceding text (while in html everything is fine). I enclose a minimal example. I tried putting the table inside a <p> element or not, getting the same problem.

Cheers,
Valerio
overlap.tex
overlap.pdf
overlap.xml

Sean Fitzpatrick

unread,
Jul 5, 2021, 8:44:13 AM7/5/21
to pretext...@googlegroups.com
I think I ran into this in other situations, where the first thing (in a section, theorem, etc) is not a paragraph.

You could try having an empty paragraph at the top, or in the LaTeX file, edit manually to add some space.
If I remember correctly, putting in \leavevmode before the table can help.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/185ee874-2ade-4cb1-b6b5-6f769e710691n%40googlegroups.com.

Valerio Monti

unread,
Jul 5, 2021, 2:43:02 PM7/5/21
to PreTeXt support
Thank you. I should have added that the problem occurs even if there is a paragraph (no matter how long it is) before the table. The title of the table actually overlaps the last line of the preceding paragraph. However, if there is two or more paragraphs before the table, the problem does not occur. By the way, I don't really to solve this for my project (I found this out by accident), but I thought it was worthwhile to report it.

Valerio



Rob Beezer

unread,
Aug 24, 2023, 2:01:58 PMAug 24
to pretext...@googlegroups.com
Dear Valerio,

Its only been two years. :-( I don't think we made any progress on this one.

There is a recent pretext-dev thread titled something like "PDF with images on
top of paragraphs". I strongly suspect your problem here is another symptom of
a broader problem.

Can you watch that thread? It is "theorem" that needs fixing and it won't be
the first thing I do, but I'll announce it on that thread once I get there.

Thanks,
Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/185ee874-2ade-4cb1-b6b5-6f769e710691n%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/185ee874-2ade-4cb1-b6b5-6f769e710691n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Valerio Monti

unread,
Aug 25, 2023, 3:03:41 AMAug 25
to PreTeXt support
Dear Rob,
I had forgotten this report. The discover of that issue was a casual encounter (probably moving piece of sources here and there). Anyway: I downloaded my old source and I build a pdf output (I am currently using PreTeXt-CLI 1.7.5): the output is fine now. I also installed the latest dev build (2.0,0dev20230825) and no overlapping again. Finally I downloaded the old tex file I had generated two years ago: I compiled it now and (rather surprisingly) there is no overlapping now. So, I assume it was some TeX problem after all: unfortunately I cannot guess when and how the problem was solved  since I update my TeX distribution very often (as I wrote I ran into that problem by accident, so the situation I described does not really occur in my project).

That said, I read the thread you pointed me out, and even if the description of the issue is similar, it is likely that they are independent.

All the best,
Valerio
Reply all
Reply to author
Forward
0 new messages