So I debug that a bit and found out following:

the table has 18 rows and only one is problematic.
If the table contains:
+----------+----------------+--------------------------------------------------------------+ | 10000    | UDP            | Audio/video media.                                           | | 60000    | |                                                              |
+----------+----------------+--------------------------------------------------------------+

then table is generated correctly.
However if table contains

+----------+----------------+--------------------------------------------------------------+ | 10000    | UDP            | Audio/video media.                                           | |    to        | |                                                              | | 60000    | |                                                              |
+----------+----------------+--------------------------------------------------------------+

then it breaks compilation. Please note, the formatting is correct, it just looks bad in the email.
Loots like it does not like the 3 lines in the first column.
Talking about those lines, would you know how to force a new line inside the table? If those numbers are on 2 rows then in the final document they are usually on a single line ...

Thanks!
  Vladimir


On 14. 05. 21 11:17, jfbu wrote:
Le 14/05/2021 à 11:10, Vladimír Marek a écrit :


On 14. 05. 21 9:45, jfbu wrote:
Le 14/05/2021 à 09:39, jfbu a écrit :
Le 14/05/2021 à 09:29, Vladimír Marek a écrit :
Yeah sorry, that's what I meant by the "beginning".
I have there something like:

.. tabularcolumns:: |l|L|L|
+-----+-----+----+
|    1  |   2  |  3  |
+-----+-----+----+

V.

ah ok sorry.

If a cell in first column contains a list for example then it will trigger the error you see


! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
  ...
l.106 \end{tabulary}


.. tabularcolumns:: |l|L|L|

+-----+-----+----+
| - a |  2  | 3  |
+-----+-----+----+


the l specifier is not compatible with list in table cell



the L specifier also is incompatible
according to https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=table#tables
the L is suppose to be supported ...


The L is a tabulary specific specifier and tabulary is not compatible with "problematic" contents in table cells.

The doc says further down:

Tables that contain list-like elements such as object descriptions, blockquotes or any kind of lists cannot be set out of the box with tabulary. They are therefore set with the standard LaTeX tabular (or longtable) environment if you don’t give a tabularcolumns directive. If you do, the table will be set with tabulary but you must use the p{width} construct (or Sphinx’s \X and \Y specifiers described below) for the columns containing these elements.


However it would be interesting to have a concrete example of a problematic grid table else the discussion may be off the mark



You can use p{2cm}, or the \X, \Y from Sphinx, e.g. \Y{0.3} to occupy 30% of page width for that column

is that your case?
Best,
JF







--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/cf9ce59e-4f2d-303c-1e9c-68685dfbb820%40frafos.com.

Reply via email to