Commit ce998e6f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

subdev-formats.rst: don't use adjustbox on a longtable

adjustbox doesn't work on longtables. Also, this
causes an error on LaTeX in interactive mode.

So, use, instead, a tiny font.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent e2a91f4f
...@@ -1526,9 +1526,16 @@ The following table lists existing packed Bayer formats. The data ...@@ -1526,9 +1526,16 @@ The following table lists existing packed Bayer formats. The data
organization is given as an example for the first pixel only. organization is given as an example for the first pixel only.
.. HACK: ideally, we would be using adjustbox here. However, Sphinx
.. is a very bad behaviored guy: if the table has more than 30 cols,
.. it switches to long table, and there's no way to override it.
.. raw:: latex .. raw:: latex
\newline\newline\begin{adjustbox}{width=\columnwidth} \begingroup
\tiny
\setlength{\tabcolsep}{2pt}
.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}| .. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|
...@@ -2314,7 +2321,7 @@ organization is given as an example for the first pixel only. ...@@ -2314,7 +2321,7 @@ organization is given as an example for the first pixel only.
.. raw:: latex .. raw:: latex
\end{adjustbox}\newline\newline \endgroup
Packed YUV Formats Packed YUV Formats
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment