summaryrefslogtreecommitdiff
path: root/sphinx/texinputs/sphinxpackageboxes.sty
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos found by codespellDimitri Papadopoulos2023-03-271-3/+3
|
* LaTeX: comment applied workaround to pict2e 0.4b breaking ellipse.styJean-François B2023-03-201-7/+4
|
* LaTeX: unneeded 4 code lines from #11254 trimmedJean-François B2023-03-191-5/+1
| | | | | At some point after having inserted these extras I had ensured that rx and ry where either both zero or both positive, making them unneeded.
* LaTeX: support elliptical corners in rounded boxesJean-François B2023-03-191-46/+175
|
* LaTeX: add <prefix>_{TeXcolor,TeXextras} optionsJean-François B2023-03-191-2/+5
| | | | | | | | And add <type>TextColor and <type>TeXextras for <type>=hint, important, note, tip for variants which do not trigger for sphinxheavybox but still uses sphinxlightbox (suitably enhanced). Similar named TeXcolor and TeXextras options for \sphinxbox.
* LaTeX: refactor some internals related to color namesJean-François B2023-03-191-13/+6
|
* LaTeX: reset options in nested \sphinxbox'esJean-François B2023-03-191-1/+11
|
* LaTeX: let rounded boxes support up to 4 distinct border-widthsJean-François B2023-03-151-120/+97
| | | | | | | Internally replace "strokepath" operation for drawing the border (which mandated constant border-width) by only "fillpath" operations. This also allowed to significantly simplify some other aspects of the code related to box-decoration-break=slice.
* LaTeX: fix a ad3235421 regression with pre_box-shadow-TeXcolorJean-François B2023-03-151-2/+2
| | | | | | | The internally used color name for the (optional) shadow of code-blocks had changed at one place but not another, so using pre_box-shadow-TeXcolor option of 'sphinxsetup' with latex_elements was broken since.
* Dummy commit to re-launch Windows CI (instance of #11232)Jean-François B2023-03-151-1/+0
|
* LaTeX: fix rounded boxes stroke twice their bordersJean-François B2023-03-151-1/+1
|
* LaTeX: add boolean option addstrut to \sphinxbox/\sphinxboxsetupJean-François B2023-03-141-1/+2
|
* LaTeX: also admonition directives support box-decoration-break=sliceJean-François B2023-03-131-7/+7
|
* LaTeX: refactoring of some internals from box-decoration-break supportJean-François B2023-03-131-26/+82
|
* LaTeX: encapsulate dimension options in \dimexprJean-François B2023-03-131-23/+20
|
* Fix #11235: LaTeX: ``\color`` may cause color leaks in topic or noticesJean-François B2023-03-121-8/+40
|
* LaTeX: fix breakage at 4de9d4604 from misuse of \pagecolorJean-François B2023-03-121-1/+1
| | | | | This is a one-argument command to set the page colour, not a toggle to use the page colour!
* Dummy commit to span CI as Windows failed test_gettext_dont_rebuild_moJean-François B2023-03-101-0/+1
|
* LaTeX: comment for future maintenance of \sphinxboxJean-François B2023-03-101-0/+21
|
* LaTeX: guard against \renewsphinxbox[...]{\sphinxbox}Jean-François B2023-03-101-1/+11
|
* LaTeX: \sphinxbox must issue \leavevmode to let TeX enter paragraph modeJean-François B2023-03-101-0/+5
|
* LaTeX: refactoring to avoid code duplicationJean-François B2023-03-091-7/+24
|
* LaTeX: fix some documentation from #11224Jean-François B2023-03-071-1/+1
|
* LaTeX: streamline matters related to pict2e availabilityJean-François B2023-03-071-9/+64
|
* LaTeX: fix a glitch from recent internal renamingsJean-François B2023-03-071-2/+2
| | | | | | On a system with LaTeX package pict2e unavailable it would lead to an infinite loop. Caused by forgotten update of a macro name which has changed meaning.
* LaTeX: ``\sphinxbox`` for boxing inline text elementsJean-François B2023-03-071-0/+24
|
* LaTeX: refactor how display environments use sphinxpackageboxesJean-François B2023-03-071-10/+110
| | | | | This is to share code as much as possible and facilitate future extensions.
* LaTeX: fix unintended 1pt upwards vertical shift of rounded box framesJean-François B2023-03-071-0/+2
| | | | | | | This issue was not clearly visible on code-blocks whose contents always occupy at least one full height line and 1pt is small compared to it and the default padding. It became more obvious when experimenting (work in progress) with applying the macro to inline contents with zero padding.
* LaTeX: guard usage of shadow color via associated booleanJean-François B2023-03-061-2/+5
| | | | modified: sphinxpackageboxes.sty
* LaTeX: Fix shadow color leaks to border (rounded box) if no border colorJean-François B2023-03-061-2/+5
|
* LaTeX: fix another incompatibility with old pict2e LaTeXJean-François B2022-07-231-7/+7
| | | | | | We need to make sure the \put command arguments will expand to a (fractional) number, so \strip@pt is added, and the \dimexpr properly closed with \relax
* Fix #10695: old LaTeX does not allow \@ifpackageloaded usage in bodyJean-François B2022-07-231-16/+0
|
* Mumble... Typo in a LaTeX code commentJean-François B2022-07-151-1/+1
|
* LaTeX: clean-up some LaTeX code comments (follow-up to #10638)Jean-François B2022-07-151-31/+33
|
* LaTeX: enhanced boxes with padding, borders, shadows, rounded cornersJean-François B2022-07-141-79/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii - LaTeX: fix #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 #10651) - LaTeX: documentation of the new CSS-like options - LaTeX: remove #10619 documentation, as the #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
* LaTeX: fix (better) compatibility with "old" LaTeXJean-François B2022-07-051-8/+7
| | | | | There was no need for pre-expansion via \expanded and the latter was not available prior to TL2019
* LaTeX: fix previous commit for "old" LaTeX compatibilityJean-François B2022-07-051-2/+6
|
* LaTeX: optional rounded corners for framing of code-blocksJean-François B2022-07-051-0/+113
Via a new configuration verbatimradius of 'sphinxsetup', which defaults to 0pt. If this dimension is non zero, the LaTeX package pict2e will be loaded to help construct frames with rounded corners for code-blocks. And if the LaTeX package pict2e was not found, a LaTeX warning is issued during PDF build.