Skip to content
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

LaTeX: overlap of contents if warning directive border-width set by warningborder key is about 8p or 9pt #10651

Closed
jfbu opened this issue Jul 9, 2022 · 1 comment

Comments

@jfbu
Copy link
Contributor

jfbu commented Jul 9, 2022

Describe the bug

See the screenshot.

The reason is that the padding parameter is not separately accessible but set automatically so that the sum with the border width is constant. Staring with a border width of 5pt or 6pt, already the text is in risk of overlap.

How to Reproduce

latex_elements = {
    'sphinxsetup': "warningborder=9pt",
}

and

.. warning:: This has a problem with a too large border width from the
   ``warningborder`` configuration.

Your project

see example

Screenshots

Capture d’écran 2022-07-09 à 23 18 33

OS

Mac

Python version

3.10.4

Sphinx version

5.0.0

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

@jfbu jfbu added this to the 5.1.0 milestone Jul 9, 2022
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 9, 2022
- LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii

- LaTeX: fix sphinx-doc#10650 via usage of our own sophisticated \fcolorbox

- LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames

- LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes

- LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and
  topics

- LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices
  (fix sphinx-doc#10651)

- LaTeX: documentation of the new CSS-like options
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 9, 2022
- LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii

- LaTeX: fix sphinx-doc#10650 via usage of our own sophisticated \fcolorbox

- LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames

- LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes

- LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and
  topics

- LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices
  (fix sphinx-doc#10651)

- LaTeX: documentation of the new CSS-like options
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 9, 2022
- LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii

- LaTeX: fix sphinx-doc#10650 via usage of our own sophisticated \fcolorbox

- LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames

- LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes

- LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and
  topics

- LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices
  (fix sphinx-doc#10651)

- LaTeX: documentation of the new CSS-like options
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 9, 2022
- LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii

- LaTeX: fix sphinx-doc#10650 via usage of our own sophisticated \fcolorbox

- LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames

- LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes

- LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and
  topics

- LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices
  (fix sphinx-doc#10651)

- LaTeX: documentation of the new CSS-like options
jfbu added a commit to jfbu/sphinx that referenced this issue Jul 10, 2022
- LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii

- LaTeX: fix sphinx-doc#10650 via usage of our own sophisticated \fcolorbox

- LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames

- LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes

- LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and
  topics

- LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices
  (fix sphinx-doc#10651)

- LaTeX: documentation of the new CSS-like options
@jfbu jfbu closed this as completed in 64647ca Jul 14, 2022
@jfbu
Copy link
Contributor Author

jfbu commented Jul 14, 2022

The #10648 allows to fix this via setting suitably the padding; but default current behaviour is maintained for exact stabiliity of behaviour at 5.1.0 release.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2022
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

1 participant