From 1acf9b6a564f9a4083cc48988f9d9843e3c4a162 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 29 Oct 2022 19:52:26 +0000 Subject: transparent (29oct22) git-svn-id: svn://tug.org/texlive/trunk@64852 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/transparent/README.md | 21 ++- .../doc/latex/transparent/transparent-example.tex | 9 +- .../doc/latex/transparent/transparent.pdf | Bin 266358 -> 281867 bytes .../source/latex/transparent/transparent.dtx | 139 +++++++++-------- .../latex/transparent/transparent-nometadata.sty | 165 +++++++++++++++++++++ .../tex/latex/transparent/transparent.sty | 159 ++++---------------- Master/tlpkg/libexec/ctan2tds | 1 + 7 files changed, 292 insertions(+), 202 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/transparent/transparent-nometadata.sty (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/transparent/README.md b/Master/texmf-dist/doc/latex/transparent/README.md index d45c0c16688..79df6a6bd84 100644 --- a/Master/texmf-dist/doc/latex/transparent/README.md +++ b/Master/texmf-dist/doc/latex/transparent/README.md @@ -1,8 +1,21 @@ -# transparent +# transparent package for LaTeX -transparent package for LaTeX +Version: 2022-10-27 v1.5 -Since version 1.40 pdfTeX supports several color stacks. This +pdfTeX and luatex supports several color stacks. This package shows, how a separate color stack can be used for transparency, -a property besides color. +a property besides color, that works across page breaks. + +If the PDF management is used it can also be used with other engines +but without support for page breaks. + +% Copyright (C) +% 2007 Heiko Oberdiek +% 2016-2022 Oberdiek Package Support Group +% https://github.com/ho-tex/transparent/issues + + +## License +LATEX Project Public License, version 1.3c or later. + diff --git a/Master/texmf-dist/doc/latex/transparent/transparent-example.tex b/Master/texmf-dist/doc/latex/transparent/transparent-example.tex index 56827bda032..148accf2143 100644 --- a/Master/texmf-dist/doc/latex/transparent/transparent-example.tex +++ b/Master/texmf-dist/doc/latex/transparent/transparent-example.tex @@ -9,11 +9,11 @@ %% This is a generated file. %% %% Project: transparent -%% Version: 2019/11/29 v1.4 +%% Version: 2022-10-27 v1.5 %% %% Copyright (C) %% 2007 Heiko Oberdiek -%% 2016-2019 Oberdiek Package Support Group +%% 2016-2022 Oberdiek Package Support Group %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -31,11 +31,10 @@ %% Heiko Oberdiek and the Oberdiek Package Support Group %% https://github.com/ho-tex/transparent/issues %% -%% %% This work consists of the main source file transparent.dtx %% and the derived files -%% transparent.sty, transparent.pdf, transparent.ins, transparent.drv, -%% transparent-example.tex. +%% transparent.sty, transparent-nometadata.sty, transparent.pdf, +%% transparent.ins, transparent.drv, transparent-example.tex. %% \documentclass[12pt]{article} diff --git a/Master/texmf-dist/doc/latex/transparent/transparent.pdf b/Master/texmf-dist/doc/latex/transparent/transparent.pdf index 3eec17c7363..bc7e6db6ed9 100644 Binary files a/Master/texmf-dist/doc/latex/transparent/transparent.pdf and b/Master/texmf-dist/doc/latex/transparent/transparent.pdf differ diff --git a/Master/texmf-dist/source/latex/transparent/transparent.dtx b/Master/texmf-dist/source/latex/transparent/transparent.dtx index 1cfec67cf9c..786ae2127aa 100644 --- a/Master/texmf-dist/source/latex/transparent/transparent.dtx +++ b/Master/texmf-dist/source/latex/transparent/transparent.dtx @@ -1,12 +1,12 @@ % \iffalse meta-comment % % File: transparent.dtx -% Version: 2019/11/29 v1.4 +% Version: 2022-10-27 v1.5 % Info: Transparency via pdfTeX's color stack % % Copyright (C) % 2007 Heiko Oberdiek -% 2016-2019 Oberdiek Package Support Group 2018 +% 2016-2022 Oberdiek Package Support Group 2018 % https://github.com/ho-tex/transparent/issues % % This work may be distributed and/or modified under the @@ -27,8 +27,8 @@ % % This work consists of the main source file transparent.dtx % and the derived files -% transparent.sty, transparent.pdf, transparent.ins, transparent.drv, -% transparent-example.tex. +% transparent.sty, transparent-nometadata.sty, transparent.pdf, +% transparent.ins, transparent.drv, transparent-example.tex. % % Distribution: % CTAN:macros/latex/contrib/transparent/transparent.dtx @@ -62,6 +62,7 @@ % % Installation: % TDS:tex/latex/transparent/transparent.sty +% TDS:tex/latex/transparent/transparent-nometadata.sty % TDS:doc/latex/transparent/transparent.pdf % TDS:source/latex/transparent/transparent.dtx % @@ -80,7 +81,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: transparent 2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO)} +\Msg{* Package: transparent 2022-10-27 v1.5 Transparency via pdfTeX's color stack (HO)} \Msg{************************************************************************} \keepsilent @@ -92,11 +93,11 @@ This is a generated file. Project: transparent -Version: 2019/11/29 v1.4 +Version: 2022-10-27 v1.5 Copyright (C) 2007 Heiko Oberdiek - 2016-2019 Oberdiek Package Support Group + 2016-2022 Oberdiek Package Support Group This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -117,8 +118,8 @@ https://github.com/ho-tex/transparent/issues This work consists of the main source file transparent.dtx and the derived files - transparent.sty, transparent.pdf, transparent.ins, transparent.drv, - transparent-example.tex. + transparent.sty, transparent-nometadata.sty, transparent.pdf, + transparent.ins, transparent.drv, transparent-example.tex. \endpreamble \let\MetaPrefix\DoubleperCent @@ -127,13 +128,10 @@ and the derived files \file{transparent.ins}{\from{transparent.dtx}{install}}% \file{transparent.drv}{\from{transparent.dtx}{driver}}% \usedir{tex/latex/transparent}% - \file{transparent.sty}{\from{transparent.dtx}{package}}% + \file{transparent-nometadata.sty}{\from{transparent.dtx}{package}}% + \file{transparent.sty}{\from{transparent.dtx}{package-new}}% \usedir{doc/latex/transparent}% \file{transparent-example.tex}{\from{transparent.dtx}{example}}% - \nopreamble - \nopostamble -% \usedir{source/latex/transparent/catalogue}% -% \file{transparent.xml}{\from{transparent.dtx}{catalogue}}% } \catcode32=13\relax% active space @@ -144,6 +142,7 @@ and the derived files \Msg{* file into a directory searched by TeX:} \Msg{*} \Msg{* transparent.sty} +\Msg{* transparent-nometadata.sty} \Msg{*} \Msg{* To produce the documentation run the file `transparent.drv'} \Msg{* through LaTeX.} @@ -160,7 +159,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{transparent.drv}% - [2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO)]% + [2022-10-27 v1.5 Transparency via pdfTeX's color stack (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2011/11/22] \begin{document} @@ -170,35 +169,20 @@ and the derived files % \fi % % -% \CharacterTable -% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -% Digits \0\1\2\3\4\5\6\7\8\9 -% Exclamation \! Double quote \" Hash (number) \# -% Dollar \$ Percent \% Ampersand \& -% Acute accent \' Left paren \( Right paren \) -% Asterisk \* Plus \+ Comma \, -% Minus \- Point \. Solidus \/ -% Colon \: Semicolon \; Less than \< -% Equals \= Greater than \> Question mark \? -% Commercial at \@ Left bracket \[ Backslash \\ -% Right bracket \] Circumflex \^ Underscore \_ -% Grave accent \` Left brace \{ Vertical bar \| -% Right brace \} Tilde \~} % % \GetFileInfo{transparent.drv} % % \title{The \xpackage{transparent} package} -% \date{2019/11/29 v1.4} +% \date{2022-10-27 v1.5} % \author{Heiko Oberdiek\thanks % {Please report any issues at \url{https://github.com/ho-tex/transparent/issues}}} % % \maketitle % % \begin{abstract} -% Since version 1.40 \pdfTeX\ supports several color stacks. This +% \pdfTeX\ and lua\TeX{} supports several color stacks. This % package shows, how a separate color stack can be used for transparency, -% a property besides color. +% a property besides color, that also works across page break. % \end{abstract} % % \tableofcontents @@ -207,12 +191,23 @@ and the derived files % % The package \xpackage{transparent} defines \cs{transparent} and % \cs{texttransparent}. They are used like \cs{color} and \cs{textcolor}. -% The first argument is the transparency value between 0 and 1. -% -% Because of the poor interface for page resources, there can be problems -% with packages that also use \cs{pdfpageresources}. -% -% Example for usage: +% The first argument is the transparency value between 0 and 1 where 0 +% is fully transparent and 1 is opaque. +% +% \section{Engine support} +% If the PDF management is loaded by using \verb+\DocumentMetadata{}+ at the beginning +% of the document the package makes use of \texttt{l3opacity} and +% can be used with all engines supported by \texttt{l3backend}. +% But only with \pdfTeX\ and lua\TeX{} the transparency will also work across page break. +% +% +% Without the PDF management, the package works only with \pdfTeX\ and lua\TeX{}. +% It then uses the original code by Heiko Oberdiek. It then uses the +% primitive \cs{pdfpageresources} and can clash with other packages that also use +% \cs{pdfpageresources}. +% +% +% \section{Example for usage} % \begin{macrocode} %<*example> \documentclass[12pt]{article} @@ -241,14 +236,47 @@ Hello World % } % % \section{Implementation} -% -% \subsection{Identification} -% +% \subsection{New version using the methods of the PDF management} +% Identification +% \begin{macrocode} +%<*package-new> +\NeedsTeXFormat{LaTeX2e}[2020/10/01] +\ProvidesExplPackage{transparent}{2022-10-27}{1.5} + {Transparency with color stacks}% +% \end{macrocode} +% Testing if the pdfmanagement is used +% \begin{macrocode} +\@ifl@t@r\fmtversion{2022-06-01} + { + \IfDocumentMetadataTF {}{\RequirePackage{transparent-nometadata}} + \IfDocumentMetadataTF {}{\endinput} + } + {\RequirePackage{transparent-nometadata}} +% \end{macrocode} +% \begin{macrocode} +\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: + } +% +% \end{macrocode} +% \subsection{Old version without the PDF management} % \begin{macrocode} %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{transparent}% - [2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO)]% +\ProvidesPackage{transparent-nometadata}% + [2022-10-27 v1.5 Transparency via pdfTeX's color stack (HO)]% % \end{macrocode} % % \subsection{Initial checks} @@ -432,25 +460,6 @@ Hello World % \end{description} % % -% \paragraph{Bundle.} All the packages of the bundle `transparent' -% are also available in a TDS compliant ZIP archive. There -% the packages are already unpacked and the documentation files -% are generated. The files and directories obey the TDS standard. -% \begin{description} -% \item[\CTANinstall{install/macros/latex/contrib/transparent.tds.zip}] -% \end{description} -% \emph{TDS} refers to the standard ``A Directory Structure -% for \TeX\ Files'' (\CTANpkg{tds}). Directories -% with \xfile{texmf} in their name are usually organized this way. -% -% \subsection{Bundle installation} -% -% \paragraph{Unpacking.} Unpack the \xfile{transparent.tds.zip} in the -% TDS tree (also known as \xfile{texmf} tree) of your choice. -% Example (linux): -% \begin{quote} -% |unzip transparent.tds.zip -d ~/texmf| -% \end{quote} % % \subsection{Package installation} % @@ -468,6 +477,7 @@ Hello World % \def\t{^^A % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % transparent.sty & tex/latex/transparent/transparent.sty\\ +% transparent-nometadata.sty & tex/latex/transparent/transparent-nometadata.sty\\ % transparent.pdf & doc/latex/transparent/transparent.pdf\\ % transparent-example.tex & doc/latex/transparent/transparent-example.tex\\ % transparent.dtx & source/latex/transparent/transparent.dtx\\ @@ -603,6 +613,9 @@ Hello World % \item % Use \xpackage{iftex} package. % \end{Version} +% \begin{Version}{2022-10-27 v1.5} +% \item Made the package compatible with the PDF management. +% \end{Version} % \end{History} % % \PrintIndex diff --git a/Master/texmf-dist/tex/latex/transparent/transparent-nometadata.sty b/Master/texmf-dist/tex/latex/transparent/transparent-nometadata.sty new file mode 100644 index 00000000000..8cc9b295a0f --- /dev/null +++ b/Master/texmf-dist/tex/latex/transparent/transparent-nometadata.sty @@ -0,0 +1,165 @@ +%% +%% This is file `transparent-nometadata.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% transparent.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Project: transparent +%% Version: 2022-10-27 v1.5 +%% +%% Copyright (C) +%% 2007 Heiko Oberdiek +%% 2016-2022 Oberdiek Package Support Group +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% https://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% https://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainers of this work are +%% Heiko Oberdiek and the Oberdiek Package Support Group +%% https://github.com/ho-tex/transparent/issues +%% +%% This work consists of the main source file transparent.dtx +%% and the derived files +%% transparent.sty, transparent-nometadata.sty, transparent.pdf, +%% transparent.ins, transparent.drv, transparent-example.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{transparent-nometadata}% + [2022-10-27 v1.5 Transparency via pdfTeX's color stack (HO)]% +\RequirePackage{iftex} +\ifpdf +\else + \PackageWarningNoLine{transparent}{% + Loading aborted, because pdfTeX is not running in PDF mode% + }% + \expandafter\endinput +\fi +\ifx\pdfextension\@undefined + \let\TRP@pdfcolorstackinit\pdfcolorstackinit + \let\TRP@pdfpageresources\pdfpageresources + \let\TRP@pdfcolorstack\pdfcolorstack +\else + \def\TRP@pdfcolorstackinit {\pdffeedback colorstackinit} + \protected\edef\TRP@pdfpageresources {\pdfvariable pageresources} + \protected\def\TRP@pdfcolorstack {\pdfextension colorstack} +\fi +\ifcsname TRP@pdfcolorstackinit\endcsname\else + \PackageWarningNoLine{transparent}{% + Your pdfTeX version does not support color stacks% + }% + \expandafter\endinput +\fi +\AtBeginDocument + {% + \ifcsname pgfutil@addpdfresource@extgs\endcsname + \let\TRP@addresource\relax + \pgfutil@addpdfresource@extgs{\TRP@list}% + \fi + } +\RequirePackage{auxhook} +\AddLineBeginAux{% + \string\providecommand{\string\transparent@use}[1]{}% +} +\gdef\TRP@list{/TRP1<>} +\def\transparent@use#1{% + \@ifundefined{TRP#1}{% + \g@addto@macro\TRP@list{% + /TRP#1<>% + }% + \expandafter\gdef\csname TRP#1\endcsname{/TRP#1 gs}% + }{% + % #1 is already known, nothing to do + }% +} +\AtBeginDocument{% + \TRP@addresource + \let\transparent@use\@gobble +} +\def\TRP@addresource{% + \begingroup + \edef\x{\endgroup + \TRP@pdfpageresources{% + \the\TRP@pdfpageresources + /ExtGState<<\TRP@list>>% + }% + }% + \x +} +\newif\ifTRP@rerun +\xdef\TRP@colorstack{% + \TRP@pdfcolorstackinit page direct{/TRP1 gs}% +} +\newcommand*{\transparent}[1]{% + \begingroup + \dimen@=#1\p@\relax + \ifdim\dimen@>\p@ + \dimen@=\p@ + \fi + \ifdim\dimen@<\z@ + \dimen@=\z@ + \fi + \ifdim\dimen@=\p@ + \def\x{1}% + \else + \ifdim\dimen@=\z@ + \def\x{0}% + \else + \edef\x{\strip@pt\dimen@}% + \edef\x{\expandafter\@gobble\x}% + \fi + \fi + \if@filesw + \immediate\write\@auxout{% + \string\transparent@use{\x}% + }% + \fi + \edef\x{\endgroup + \def\noexpand\transparent@current{\x}% + }% + \x + \transparent@set +} +\AtEndDocument{% + \ifTRP@rerun + \PackageWarningNoLine{transparent}{% + Rerun to get transparencies right% + }% + \fi +} +\def\transparent@current{/TRP1 gs} +\def\transparent@set{% + \@ifundefined{TRP\transparent@current}{% + \global\TRP@reruntrue + }{% + \TRP@pdfcolorstack\TRP@colorstack push{% + \csname TRP\transparent@current\endcsname + }% + \aftergroup\transparent@reset + }% +} +\def\transparent@reset{% + \TRP@pdfcolorstack\TRP@colorstack pop\relax +} +\newcommand*{\texttransparent}[2]{% + \protect\leavevmode + \begingroup + \transparent{#1}% + #2% + \endgroup +} +\endinput +%% +%% End of file `transparent-nometadata.sty'. diff --git a/Master/texmf-dist/tex/latex/transparent/transparent.sty b/Master/texmf-dist/tex/latex/transparent/transparent.sty index e7d0e5f067c..f68413a8894 100644 --- a/Master/texmf-dist/tex/latex/transparent/transparent.sty +++ b/Master/texmf-dist/tex/latex/transparent/transparent.sty @@ -4,16 +4,16 @@ %% %% The original source files were: %% -%% transparent.dtx (with options: `package') +%% transparent.dtx (with options: `package-new') %% %% This is a generated file. %% %% Project: transparent -%% Version: 2019/11/29 v1.4 +%% Version: 2022-10-27 v1.5 %% %% Copyright (C) %% 2007 Heiko Oberdiek -%% 2016-2019 Oberdiek Package Support Group +%% 2016-2022 Oberdiek Package Support Group %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -31,136 +31,35 @@ %% Heiko Oberdiek and the Oberdiek Package Support Group %% https://github.com/ho-tex/transparent/issues %% -%% %% This work consists of the main source file transparent.dtx %% and the derived files -%% transparent.sty, transparent.pdf, transparent.ins, transparent.drv, -%% transparent-example.tex. +%% transparent.sty, transparent-nometadata.sty, transparent.pdf, +%% transparent.ins, transparent.drv, transparent-example.tex. %% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{transparent}% - [2019/11/29 v1.4 Transparency via pdfTeX's color stack (HO)]% -\RequirePackage{iftex} -\ifpdf -\else - \PackageWarningNoLine{transparent}{% - Loading aborted, because pdfTeX is not running in PDF mode% - }% - \expandafter\endinput -\fi -\ifx\pdfextension\@undefined - \let\TRP@pdfcolorstackinit\pdfcolorstackinit - \let\TRP@pdfpageresources\pdfpageresources - \let\TRP@pdfcolorstack\pdfcolorstack -\else - \def\TRP@pdfcolorstackinit {\pdffeedback colorstackinit} - \protected\edef\TRP@pdfpageresources {\pdfvariable pageresources} - \protected\def\TRP@pdfcolorstack {\pdfextension colorstack} -\fi -\ifcsname TRP@pdfcolorstackinit\endcsname\else - \PackageWarningNoLine{transparent}{% - Your pdfTeX version does not support color stacks% - }% - \expandafter\endinput -\fi -\AtBeginDocument - {% - \ifcsname pgfutil@addpdfresource@extgs\endcsname - \let\TRP@addresource\relax - \pgfutil@addpdfresource@extgs{\TRP@list}% - \fi - } -\RequirePackage{auxhook} -\AddLineBeginAux{% - \string\providecommand{\string\transparent@use}[1]{}% -} -\gdef\TRP@list{/TRP1<>} -\def\transparent@use#1{% - \@ifundefined{TRP#1}{% - \g@addto@macro\TRP@list{% - /TRP#1<>% - }% - \expandafter\gdef\csname TRP#1\endcsname{/TRP#1 gs}% - }{% - % #1 is already known, nothing to do - }% -} -\AtBeginDocument{% - \TRP@addresource - \let\transparent@use\@gobble -} -\def\TRP@addresource{% - \begingroup - \edef\x{\endgroup - \TRP@pdfpageresources{% - \the\TRP@pdfpageresources - /ExtGState<<\TRP@list>>% - }% - }% - \x -} -\newif\ifTRP@rerun -\xdef\TRP@colorstack{% - \TRP@pdfcolorstackinit page direct{/TRP1 gs}% -} -\newcommand*{\transparent}[1]{% - \begingroup - \dimen@=#1\p@\relax - \ifdim\dimen@>\p@ - \dimen@=\p@ - \fi - \ifdim\dimen@<\z@ - \dimen@=\z@ - \fi - \ifdim\dimen@=\p@ - \def\x{1}% - \else - \ifdim\dimen@=\z@ - \def\x{0}% - \else - \edef\x{\strip@pt\dimen@}% - \edef\x{\expandafter\@gobble\x}% - \fi - \fi - \if@filesw - \immediate\write\@auxout{% - \string\transparent@use{\x}% - }% - \fi - \edef\x{\endgroup - \def\noexpand\transparent@current{\x}% - }% - \x - \transparent@set -} -\AtEndDocument{% - \ifTRP@rerun - \PackageWarningNoLine{transparent}{% - Rerun to get transparencies right% - }% - \fi -} -\def\transparent@current{/TRP1 gs} -\def\transparent@set{% - \@ifundefined{TRP\transparent@current}{% - \global\TRP@reruntrue - }{% - \TRP@pdfcolorstack\TRP@colorstack push{% - \csname TRP\transparent@current\endcsname - }% - \aftergroup\transparent@reset - }% -} -\def\transparent@reset{% - \TRP@pdfcolorstack\TRP@colorstack pop\relax -} -\newcommand*{\texttransparent}[2]{% - \protect\leavevmode - \begingroup - \transparent{#1}% - #2% - \endgroup -} +\NeedsTeXFormat{LaTeX2e}[2020/10/01] +\ProvidesExplPackage{transparent}{2022-10-27}{1.5} + {Transparency with color stacks}% +\@ifl@t@r\fmtversion{2022-06-01} + { + \IfDocumentMetadataTF {}{\RequirePackage{transparent-nometadata}} + \IfDocumentMetadataTF {}{\endinput} + } + {\RequirePackage{transparent-nometadata}} +\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 %% %% End of file `transparent.sty'. diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 9df91babb9b..ff210a799ae 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -3211,6 +3211,7 @@ my $core_latex = "$Master/texmf-dist/tex/latex"; 'tikz-page' => 'tex -8bit', # no doc remake, 8-bit name 'tikzmark' => 'tex', 'todonotes' => 'latex', # requires interaction + 'transparent' => 'etex', 'tudscr' => 'tex', 'uadocs' => 'latex', # requires interaction 'undolabl' => 'tex', -- cgit v1.2.3