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
Can't change sphinxnote to use sphinxheavybox starting with 5.1.0 #11074
Comments
Yes since #10648 the heavybox environment executes some LaTeX set-up which depends on the name of the notice (warning, attention, etc...) and configures the rendering to match either the default or the I have been thinking briefly on your problematic and see currently two ways:
Not tested, but if you tell me which way looks best, I can give more details. As per making your usage work out-of-the-box at it worked with Sphinx 5.0 I do not see this at this time as really feasible in a natural way. Not tagging this ticket as |
The documentation does point out that the admonition boxes can be
Also I'm somewhat convinved that there're other users than me who would rather prefer an identical styling of all admonition boxes. Regarding |
@therealprof I wrote this 6 years ago and it wasn't meant to imply one could use The This being said, I am willing to refactor a bit the code so that your use case would work as is. This will be a bit costly but well my initial impression is that it is feasible. Must look into it. |
@therealprof Done for 6.1.0. |
Thanks a lot! |
Describe the bug
I used to redefine the "light" box environments to use heavybox instead:
However, starting with 5.1.0 I get the following error(s) when running LaTeX on the generated code:
with previous versions this worked fine and as intended. I haven't been able to find a workaround but I suppose this might be related to the introduction of the new configuration attributes in #10648 which doesn't exist for notes?
How to Reproduce
Add this to your
conf.py
and try to render a document which uses notes:Environment Information
Sphinx extensions
No response
Additional context
5.0.2 works just fine, every later version I tried after that is broken.
The text was updated successfully, but these errors were encountered: