[latex3-commits] [git/LaTeX3-latex3-latex3] master: Pick up current color before parsing expression (46456d8)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Feb 26 20:56:13 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/46456d8e3ad5157c27224a59ba92d281c7f71968

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

commit 46456d8e3ad5157c27224a59ba92d281c7f71968
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Feb 26 19:56:13 2018 +0000

    Pick up current color before parsing expression
    
    This is needed in package mode:
    in format mode this will presumable be set from the get-go.


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

46456d8e3ad5157c27224a59ba92d281c7f71968
 l3experimental/l3color/l3color.dtx |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/l3experimental/l3color/l3color.dtx b/l3experimental/l3color/l3color.dtx
index a9939b7..b4696a4 100644
--- a/l3experimental/l3color/l3color.dtx
+++ b/l3experimental/l3color/l3color.dtx
@@ -445,6 +445,10 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \color_parse:nN #1#2
   {
+%<*package>
+    \driver_color_pickup:N \l_@@_current_tl
+    \tl_set_eq:cN { l_@@_named_ . _tl } \l_@@_current_tl
+%</package>
     \group_begin:
       \seq_map_inline:Nn \l_char_active_seq
         {





More information about the latex3-commits mailing list