diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-14 03:01:33 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-14 03:01:33 +0000 |
commit | 3303a89b11161d66ec78811056b85306f696cc09 (patch) | |
tree | 32dec4376d10f3e3aa82049a3388462e39914a70 /macros/latex/contrib/l3experimental | |
parent | 4ac920a9909dd7d233ed3662bb576e1ae4ade873 (diff) |
CTAN sync 202107140301
Diffstat (limited to 'macros/latex/contrib/l3experimental')
32 files changed, 236 insertions, 33 deletions
diff --git a/macros/latex/contrib/l3experimental/CHANGELOG.md b/macros/latex/contrib/l3experimental/CHANGELOG.md index 75d0cd7458..5ad7f3d183 100644 --- a/macros/latex/contrib/l3experimental/CHANGELOG.md +++ b/macros/latex/contrib/l3experimental/CHANGELOG.md @@ -7,6 +7,11 @@ this project uses date-based 'snapshot' version identifiers. ## [Unreleased] +## [2021-07-12] + +### Added +- Module `l3opacity` + ## [2021-05-27] ### Added @@ -210,7 +215,8 @@ this project uses date-based 'snapshot' version identifiers. - New `l3color` module using `xcolor`-like expression syntax - New `l3draw` module, based on `pgf` layer of the TikZ system -[Unreleased]: https://github.com/latex3/latex3/compare/2021-05-27...HEAD +[Unreleased]: https://github.com/latex3/latex3/compare/2021-07-12...HEAD +[2021-07-12]: https://github.com/latex3/latex3/compare/2021-05-27...2021-07-12 [2021-05-27]: https://github.com/latex3/latex3/compare/2021-02-18...2021-05-27 [2021-02-18]: https://github.com/latex3/latex3/compare/2021-02-06...2021-02-18 [2021-02-06]: https://github.com/latex3/latex3/compare/2021-01-29...2021-02-06 diff --git a/macros/latex/contrib/l3experimental/README.md b/macros/latex/contrib/l3experimental/README.md index eb62a10b04..ebb812c17d 100644 --- a/macros/latex/contrib/l3experimental/README.md +++ b/macros/latex/contrib/l3experimental/README.md @@ -1,7 +1,7 @@ Experimental LaTeX3 Concepts ============================ -Release 2021-05-27 +Release 2021-07-12 Overview -------- @@ -24,7 +24,7 @@ bundles: * `l3benchmark` * `l3draw` * `l3graphics` -* `l3pdf` +* `l3opacity` * `l3str` * `l3sys-shell` * `xcoffins` @@ -48,18 +48,17 @@ TikZ system. This module provides interfaces for the inclusion of graphics files in documents, similar to the `graphics` package. -`l3pdf` +`l3opacity` ------- -This module provides support for core PDF concepts such compression, objects, -PDF version and so on. +This module provides support for opacity in PDF output. `l3str` ------- A 'string' in TeX terms is a token list in which all of the tokens have category code 12 ('other'), with the exception of spaces which have the -category code 10 ('space'). The `l3strf-format` module provides methods +category code 10 ('space'). The `l3str-format` module provides methods for formatting such strings. `l3sys-shell` diff --git a/macros/latex/contrib/l3experimental/l3benchmark.dtx b/macros/latex/contrib/l3experimental/l3benchmark.dtx index 3cb4fa0880..71c12d8920 100644 --- a/macros/latex/contrib/l3experimental/l3benchmark.dtx +++ b/macros/latex/contrib/l3experimental/l3benchmark.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -122,7 +122,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3benchmark}{2021-05-27}{} +\ProvidesExplPackage{l3benchmark}{2021-07-12}{} {L3 Experimental benchmarking} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3benchmark.pdf b/macros/latex/contrib/l3experimental/l3benchmark.pdf Binary files differindex f70e4ce170..e7b04df65e 100644 --- a/macros/latex/contrib/l3experimental/l3benchmark.pdf +++ b/macros/latex/contrib/l3experimental/l3benchmark.pdf diff --git a/macros/latex/contrib/l3experimental/l3bitset.dtx b/macros/latex/contrib/l3experimental/l3bitset.dtx index fd7f59b562..0021241628 100644 --- a/macros/latex/contrib/l3experimental/l3bitset.dtx +++ b/macros/latex/contrib/l3experimental/l3bitset.dtx @@ -42,7 +42,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % \begin{documentation} @@ -264,7 +264,7 @@ %<@@=bitset> % \end{macrocode} % \begin{macrocode} -\ProvidesExplPackage{l3bitset}{2021-05-27}{} +\ProvidesExplPackage{l3bitset}{2021-07-12}{} {L3 Experimental bitset support} % \end{macrocode} % A bitset is a string variable. diff --git a/macros/latex/contrib/l3experimental/l3bitset.pdf b/macros/latex/contrib/l3experimental/l3bitset.pdf Binary files differindex 1bc1fbb3a6..04e300fe46 100644 --- a/macros/latex/contrib/l3experimental/l3bitset.pdf +++ b/macros/latex/contrib/l3experimental/l3bitset.pdf diff --git a/macros/latex/contrib/l3experimental/l3draw-boxes.dtx b/macros/latex/contrib/l3experimental/l3draw-boxes.dtx index cd3ac24744..45c6b0a16a 100644 --- a/macros/latex/contrib/l3experimental/l3draw-boxes.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-boxes.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-code.pdf b/macros/latex/contrib/l3experimental/l3draw-code.pdf Binary files differindex 074a30ee1f..68c0490580 100644 --- a/macros/latex/contrib/l3experimental/l3draw-code.pdf +++ b/macros/latex/contrib/l3experimental/l3draw-code.pdf diff --git a/macros/latex/contrib/l3experimental/l3draw-layers.dtx b/macros/latex/contrib/l3experimental/l3draw-layers.dtx index 8f1fd9253b..57238ab2f1 100644 --- a/macros/latex/contrib/l3experimental/l3draw-layers.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-layers.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-paths.dtx b/macros/latex/contrib/l3experimental/l3draw-paths.dtx index f0569e5603..043f9a5926 100644 --- a/macros/latex/contrib/l3experimental/l3draw-paths.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-paths.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-points.dtx b/macros/latex/contrib/l3experimental/l3draw-points.dtx index 71633ca740..527194b8ee 100644 --- a/macros/latex/contrib/l3experimental/l3draw-points.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-points.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-scopes.dtx b/macros/latex/contrib/l3experimental/l3draw-scopes.dtx index 6fcb544eb6..7065afd267 100644 --- a/macros/latex/contrib/l3experimental/l3draw-scopes.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-scopes.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-softpath.dtx b/macros/latex/contrib/l3experimental/l3draw-softpath.dtx index fc7fac00db..dd4104a689 100644 --- a/macros/latex/contrib/l3experimental/l3draw-softpath.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-softpath.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-state.dtx b/macros/latex/contrib/l3experimental/l3draw-state.dtx index 046a3a7944..81f992f29d 100644 --- a/macros/latex/contrib/l3experimental/l3draw-state.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-state.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw-transforms.dtx b/macros/latex/contrib/l3experimental/l3draw-transforms.dtx index de39ce257d..ff23ae4db0 100644 --- a/macros/latex/contrib/l3experimental/l3draw-transforms.dtx +++ b/macros/latex/contrib/l3experimental/l3draw-transforms.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % diff --git a/macros/latex/contrib/l3experimental/l3draw.dtx b/macros/latex/contrib/l3experimental/l3draw.dtx index 9a9e670cce..a713774f8c 100644 --- a/macros/latex/contrib/l3experimental/l3draw.dtx +++ b/macros/latex/contrib/l3experimental/l3draw.dtx @@ -110,7 +110,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -1136,7 +1136,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3draw}{2021-05-27}{} +\ProvidesExplPackage{l3draw}{2021-07-12}{} {L3 Experimental core drawing support} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3draw.pdf b/macros/latex/contrib/l3experimental/l3draw.pdf Binary files differindex 0edae24d33..d63d703791 100644 --- a/macros/latex/contrib/l3experimental/l3draw.pdf +++ b/macros/latex/contrib/l3experimental/l3draw.pdf diff --git a/macros/latex/contrib/l3experimental/l3galley.dtx b/macros/latex/contrib/l3experimental/l3galley.dtx index 8d0291d1b1..ba662b097f 100644 --- a/macros/latex/contrib/l3experimental/l3galley.dtx +++ b/macros/latex/contrib/l3experimental/l3galley.dtx @@ -61,7 +61,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -686,7 +686,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3galley}{2021-05-27}{} +\ProvidesExplPackage{l3galley}{2021-07-12}{} {L3 Experimental galley code} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3galley.pdf b/macros/latex/contrib/l3experimental/l3galley.pdf Binary files differindex a5519755d2..2b407e61d9 100644 --- a/macros/latex/contrib/l3experimental/l3galley.pdf +++ b/macros/latex/contrib/l3experimental/l3galley.pdf diff --git a/macros/latex/contrib/l3experimental/l3graphics.dtx b/macros/latex/contrib/l3experimental/l3graphics.dtx index 89a9410016..5101c9ae71 100644 --- a/macros/latex/contrib/l3experimental/l3graphics.dtx +++ b/macros/latex/contrib/l3experimental/l3graphics.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -240,7 +240,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3graphics}{2021-05-27}{} +\ProvidesExplPackage{l3graphics}{2021-07-12}{} {L3 Experimental graphics inclusion support} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3graphics.pdf b/macros/latex/contrib/l3experimental/l3graphics.pdf Binary files differindex 82a0c5dc3c..a59d1f86e3 100644 --- a/macros/latex/contrib/l3experimental/l3graphics.pdf +++ b/macros/latex/contrib/l3experimental/l3graphics.pdf diff --git a/macros/latex/contrib/l3experimental/l3opacity.dtx b/macros/latex/contrib/l3experimental/l3opacity.dtx new file mode 100644 index 0000000000..4b1e7ea64f --- /dev/null +++ b/macros/latex/contrib/l3experimental/l3opacity.dtx @@ -0,0 +1,140 @@ +% \iffalse meta-comment +% +%% File: l3opacity.dtx +% +% Copyright (C) 2021 The LaTeX Project +% +% It may be distributed and/or modified under the conditions of the +% LaTeX Project Public License (LPPL), either version 1.3c of this +% license or (at your option) any later version. The latest version +% of this license is in the file +% +% http://www.latex-project.org/lppl.txt +% +% This file is part of the "l3experimental bundle" (The Work in LPPL) +% and all files in that bundle must be distributed together. +% +% ----------------------------------------------------------------------- +% +% The development version of the bundle can be found at +% +% https://github.com/latex3/latex3 +% +% for those people who are interested. +% +%<*driver|package> +\RequirePackage{expl3} +%</driver|package> +%<*driver> +\documentclass[full]{l3doc} +\begin{document} + \DocInput{\jobname.dtx} +\end{document} +%</driver> +% \fi +% +% \title{^^A +% The \textsf{l3opacity} package\\ Experimental opacity (transparency) support^^A +% } +% +% \author{^^A +% The \LaTeX{} Project\thanks +% {^^A +% E-mail: +% \href{mailto:latex-team@latex-project.org} +% {latex-team@latex-project.org}^^A +% }^^A +% } +% +% \date{Released 2021-07-12} +% +% \maketitle +% +% \begin{documentation} +% +% \section{Selecting opacity} +% +% Opacity (transparency) shares many characteristics with color. However, +% limitations in terms of backends mean that it is not always possible +% to use a dedicated stack for tracking opacity. The best results when +% breaking pages are therefore likely to result using direct PDF output +% (\pdfTeX{}, \LuaTeX{}) or with recent versions of \texttt{(x)dvipdfmx}: +% these backends do offer the necessary support. +% +% For users of PostScript-based routes, note that there are security +% restrictions which can prevent opacity being available in output. In +% particular, using Adobe Distiller, you will need to enable transparency +% in the (text-based) configuration: this is not selectable from the GUI. +% +% \begin{function}[added = 2021-07-01]{\opacity_select:n} +% \begin{syntax} +% \cs{opacity_select:n} \Arg{expression} +% \end{syntax} +% Evaluates the \meta{expression}, which should yield a value in the range $[0,1]$. +% This is then activated as an opacity for both filling and stroking. +% \end{function} +% +% \begin{function}[added = 2021-07-01]{\opacity_fill:n, \opacity_stroke:n} +% \begin{syntax} +% \cs{opacity_fill:n} \Arg{expression} +% \end{syntax} +% Evaluates the \meta{expression}, which should yield a value in the range $[0,1]$. +% This is then activated as an opacity for filling or stroking, respectively. +% \end{function} +% +% \end{documentation} +% +% \begin{implementation} +% +% \section{\pkg{l3opacity} Implementation} +% +% \begin{macrocode} +%<*package> +% \end{macrocode} +% +% \begin{macrocode} +%<@@=opacity> +% \end{macrocode} +% +% \begin{macrocode} +\ProvidesExplPackage{l3opacity}{2021-07-12}{} + {L3 Experimental opacity support} +% \end{macrocode} +% +% \begin{macro}{\opacity_select:n, \opacity_fill:n, \opacity_stroke:n} +% \begin{macro}{\@@_select:nN, \@@_select_aux:nN} +% Thin wrapper with error checking. +% \begin{macrocode} +\cs_new_protected:Npn \opacity_select:n #1 + { \@@_select:nN {#1} \@@_backend_select:n } +\cs_new_protected:Npn \opacity_fill:n #1 + { \@@_select:nN {#1} \@@_backend_fill:n } +\cs_new_protected:Npn \opacity_stroke:n #1 + { \@@_select:nN {#1} \@@_backend_stroke:n } +\cs_new_protected:Npn \@@_select:nN #1#2 + { \exp_args:Ne \@@_select_aux:nN { \fp_eval:n {#1} } #2 } +\cs_new_protected:Npn \@@_select_aux:nN #1#2 + { + \bool_lazy_or:nnTF + { \fp_compare_p:nNn {#1} < { 0 } } + { \fp_compare_p:nNn {#1} > { 1 } } + { \msg_error:nnn { opacity } { out-of-range } {#1} } + { #2 {#1} } + } +\msg_new:nnnn { opacity } { out-of-range } + { Opacity~value~out~of~range. } + { + LaTeX~was~asked~to~set~opacity~of~#1,~but~only~values~in~the~range~ + 0~to~1~are~supported. + } +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macrocode} +%</package> +% \end{macrocode} +% +% \end{implementation} +% +% \PrintIndex diff --git a/macros/latex/contrib/l3experimental/l3opacity.ins b/macros/latex/contrib/l3experimental/l3opacity.ins new file mode 100644 index 0000000000..15d87c8f95 --- /dev/null +++ b/macros/latex/contrib/l3experimental/l3opacity.ins @@ -0,0 +1,58 @@ +\iffalse meta-comment + +File: l3opacity.ins + +Copyright (C) 2021 The LaTeX Project + +It may be distributed and/or modified under the conditions of the +LaTeX Project Public License (LPPL), either version 1.3c of this +license or (at your option) any later version. The latest version +of this license is in the file + + http://www.latex-project.org/lppl.txt + +This file is part of the "l3experimental bundle" (The Work in LPPL) +and all files in that bundle must be distributed together. + +----------------------------------------------------------------------- + +The development version of the bundle can be found at + + https://github.com/latex3/latex3 + +for those people who are interested. + +----------------------------------------------------------------------- + +Any modification of this file should ensure that the copyright and +license information is placed in the derived files. + +\fi + +\input docstrip % +\askforoverwritefalse + +\preamble + +Copyright (C) 2021 The LaTeX Project + +It may be distributed and/or modified under the conditions of +the LaTeX Project Public License (LPPL), either version 1.3c of +this license or (at your option) any later version. The latest +version of this license is in the file: + + http://www.latex-project.org/lppl.txt + +This file is part of the "l3experimental bundle" (The Work in LPPL) +and all files in that bundle must be distributed together. + +\endpreamble +% stop docstrip adding \endinput +\postamble +\endpostamble + +\keepsilent + +\generate{\file{l3opacity.sty}{\from{l3opacity.dtx}{package}}} + +\endbatchfile diff --git a/macros/latex/contrib/l3experimental/l3opacity.pdf b/macros/latex/contrib/l3experimental/l3opacity.pdf Binary files differnew file mode 100644 index 0000000000..afde835c29 --- /dev/null +++ b/macros/latex/contrib/l3experimental/l3opacity.pdf diff --git a/macros/latex/contrib/l3experimental/l3str-format.dtx b/macros/latex/contrib/l3experimental/l3str-format.dtx index 34ccffbb5b..669d198790 100644 --- a/macros/latex/contrib/l3experimental/l3str-format.dtx +++ b/macros/latex/contrib/l3experimental/l3str-format.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -166,7 +166,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3str-format}{2021-05-27}{} +\ProvidesExplPackage{l3str-format}{2021-07-12}{} {L3 Experimental string formatting} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3str-format.pdf b/macros/latex/contrib/l3experimental/l3str-format.pdf Binary files differindex 3e909d02f2..d070a93856 100644 --- a/macros/latex/contrib/l3experimental/l3str-format.pdf +++ b/macros/latex/contrib/l3experimental/l3str-format.pdf diff --git a/macros/latex/contrib/l3experimental/l3sys-shell.dtx b/macros/latex/contrib/l3experimental/l3sys-shell.dtx index cf3e3f1405..56f5ccf610 100644 --- a/macros/latex/contrib/l3experimental/l3sys-shell.dtx +++ b/macros/latex/contrib/l3experimental/l3sys-shell.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -151,7 +151,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{l3sys-shell}{2021-05-27}{} +\ProvidesExplPackage{l3sys-shell}{2021-07-12}{} {L3 Experimental system shell functions} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/l3sys-shell.pdf b/macros/latex/contrib/l3experimental/l3sys-shell.pdf Binary files differindex d0cde462c2..f7db627adf 100644 --- a/macros/latex/contrib/l3experimental/l3sys-shell.pdf +++ b/macros/latex/contrib/l3experimental/l3sys-shell.pdf diff --git a/macros/latex/contrib/l3experimental/xcoffins.dtx b/macros/latex/contrib/l3experimental/xcoffins.dtx index f8f10fc063..afd086567b 100644 --- a/macros/latex/contrib/l3experimental/xcoffins.dtx +++ b/macros/latex/contrib/l3experimental/xcoffins.dtx @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -672,7 +672,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xcoffins}{2021-05-27}{} +\ProvidesExplPackage{xcoffins}{2021-07-12}{} {L3 Experimental design level coffins} % \end{macrocode} % diff --git a/macros/latex/contrib/l3experimental/xcoffins.pdf b/macros/latex/contrib/l3experimental/xcoffins.pdf Binary files differindex 8cd96a0ad1..4847b73a25 100644 --- a/macros/latex/contrib/l3experimental/xcoffins.pdf +++ b/macros/latex/contrib/l3experimental/xcoffins.pdf diff --git a/macros/latex/contrib/l3experimental/xgalley.dtx b/macros/latex/contrib/l3experimental/xgalley.dtx index f23d7c5f48..b75c45ee2d 100644 --- a/macros/latex/contrib/l3experimental/xgalley.dtx +++ b/macros/latex/contrib/l3experimental/xgalley.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2021-05-27} +% \date{Released 2021-07-12} % % \maketitle % @@ -731,7 +731,7 @@ % \end{macrocode} % % \begin{macrocode} -\ProvidesExplPackage{xgalley}{2021-05-27}{} +\ProvidesExplPackage{xgalley}{2021-07-12}{} {L3 Experimental galley} \RequirePackage{xtemplate,l3galley} % \end{macrocode} diff --git a/macros/latex/contrib/l3experimental/xgalley.pdf b/macros/latex/contrib/l3experimental/xgalley.pdf Binary files differindex 02a99f8eb8..52cb016046 100644 --- a/macros/latex/contrib/l3experimental/xgalley.pdf +++ b/macros/latex/contrib/l3experimental/xgalley.pdf |