[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: move new-transparent to experiments (b60a522)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Feb 10 16:16:33 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/b60a522c19f3ebc607244b63a4eafbdeb1dfb25d

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

commit b60a522c19f3ebc607244b63a4eafbdeb1dfb25d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Feb 10 16:16:33 2021 +0100

    move new-transparent to experiments


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

b60a522c19f3ebc607244b63a4eafbdeb1dfb25d
 {newpackages => experiments}/new-transparent.sty | 29 +++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/newpackages/new-transparent.sty b/experiments/new-transparent.sty
similarity index 89%
copy from newpackages/new-transparent.sty
copy to experiments/new-transparent.sty
index 1207b7f..f75482d 100644
--- a/newpackages/new-transparent.sty
+++ b/experiments/new-transparent.sty
@@ -4,7 +4,34 @@
 %%
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \ProvidesExplPackage{new-transparent}%
-  {2020-09-06}{v1.42}{Transparency with color stacks (based on transparent from Heiko Oberdiek)}%
+  {2021-02-10}{v1.43}{Transparency with color stacks (based on transparent from Heiko Oberdiek)}%
+
+\cs_if_free:NT \color_set:nn{\RequirePackage{l3color}}
+
+\RequirePackage{l3opacity}
+\cs_set_eq:NN \__opacity_backend_stack_push:nn\__color_backend_stack_push:nn
+\cs_set_eq:NN \__opacity_backend_stack_pop:n  \__color_backend_stack_pop:n
+
+\NewDocumentCommand{\transparent} { m }
+      {
+       \opacity_select:n{\fp_eval:n{ min(max(0,#1),1) } }
+      }
+
+\NewDocumentCommand{\texttransparent}{m m}
+  {
+   \protect\leavevmode
+   \begingroup
+     \transparent{#1}
+     #2
+   \endgroup
+  }
+
+
+\endinput
+
+%%% old code
+
+
 %pdftex + luatex in pdf mode
 \sys_if_output_pdf:T
   {





More information about the latex3-commits mailing list.