[latex3-commits] [l3svn] 02/03: Store page colour in global tl
noreply at latex-project.org
noreply at latex-project.org
Wed Oct 25 08:34:21 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 04c11b1f644e46a739cc6ec973843090a8f1cf71
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Oct 25 07:22:18 2017 +0100
Store page colour in global tl
This will be needed by pdfTeX/LuaTeX so makes sense to deal with more
generally.
---
l3trial/l3color-extras/l3color-extras.dtx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/l3trial/l3color-extras/l3color-extras.dtx b/l3trial/l3color-extras/l3color-extras.dtx
index 6acef80..3875ca9 100644
--- a/l3trial/l3color-extras/l3color-extras.dtx
+++ b/l3trial/l3color-extras/l3color-extras.dtx
@@ -796,12 +796,13 @@
%
% \subsection{Page color}
%
-% \begin{variable}{\l_@@_page_tl}
-% Space to track the page color. Notice that page color is a global property
-% but that is tracked at the level of specials: from the point of view of
-% \pkg{expl3} code there is no need to hold this information.
+% \begin{variable}{\l_@@_page_tl, \g_@@_page_tl}
+% Space to track the page color. We need both a local and a global token list
+% here. The local one is used with other mechanisms for getting the data
+% set up, the global one as some drivers need to set the color at shipout.
% \begin{macrocode}
\tl_new:N \l_@@_page_tl
+\tl_new:N \g_@@_page_tl
% \end{macrocode}
% \end{variable}
%
@@ -813,11 +814,12 @@
{
\@@_parse:nN {#1} \l_@@_page_tl
\@@_finalise:N \l_@@_page_tl
+ \tl_gset_eq:NN \g_@@_page_tl \l_@@_page_tl
\__driver_color_page:
}
\cs_new_protected:Npn \color_page_clear:
{
- \tl_clear:N \l_@@_page_tl
+ \tl_gclear:N \g_@@_page_tl
\__driver_color_page:
}
% \end{macrocode}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list