%%
%% This is file `transparent-ltx.sty',
%% a replacement for transparent sty from Heiko Oberdiek
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesExplPackage{transparent-ltx}{2021-08-28}{0.95i}
  {Transparency with color stacks (replacement for transparent.sty from Heiko Oberdiek)}%

\RequirePackage{l3opacity}

\NewDocumentCommand{\transparent} { m }
      {
       \opacity_select:n{\fp_eval:n{ min(max(0,#1),1) } }
      }

\NewDocumentCommand{\texttransparent}{m m}
  {
   \mode_leave_vertical:
   \group_begin:
     \transparent{#1}
     #2
   \group_end:
  }


\endinput
