Improve latex docs of `latex_use_latex_multicolumn` config setting

This commit is contained in:
jfbu 2017-05-11 10:24:10 +02:00
parent 1385e1ac1b
commit e20f28ce70

View File

@ -1640,17 +1640,16 @@ These options influence LaTeX output. See further :doc:`latex`.
.. confval:: latex_use_latex_multicolumn .. confval:: latex_use_latex_multicolumn
If ``False`` (default), the LaTeX writer uses for merged cells in grid The default is ``False``: it means that Sphinx's own macros are used for
tables Sphinx's own macros. They have the advantage to allow the same merged cells from grid tables. They allow general contents (literal blocks,
contents as in non-merged cells (inclusive of literal blocks, lists, lists, blockquotes, ...) but may have problems if the
blockquotes, ...). But they assume that the columns are separated by the :rst:dir:`tabularcolumns` directive was used to inject LaTeX mark-up of the
standard vertical rule. Further, in case the :rst:dir:`tabularcolumns` type ``>{..}``, ``<{..}``, ``@{..}`` as column specification.
directive was employed to inject more macros (using LaTeX's mark-up of the
type ``>{..}``, ``<{..}``, ``@{..}``) the multicolumn cannot ignore these Setting to ``True`` means to use LaTeX's standard ``\multicolumn``; this is
extra macros, contrarily to LaTeX's own ``\multicolumn``; but Sphinx's incompatible with literal blocks in the horizontally merged cell, and also
version does arrange for ignoring ``\columncolor`` like the standard with multiple paragraph in such cell if the table is rendered using
``\multicolumn`` does. Setting to ``True`` means to use LaTeX's standard ``tabulary``.
``\multicolumn`` macro.
.. versionadded:: 1.6 .. versionadded:: 1.6