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/s7lf83%24k1p%241%40ciao.gmane.io.

Reply via email to