Thanks for the detailed answer!
I tried your hints but only thing which worked for me was:
+----------+
| 10000 |
| to |
| 60000 |
+----------+
All the other did not work. I suspect the problem might be in the old
version of Sphinx I use.
Once I have a bit of time I will try it with the latest and will see if
that improves the behavior or not.
Regards,
Vladimir
On 14. 05. 21 12:38, jfbu wrote:
Le 14/05/2021 à 11:54, Vladimír Marek a écrit :
+----------+----------------+--------------------------------------------------------------+
| 10000 | UDP | Audio/video
media. |
| to |
| |
| 60000 |
| |
+----------+----------------+--------------------------------------------------------------+
Hi Vladimir,
copying pasting and fixing blanks to get this
+----------+----------------+--------------------------------------------------------------+
| 10000 | UDP | Audio/video
media. |
| to |
| |
| 60000 |
| |
+----------+----------------+--------------------------------------------------------------+
I see on make latex the following Docutils 16 warning
/.../index.rst:21: WARNING: Definition list ends without a blank line;
unexpected unindent.
This means the
10000
to
is interpreted as a definition list
Despite the warning, some latex file is produced containing a
\begin{description}
\item[{10000}] \leavevmode
\sphinxAtStartPar
to
\end{description}
\sphinxAtStartPar
60000
(the \sphinxAtStartPar is mark-up because I am testing with a recent
Sphinx)
This is a list-like environment and triggers the error.
Using this input
.. tabularcolumns:: |l|L|L|
+----------+----------------+--------------------------------------------------------------+
| 10000 | UDP | Audio/video
media. |
| \ \ \ to |
| |
| 60000 |
| |
+----------+----------------+--------------------------------------------------------------+
compilation works to pdf works.
It works with same result with
.. tabularcolumns:: |l|L|L|
+----------+----------------+--------------------------------------------------------------+
| 10000 | UDP | Audio/video
media. |
| to |
| |
| 60000 |
| |
+----------+----------------+--------------------------------------------------------------+
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 ...
Yes indeed the above input and the l specifier means to produce a
single line
One can force as many lines in output as input like this:
.. tabularcolumns:: |p{1.5cm}|L|L|
+----------+----------------+--------------------------------------------------------------+
| | 10000 | UDP | Audio/video
media. |
| | to |
| |
| | 60000 |
| |
+----------+----------------+--------------------------------------------------------------+
But the pdf output is not nice, because LaTeX adds whitespace before
and after the quoted environment
You can resort to some more devious input
.. |NL| raw:: latex
\newline
.. tabularcolumns:: |p{1.5cm}|L|L|
+--------------+----------------+--------------------------------------------------------------+
| 10000\ |NL| | UDP | Audio/video
media. |
| to\ |NL| |
| |
| 60000 |
| |
+--------------+----------------+--------------------------------------------------------------+
It is mandatory here to use some p{width}, or \Y{0.1} (10% of
available line with) for the column type
However the html output will have a "10000 to 60000" single line, but
I am focusing here on a LaTeX only solution (as I am a bit rusty on
Sphinx generally speaking)
and perhaps there is much simpler way, ah this should work:
.. tabularcolumns:: |p{1.5cm}|L|L|
+--------------+----------------+--------------------------------------------------------------+
| 10000 | UDP | Audio/video
media. |
| |
| |
| to |
| |
| |
| |
| 60000 |
| |
+--------------+----------------+--------------------------------------------------------------+
yes this is much better as it works also for html output; but same
remark about the column type
If copying pasting make sure to keep blanks are as in original, i.e.
the | match across rows
Does this work?
Best,
J.-F.
--
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/066e1021-8e05-cbc1-22d7-bcb111c23708%40frafos.com.