
假設一個表格中的一些表格行完全由包含多行的儲存格組成。
下表中的第 2 行就是這樣的一行。
+-----------------------+-----------------------+-----------------------+
| row1/col1 | row1/col2 | row1/col3 |
+-----------------------+-----------------------+-----------------------+ _____pagebreak here can be done with longtable
| line 1 of row2/col1 | line 1 of row2/col2 | line 1 of row2/col3 | __ Allow pagebreak here
| line 2 of row2/col1 | line 2 of row2/col2 | line 2 of row2/col3 | __ Allow pagebreak here
| line 3 of row2/col1 | line 3 of row2/col2 | line 3 of row2/col3 | __ Allow pagebreak here
| line 4 of row2/col1 | line 4 of row2/col2 | line 4 of row2/col3 |
+-----------------------+-----------------------+-----------------------+ _____pagebreak here can be done with longtable
| row3/col1 | row3/col2 | row3/col3 |
+-----------------------+-----------------------+-----------------------+
在 LaTeX 中是否可以有允許在該行的行之間進行分頁的表格?
(longtable 不適合 - 它允許在表格的行之間進行分頁,但不允許在屬於一行的行之間進行分頁。)
答案1
+-----------------------+-----------------------+-----------------------+
| row1/col1 | row1/col2 | row1/col3 |
+-----------------------+-----------------------+-----------------------+ _____pagebreak here can be done with longtable
| line 1 of row2/col1 | line 1 of row2/col2 | line 1 of row2/col3 |
. . . . . . . . . . . . . . . . . . . . . . . . . __ row where no horizontal rule is drawn
| line 2 of row2/col1 | line 2 of row2/col2 | line 2 of row2/col3 |
. . . . . . . . . . . . . . . . . . . . . . . . . __ row where no horizontal rule is drawn
| line 3 of row2/col1 | line 3 of row2/col2 | line 3 of row2/col3 |
. . . . . . . . . . . . . . . . . . . . . . . . . __ row where no horizontal rule is drawn
| line 4 of row2/col1 | line 4 of row2/col2 | line 4 of row2/col3 |
+-----------------------+-----------------------+-----------------------+ _____pagebreak here can be done with longtable
| row3/col1 | row3/col2 | row3/col3 |
+-----------------------+-----------------------+-----------------------+
如果您可以將表格行中的行轉換為表格行,但不繪製水平線,那麼 longtable 可以完成這項工作。
這需要「手動」完成第 2 行儲存格內的所有換行。