summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty
blob: be7a2522708ec779d75c9360a1c3d0fd0fce12a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%%
%% This is file `transparent-ltx.sty',
%% a replacement for transparent sty from Heiko Oberdiek
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesExplPackage{transparent-ltx}%
  {2021-02-22}{v0.95a}{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