summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-09-23 20:43:28 +0000
committerKarl Berry <karl@freefriends.org>2022-09-23 20:43:28 +0000
commitf0bcb6349d40235572cf0ab2cb5c8d3a460d1b53 (patch)
treecfebb0737389e3e20e5fa98d9170322d24d822ea /Master/texmf-dist/tex
parent1067c74039eeb02fff30406ade1c0e0cbc65b057 (diff)
colorframed (23sep22)
git-svn-id: svn://tug.org/texlive/trunk@64486 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/colorframed/colorframed.sty18
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/colorframed/colorframed.sty b/Master/texmf-dist/tex/latex/colorframed/colorframed.sty
index db6a5d5e2fe..677cdef8a29 100644
--- a/Master/texmf-dist/tex/latex/colorframed/colorframed.sty
+++ b/Master/texmf-dist/tex/latex/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.