Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfbu opened this issue Aug 13, 2024 · 1 comment

Comments

@jfbu
Copy link
Contributor

jfbu commented Aug 13, 2024

Describe the bug

Our docs say:

  • <prefix>_box-shadow is special in so far as it may be:
    • the none keyword,
    • or a single dimension (giving both x-offset and y-offset),
    • or two dimensions (separated by a space),
    • or two dimensions followed by the keyword inset.

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 jfbu added the type:bug label Aug 13, 2024
jfbu added a commit to jfbu/sphinx that referenced this issue Aug 13, 2024
jfbu added a commit to jfbu/sphinx that referenced this issue Aug 13, 2024
@jfbu jfbu added this to the 8.x milestone Aug 13, 2024
@jfbu
Copy link
Contributor Author

jfbu commented Aug 19, 2024

Fixed by #12704.

@jfbu jfbu closed this as completed Aug 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2024
@AA-Turner AA-Turner modified the milestones: 8.x, 8.1.0 Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants