[latex3-commits] [git/LaTeX3-latex3-babel] main: Fix most issues of tcolorbox in RTL (1c1ddef)

GitHub noreply at github.com
Fri Aug 26 22:15:21 CEST 2022


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/1c1ddeff23c0357324d5c754ef4a1adbb13b3a8f

>---------------------------------------------------------------

commit 1c1ddeff23c0357324d5c754ef4a1adbb13b3a8f
Author: Salim Bou <salimcollo7 at gmail.com>
Date:   Wed Aug 10 10:28:30 2022 +0100

    Fix  most issues of tcolorbox  in RTL


>---------------------------------------------------------------

1c1ddeff23c0357324d5c754ef4a1adbb13b3a8f
 babel.dtx | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/babel.dtx b/babel.dtx
index d9ebe75..1950d6a 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -14941,13 +14941,18 @@ end
         \bbl at sreplace\tikz{\begingroup}{\begingroup\bbl at pictsetdir\tw@}%
       \fi
       \ifx\tcolorbox\@undefined\else
-        \AddToHook{env/tcolorbox/begin}{\bbl at pictsetdir\@ne}%
-        \bbl at sreplace\tcb at savebox
-          {\ignorespaces}{\ignorespaces\bbl at pictresetdir}%
-        \ifx\tikzpicture at tcb@hooked\@undefined\else
-          \bbl at sreplace\tikzpicture at tcb@hooked{\noexpand\tikzpicture}%
-            {\textdir TLT\noexpand\tikzpicture}%
-        \fi
+        \def\tcb at drawing@env at begin{%
+        \csname tcb at before@\tcb at split@state\endcsname%
+        \bbl at pictsetdir\tw@
+        \begin{\kvtcb at graphenv}%
+        \tcb at bbdraw%
+        \tcb at apply@graph at patches%
+        }%
+       \def\tcb at drawing@env at end{%
+       \end{\kvtcb at graphenv}%
+       \bbl at pictresetdir
+       \csname tcb at after@\tcb at split@state\endcsname%
+       }%
       \fi
     }}
   {}





More information about the latex3-commits mailing list.