Repository navigation
LaTeX: refactor sphinxShadowBox to allow colors for frame and shadow - #10619
Conversation
8153dbf to
6afde2e
Compare
|
Thanks as always for reviewing @tk0miya! I thought about adding interface for coloring the contents but it is now available to Sphinx user via something such as (btw I don't think the Now merging... |
Indeed shadowBorderColor and shadowShadowColor added at sphinx-doc#10619 are now named respectively: aside.topic-border-TeXcolor and aside.topic-box-shadow-TeXcolor And a new parameter aside.topic-background-TeXcolor has been added.
Indeed shadowBorderColor and shadowShadowColor added at sphinx-doc#10619 are now named respectively: aside.topic_border-TeXcolor and aside.topic_box-shadow-TeXcolor And a new parameter aside.topic_background-TeXcolor has been added.
|
This got refactored at #10648 with new names |
- 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 - LaTeX: remove sphinx-doc#10619 documentation, as the sphinx-doc#10619 added shadowBorderColor and shadowShadowColor now named respectively: aside.topic_border-TeXcolor and aside.topic_box-shadow-TeXcolor - LaTeX: use div.topic option prefix and not aside.topic for CSS-like options - LaTeX: keep the implicit legacy padding of warning type boxes as default behaviour
|
was superseded by #10648 |
This adds possibility of colors for the "shadowed" box used for the
topicandcontentsdirectives.No change to existing output, as default colors left to black.
Here is an example of use:

(the box allows pagebreaks as formerly, this is not shown here)
The example uses:
in
conf.py.edit. I messed up horizontal width, will fix later to maintain behaviour as current. Well I wll never understood what went wrong, so I redid it entirely, and the code is much closer to current one.
Here is an example of use with a page break, to show no color leaks:

with
conf.py: