You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is another problem when you have multiple paragraphs in one table cell, for example like this:
+----+----+
| 00 | X |
+----+----+
| 01 | X |
+----+----+
| 02 | P1 |
| | |
| | P2 |
+----+----+
| 03 | X |
+----+----+
| 04 | X |
...
| 30 | X |
+----+----+
This works in HTML, and in Latex as long as there are not over 30 rows. P1 and P2 are separate paragraphs on separate lines.
But above 30 rows, the latex writer switches from tabulary to longtable. For some reason that causes the paragraphs P1 and P2 to get merged onto the same line.
The self.table.has_problematic mode of sphinx/writers/latex.py (i.e. changing colspec from l to p) seems to help. I'm not sure what the downsides are though.
Should if self.table: self.table.has_problematic = True be added to LaTeXTranslator.visit_paragraph?
Or should LaTeXTranslator.depart_table just be changed to always use p for self.table.longtable?
Or maybe there is a better solution?
tex.stackexchange has many more or less complicated suggestions for how to force line breaks in table cells...
There is another problem when you have multiple paragraphs in one table cell, for example like this:
This works in HTML, and in Latex as long as there are not over 30 rows. P1 and P2 are separate paragraphs on separate lines.
But above 30 rows, the latex writer switches from
tabulary
tolongtable
. For some reason that causes the paragraphs P1 and P2 to get merged onto the same line.The text was updated successfully, but these errors were encountered: