summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/colorframed/colorframed.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-09-24 03:04:02 +0000
committerNorbert Preining <norbert@preining.info>2022-09-24 03:04:02 +0000
commit41d1be12f4963b0f5bf9903116883f1458b58960 (patch)
treed12cd4aba21868c5b740e03dd751cd9088154b80 /macros/latex/contrib/colorframed/colorframed.sty
parent93fb03ea65cbfc0770b6b22d07b1a2d8098b23aa (diff)
CTAN sync 202209240304
Diffstat (limited to 'macros/latex/contrib/colorframed/colorframed.sty')
-rw-r--r--macros/latex/contrib/colorframed/colorframed.sty18
1 files changed, 16 insertions, 2 deletions
diff --git a/macros/latex/contrib/colorframed/colorframed.sty b/macros/latex/contrib/colorframed/colorframed.sty
index db6a5d5e2f..677cdef8a2 100644
--- a/macros/latex/contrib/colorframed/colorframed.sty
+++ b/macros/latex/contrib/colorframed/colorframed.sty
@@ -1,9 +1,23 @@
-% colorframed.sty v0.9 2022/09/22
+% colorframed.sty v0.9a 2022/09/23
% Copyright (c) 2022 Jean-François Burnol
% Distributed under the terms of the LPPL 1.3c, see README.md
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{colorframed}
- [2022/09/22 v0.9 fix `framed' breakable boxes colour leaks (JFB)]
+ [2022/09/23 v0.9a fix `framed' breakable boxes colour leaks (JFB)]
+% This is actually same as 0.9 release of 2022/09/22 apart from these
+% comments:
+%
+% The analysis and original workarounds for using framed.sty
+% with colours were developed by me in some contributions I made
+% to the Sphinx project (\url{https://github.com/sphinx-doc/sphinx})
+% and I am transferring here the general idea.
+%
+% The key thing is that the boxes handled by framed.sty may
+% contain isolated colour push or colour pop. We must make
+% sure an isolated colour push, if followed by colour changes,
+% is always followed by paired ones, and never by a colour pop
+% from a colour command originated "prior".
+%
\RequirePackage{framed}
\RequirePackage{color}
% First we must make \MakeFramed/\endMakeFramed colour safe.