sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.51k stars 2.12k forks source link

LaTeX: contrarily to doc, ``div.topic_box-shadow`` if used with a single dimension only sets the x-offset, and y-offset remains nil #12778

Closed jfbu closed 2 months ago

jfbu commented 2 months ago

Describe the bug

Our docs say:

but in case a single dimension is used only x-offset is set, the y-offset of the shadow remains nil.

How to Reproduce

latex_elements = {
    'sphinxsetup': 'div.topic_box-shadow=10pt',
}

and index.rst:

.. topic:: Title

   contents

then make latexpdf with Sphinx v5.1.0 or later. Then there is a 10pt wide "shadow" on the right but nothing below. Versions of Sphinx prior to v6.2.1 additionally have a strange shortening of the box width. Starting at v6.2.1 at least the lateral shadow is in margin as described in documentation.

Environment Information

Python version:        3.12.3 (v3.12.3:f6650f9ad7, Apr  9 2024, 08:18:48) [Clang 13.0.0 (clang-1300.0.29.30)])
Python implementation: CPython
Sphinx version:        6.2.1
Docutils version:      0.21.2
Jinja2 version:        3.1.4
Pygments version:      2.18.0

Sphinx extensions

No response

Additional context

No response

jfbu commented 2 months ago

Fixed by #12704.