diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-15 21:15:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-15 21:15:11 +0000 |
commit | f9e0f489a862d1e8c47ec4e7ee0ef4cb89f8e0d5 (patch) | |
tree | 5b6b68fbbee996c4f4ca4fe48ce2fc75e9fd0769 /Master | |
parent | 2af95ff797f8fad560d56bba0ad3a39513922c32 (diff) |
pdfmanagement-testphase (15apr22)
git-svn-id: svn://tug.org/texlive/trunk@63035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
57 files changed, 245 insertions, 107 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md index 537f671322e..2fdc3b7db67 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/CHANGELOG.md @@ -5,6 +5,13 @@ first release 0.95a, 2021-02-23 will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), this project uses date-based 'snapshot' version identifiers. +## [2022-04-14] +### Fixed + - l3pdffield-radiobutton: handling of Opt array. + +### Added + - l3pdffield-radiobutton: inunison key. + ## [2022-03-16] ### Added diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md index c0479c353aa..8736e0d670d 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/README.md @@ -1,6 +1,6 @@ # LaTeX PDF management testphase bundle -Version: 0.95m, 2022-03-17 +Version: 0.95n, 2022-04-14 This package is used during a test phase to load the new PDF management code of LaTeX. diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf Binary files differindex d5c6a4fe82c..ece868a47fb 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/hyperref-generic.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf Binary files differindex 07b1fb0e3c4..1aa7e6c3db3 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3backend-testphase.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf Binary files differindex 6d60ded2fc1..bf4b4345d34 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfannot.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf Binary files differindex a74763e02c0..ee05142d228 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfdict.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf Binary files differindex 558ad289016..64c16f44cc3 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-action.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf Binary files differindex cb71bdc0692..97d02b4e2fc 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-checkbox.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf Binary files differindex fe1c8a030cb..19932cc3ee3 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-choice.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf Binary files differindex 35d9d25f9ec..9cc07a66946 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-pushbutton.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf Binary files differindex 1fd2ab346bc..2491fbbfb15 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-radiobutton.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf Binary files differindex 01208f43265..2186636cbdd 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield-textfield.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf Binary files differindex a709dc058d2..3d4ee635c8a 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffield.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf Binary files differindex 8099ddb99dd..4b28a34f38b 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdffile.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf Binary files differindex 1128e762fc9..0f011fc7238 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmanagement.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf Binary files differindex 803370eb32b..871b6574a77 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfmeta.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf Binary files differindex 11b88bb6c44..52a5c22d76b 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdftools.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf Binary files differindex 95b91943607..0d638715aef 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf Binary files differindex 14a0b70d500..a0e1e9c6c04 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/ltdocinit.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf Binary files differindex 72c2a9c0568..5e80a4566b4 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/output-patches-tmp-ltx.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf Binary files differindex 812e5652ae1..e5e921f73a0 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-firstaid.pdf diff --git a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf Binary files differindex ae0c8a84207..30483353946 100644 --- a/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf +++ b/Master/texmf-dist/doc/latex/pdfmanagement-testphase/pdfmanagement-testphase.pdf diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx index 42f9394f415..457ea9f1ac2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx @@ -83,7 +83,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -959,7 +959,7 @@ %<@@=hyp> % \end{macrocode} % \begin{macrocode} -\ProvidesFile{hgeneric-testphase.def}[2022-03-17 v0.95m % +\ProvidesFile{hgeneric-testphase.def}[2022-04-14 v0.95n % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx index 70684ed8df1..037a8bafc96 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx @@ -45,7 +45,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % @@ -56,27 +56,27 @@ % \begin{macrocode} %<drivers>\ProvidesExplFile %<*dvipdfmx> - {l3backend-testphase-dvipdfmx.def}{2022-03-17}{} + {l3backend-testphase-dvipdfmx.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} %</dvipdfmx> %<*dvips> - {l3backend-testphase-dvips.def}{2022-03-17}{} + {l3backend-testphase-dvips.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} %</dvips> %<*dvisvgm> - {l3backend-testphase-dvisvgm.def}{2022-03-17}{} + {l3backend-testphase-dvisvgm.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} %</dvisvgm> %<*luatex> - {l3backend-testphase-luatex.def}{2022-03-17}{} + {l3backend-testphase-luatex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} %</luatex> %<*pdftex> - {l3backend-testphase-pdftex.def}{2022-03-17}{} + {l3backend-testphase-pdftex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} %</pdftex> %<*xdvipdfmx> - {l3backend-testphase-xetex.def}{2022-03-17}{} + {l3backend-testphase-xetex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} %</xdvipdfmx> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx index c2df8ec1dfb..457064953c2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -433,7 +433,7 @@ % \begin{macrocode} %<@@=pdfannot> %<*header> -\ProvidesExplPackage{l3pdfannot}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdfannot}{2022-04-14}{0.95n} {PDF-annotations} \RequirePackage{l3pdfdict} %</header> diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx index 4fee589bde5..e2ed2c35385 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -209,7 +209,7 @@ % \begin{macrocode} %<@@=pdfdict> %<*header> -\ProvidesExplPackage{l3pdfdict}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdfdict}{2022-04-14}{0.95n} {Tools for PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx index d14030337c7..55874dd7014 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx index 3be026f6098..7cd1b617f79 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx @@ -65,7 +65,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx index eb632bc10dd..121c60b7453 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx index 26efb80bdc1..0cd494954e4 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx @@ -56,7 +56,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx index 0b34e661ed3..a395088e4c5 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx @@ -84,7 +84,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -105,6 +105,16 @@ % \pdffield_radio:n{name=A,value=Sieglinde}& % \pdffield_radio:n{name=A,value=Duck} % \end{tabular} +% \par not in unison: \par +% +% \begin{tabular}{ccc} +% \pdffield_radio:n{inunison=false,name=C,value=Bär,appearance=pdffield/bear,width=\box_wd:N\l_pdffield_bear_box,height=\box_ht:N\l_pdffield_bear_box}& +% \pdffield_radio:n{name=C,value=Sieglinde,default,appearance=pdffield/hippo,width=\box_wd:N\l_pdffield_hippo_box,height=\box_ht:N\l_pdffield_hippo_box}& +% \pdffield_radio:n{name=C,value=Duck,appearance=pdffield/duck,width=\box_wd:N\l_pdffield_duck_box,height=\box_ht:N\l_pdffield_duck_box}\\[1ex] +% \pdffield_radio:n{name=C,value=Bär}& +% \pdffield_radio:n{name=C,value=Sieglinde}& +% \pdffield_radio:n{name=C,value=Duck} +% \end{tabular} % \ExplSyntaxOff % \end{center} % @@ -240,7 +250,6 @@ % { % group = A, % required, can also be given as name=A or T=A % value = button1, % required, on-state of this button -% default = button4 % default of the group, % % if not given choice (button1) is used % % should refer to an existing button! % % It will set the V and the DV key @@ -250,6 +259,7 @@ % { % group = A, % required, can also be given as name=A or T=A % value = button2 % required, export value of this button +% default % this button is default of the group, % } % \pdffield_radio:n % { @@ -264,13 +274,20 @@ % \end{verbatim} % % -% If two radio field annotations use the same |value| they are selected and -% unselected together, like checkboxes with the same |/Yes| state. This can be used -% to build radio groups which works \enquote{in unison}. The flag |RadiosInUnison| +% If two radio field annotations use the same |value| this value can be mapped either +% to the same index or to two different indices in the \texttt{/Opt} array. +% In the first case they are selected and unselected together (\enquote{in unison}), +% like checkboxes with the same |/Yes| state. The key |inunison| below allows to switch +% between the two cases. The flag |RadiosInUnison| % is neither needed for this (but doesn't harm either) nor -% does it change the behaviour, at least again not in the PDF viewers I tried. +% does it change the behaviour, at least again not in the PDF viewers I tried, +% nevertheless the key will set it accordingly just in case. The two examples at +% the begin of the document show the two variants. % % +% The button with the key |default| will be selected at the start (together with the +% buttons with the same value). If no default is set this is the first button. +% % \bigskip % \subsection{Commands} % \begin{function}{\pdffield_radio:n} @@ -350,16 +367,28 @@ % % \begin{function}{default} % \begin{syntax} -% |default| = \meta{string} +% |default| % \end{syntax} % With this key you set the button which is checked when the PDF is opened. -% The key must be used in the command of the first button. If it is missing -% the value of the first button is used as default. -% \meta{string} should be identical to a |value| of one of the buttons of the group. -% This is not checked, buttons can be created on various pages, so it would -% require a label/ref system to keep track of the names. +% The key must be used in the command of the button which should be the default. +% If it is missing the first button is used as default. +% A label-ref system is used to get the right numbers, so normally two compilations +% are needed if the first button is not the default % \end{function} - +% +% \begin{function}{inunison} +% \begin{syntax} +% |inunison| = |true|\verb+|+|false| +% \end{syntax} +% As described above this handle the \enquote{inunison} behaviour. +% If set to true (the default) +% buttons with the same value will be selected and unselected together. +% The keys sets or unsets also the flag |RadiosInUnison| accordingly +% (but it is unknown if it has any effect). The key should be set on the first +% field. Normally it should be unneeded to use the key: +% to avoid the unison effect it makes more sense to use different values. +% \end{function} +% % \begin{function}{fieldID} % \begin{syntax} % |fieldID| = \meta{field ID}\\ @@ -560,7 +589,7 @@ % \begin{variable} % { % \l_@@_radio_value_tl -% ,\l_@@_radio_default_tl +% ,\l_@@_radio_default_bool % ,\l_@@_radio_value_num_int % ,\l_@@_radio_appearance_code_tl % } @@ -569,9 +598,11 @@ % so the code is stored and executed later. % \begin{macrocode} \tl_new:N \l_@@_radio_value_tl -\tl_new:N \l_@@_radio_default_tl +\bool_new:N \l_@@_radio_default_bool \int_new:N \l_@@_radio_value_num_int \tl_new:N \l_@@_radio_appearance_code_tl +\bool_new:N \l_@@_radio_unison_bool % if true use same name (e.g. /1) for same value +\bool_set_true:N \l_@@_radio_unison_bool % \end{macrocode} % \end{variable} % @@ -638,6 +669,17 @@ % \end{macro} % %\subsection{Creating the field} +% We need to retrieve the index of the default through a +% label, so we need an ref attribute: +% +% \begin{macrocode} +\ref_attribute_gset:nnnn {pdfradioindex}{0}{now} + { + \int_use:N\l_@@_radio_value_num_int + } +\cs_generate_variant:Nn \ref_label:nn {V} +\cs_generate_variant:Nn \ref_value:nn {V} +% \end{macrocode} % A field should be created if the name doesn't exist yet % \begin{macro}{\@@_radio_field:n} % \begin{macrocode} @@ -659,20 +701,25 @@ {\seq_use:cn {g_@@_radio_opt_#1_seq}{~}} } % \end{macrocode} -% The default value is always the first in the array. -% If a default has been set, it is added to the left -% of the seq. +% The default value is retrieved through a label: % \begin{macrocode} - \tl_if_eq:NnF \l_@@_radio_default_tl{()} - { - \seq_gput_left:cV { g_@@_radio_opt_#1_seq }\l_@@_radio_default_tl - } - \pdfdict_put:nnx { l_@@/field }{V} { /0 } - \pdfdict_put:nnx { l_@@/field }{DV} { /0 } + \pdfdict_put:nnx { l_@@/field }{V} { /\ref_value:nn{#1}{pdfradioindex} } + \pdfdict_put:nnx { l_@@/field }{DV} { /\ref_value:nn{#1}{pdfradioindex} } % \end{macrocode} % now we create the field and set it as parent for the following annotation. % \begin{macrocode} \@@_field:n { @@/radio/#1 } +% \end{macrocode} +% If the inunison bool has been set to false we need to pass this to the +% kids. +% \begin{macrocode} + \bool_if:NF \l_@@_radio_unison_bool + { + \cs_new:cpn {g_@@_radio_unison_state_#1_tl} + { + \bool_set_false:N \l_@@_radio_unison_bool + } + } } \keys_set:nn {pdffield}{parent=@@/radio/#1} } @@ -697,12 +744,14 @@ % Setting up the defaults. % \begin{macrocode} \tl_set:Nn\l_@@_radio_appearance_code_tl{} + \bool_set_false:N\l_@@_radio_default_bool \keys_set:nn {pdffield} { fieldID= ,name=radio ,width = \normalbaselineskip ,height = \normalbaselineskip + ,inunison ,@@/preset/radiobutton ,#1 ,unsetFf={Pushbutton} @@ -718,20 +767,26 @@ \tl_put_left:Nn \l_@@_fieldID_tl {@@/radio/} } % \end{macrocode} +% If unison has been set for the field pass it on: +% \begin{macrocode} + \cs_if_exist_use:c {g_@@_radio_unison_state_ \l_@@_fieldID_tl _tl} +% \end{macrocode} % Now we build the field % \begin{macrocode} \@@_radio_field:V\l_@@_fieldID_tl % \end{macrocode} +% Put the value into the seq +% \begin{macrocode} + \seq_gput_right:cV { g_@@_radio_opt_ \l_@@_fieldID_tl _seq }\l_@@_radio_value_tl +% \end{macrocode} % Retrieve the number for the label % \begin{macrocode} - \seq_if_in:cVF { g_@@_radio_opt_ \l_@@_fieldID_tl _seq }\l_@@_radio_value_tl + \bool_if:NTF \l_@@_radio_unison_bool + { + \int_zero:N \l_@@_radio_value_num_int + \exp_args:Nc + \seq_map_inline:Nn { g_@@_radio_opt_ \l_@@_fieldID_tl _seq } { - \seq_gput_right:cV { g_@@_radio_opt_ \l_@@_fieldID_tl _seq }\l_@@_radio_value_tl - } - \int_zero:N \l_@@_radio_value_num_int - \exp_args:Nc - \seq_map_inline:Nn { g_@@_radio_opt_ \l_@@_fieldID_tl _seq } - { \str_if_eq:nVTF { ##1 } \l_@@_radio_value_tl { \seq_map_break: @@ -739,12 +794,26 @@ { \int_incr:N \l_@@_radio_value_num_int } + } } + { + \int_set:Nn \l_@@_radio_value_num_int + {\seq_count:c { g_@@_radio_opt_ \l_@@_fieldID_tl _seq } -1 } + } + \bool_if:NT\l_@@_radio_default_bool + { + \exp_args:Ne + \ref_label:nn{\l_@@_fieldID_tl}{pdfradioindex} + } + % \end{macrocode} % Annotations with the default value are set to on, the rest to off % \begin{macrocode} - \int_compare:nNnTF { \l_@@_radio_value_num_int } = 0 - { \pdfannot_dict_put:nnx {widget}{AS}{/0} } + \int_compare:nNnTF { \l_@@_radio_value_num_int } = + { + \ref_value:Vn\l_@@_fieldID_tl{pdfradioindex} + } + { \pdfannot_dict_put:nnx {widget}{AS}{/\ref_value:Vn\l_@@_fieldID_tl{pdfradioindex}} } { \pdfannot_dict_put:nnx {widget}{AS}{/Off} } % \end{macrocode} % Now we set the appearances, if no key has been use we take the default. @@ -774,11 +843,12 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_radio_value_handler:n #1 { - \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_radio_value_tl + \pdf_string_from_unicode:nnN {utf16/string}{#1}\l_@@_radio_value_tl } \cs_new_protected:Npn \@@_radio_default_handler:n #1 { - \pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_radio_default_tl + %\pdf_string_from_unicode:nnN {utf8/string}{#1}\l_@@_radio_default_tl + \bool_set_true:N \l_@@_radio_default_bool } % \end{macrocode} % \end{macro} @@ -792,6 +862,25 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{inunison} +% \begin{macrocode} +\keys_define:nn { pdffield } + { + inunison .choice: + ,inunison / true .code:n = + { + \bool_set_true:N \l_@@_radio_unison_bool + \bitset_set_true:Nn \l_@@_Ff_bitset {RadiosInUnison} + } + ,inunison / false .code:n = + { + \bool_set_false:N \l_@@_radio_unison_bool + \bitset_set_false:Nn \l_@@_Ff_bitset {RadiosInUnison} + } + ,inunison .default:n = {true} + } +% \end{macrocode} +% \end{macro} % \begin{macro}{\@@_radio_appearance_handler:nnn} % The handler for the appearances stores only the code % as it must be executed rather late. diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx index 8ae34a44032..c0f5e4dbead 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx index c41cae5974c..4fe5de4219b 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx @@ -70,7 +70,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -974,7 +974,7 @@ %<*package> %<@@=pdffield> \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2022-03-17}{0.95m}% +\ProvidesExplPackage{l3pdffield-testphase}{2022-04-14}{0.95n}% {form fields} % \end{macrocode} % \subsection{hyperref specific command} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx index 12563457f6b..2adc7fe6174 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -397,7 +397,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdffile}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdffile}{2022-04-14}{0.95n} {embedding and referencing files in PDF---LaTeX PDF management testphase bundle} \RequirePackage{l3pdftools} %temporarly!! %</header> diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx index 0227b09965d..fb8ca853e08 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx @@ -58,7 +58,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -619,7 +619,7 @@ %<@@=pdfmanagement> %<*header> % -\ProvidesExplPackage{l3pdfmanagement}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdfmanagement}{2022-04-14}{0.95n} {Management of core PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx index 35e9a3b937a..77b69fad2d2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -353,7 +353,7 @@ % \begin{macrocode} %<@@=pdfmeta> %<*header> -\ProvidesExplPackage{l3pdfmeta}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdfmeta}{2022-04-14}{0.95n} {PDF-Standards---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx index 31a2b862739..f56714fbd93 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -212,7 +212,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdftools}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdftools}{2022-04-14}{0.95n} {candidate commands for l3pdf---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx index a4f479e12bd..32b45966fc2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -133,7 +133,7 @@ % \begin{macrocode} %<@@=pdf> %<*header> -\ProvidesExplPackage{l3pdfxform}{2022-03-17}{0.95m} +\ProvidesExplPackage{l3pdfxform}{2022-04-14}{0.95n} {command to create xforms (beta)---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx index fe104fda04a..d7b4224aa51 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -216,7 +216,7 @@ % \begin{macrocode} %<@@=pdfmanagement> %<*header> -\ProvidesExplPackage{ltdocinit}{2022-03-17}{0.95m} +\ProvidesExplPackage{ltdocinit}{2022-04-14}{0.95n} {Initialize document metadata} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx index f30740c9c1f..15fc8cf38b6 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -64,7 +64,7 @@ % |debug={firstaidoff={name1,name2,...},...}|. % \begin{macrocode} %<*package> -\ProvidesExplPackage{pdfmanagement-firstaid}{2022-03-17}{0.95m} +\ProvidesExplPackage{pdfmanagement-firstaid}{2022-04-14}{0.95n} {LaTeX PDF management testphase bundle / firstaid-patches} %<@@=pdfmanagement> diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx index d0a12a5d12d..4b764771fdd 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95m, released 2022-03-17} +% \date{Version 0.95n, released 2022-04-14} % % \maketitle % \begin{documentation} @@ -386,7 +386,7 @@ % \begin{macrocode} %<@@=pdf> %<*package> -\ProvidesExplPackage{pdfmanagement-testphase}{2022-03-17}{0.95m} +\ProvidesExplPackage{pdfmanagement-testphase}{2022-04-14}{0.95n} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ @@ -414,7 +414,7 @@ % to allow to set it in the document. % \begin{macrocode} %<*header> -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-03-17}{0.95m} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-04-14}{0.95n} {PDF~management~code~(testphase)} %</header> %<*package> diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty index 1be3ac8b030..f4f601f59fd 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty @@ -24,7 +24,7 @@ %% This file has the LPPL maintenance status "maintained". %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{color-ltx}[2022-03-17 v0.95m +\ProvidesPackage{color-ltx}[2022-04-14 v0.95n Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2022/01/06 v1.3d) (DPC)] \edef\Gin@codes{% \catcode`\noexpand\^^A\the\catcode`\^^A\relax diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def index 41d9585f6c1..b09aa6c98ce 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def @@ -20,7 +20,7 @@ %% %% File: hyperref-generic.dtx -\ProvidesFile{hgeneric-testphase.def}[2022-03-17 v0.95m % +\ProvidesFile{hgeneric-testphase.def}[2022-04-14 v0.95n % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty index 544f609d9e7..0f0c22f831f 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty @@ -19,7 +19,7 @@ % % for those people who are interested. \NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}{2022-03-17}{0.95m} +\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}{2022-04-14}{0.95n} {Store hyperref metadata in XMP format / temporay patches to test pdfresource management ... UF} \cs_if_exist:NT \pdfmanagement_add:nnn diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def index d8b38b0d75e..91cc92cae49 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvipdfmx.def}{2022-03-17}{} + {l3backend-testphase-dvipdfmx.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def index 04643fa192b..5294692323b 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvips.def}{2022-03-17}{} + {l3backend-testphase-dvips.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def index ddefa1bba67..5c65533807c 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvisvgm.def}{2022-03-17}{} + {l3backend-testphase-dvisvgm.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def index 64ba7b76158..41371a4d723 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-luatex.def}{2022-03-17}{} + {l3backend-testphase-luatex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def index 9f03182bbb1..0843cbad60c 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-pdftex.def}{2022-03-17}{} + {l3backend-testphase-pdftex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def index 3b20335fb46..7f00f69c4cc 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def @@ -20,7 +20,7 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-xetex.def}{2022-03-17}{} + {l3backend-testphase-xetex.def}{2022-04-14}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty index 8334225cd43..8f7170a1d30 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty @@ -27,7 +27,7 @@ %% File: l3pdffield.dtx \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2022-03-17}{0.95m}% +\ProvidesExplPackage{l3pdffield-testphase}{2022-04-14}{0.95n}% {form fields} \csname HyField@NeedAppearancesfalse\endcsname % suppress NeedAppearances \str_new:N \l__pdffield_tmpa_str @@ -1119,12 +1119,13 @@ \cs_set_eq:NN \pdffield_checkbox:n \__pdffield_checkbox:n %% File: l3pdfpdffield-radiobutton.dtx - \RequirePackage{l3draw} \tl_new:N \l__pdffield_radio_value_tl -\tl_new:N \l__pdffield_radio_default_tl +\bool_new:N \l__pdffield_radio_default_bool \int_new:N \l__pdffield_radio_value_num_int \tl_new:N \l__pdffield_radio_appearance_code_tl +\bool_new:N \l__pdffield_radio_unison_bool % if true use same name (e.g. /1) for same value +\bool_set_true:N \l__pdffield_radio_unison_bool \cs_new_protected:Npn \__pdffield_radio_default_appearances: { \pdffield_appearance:nn {pdffield/radio/default/Yes} @@ -1168,6 +1169,12 @@ } \cs_gset_eq:NN \__pdffield_radio_default_appearances: \prg_do_nothing: } +\ref_attribute_gset:nnnn {pdfradioindex}{0}{now} + { + \int_use:N\l__pdffield_radio_value_num_int + } +\cs_generate_variant:Nn \ref_label:nn {V} +\cs_generate_variant:Nn \ref_value:nn {V} \cs_new_protected:Npn \__pdffield_radio_field:n #1 %name { \pdf_object_if_exist:nF {__pdffield/field/__pdffield/radio/#1} @@ -1181,13 +1188,16 @@ {__pdffield/field/__pdffield/radio-Opt/#1} {\seq_use:cn {g__pdffield_radio_opt_#1_seq}{~}} } - \tl_if_eq:NnF \l__pdffield_radio_default_tl{()} + \pdfdict_put:nnx { l__pdffield/field }{V} { /\ref_value:nn{#1}{pdfradioindex} } + \pdfdict_put:nnx { l__pdffield/field }{DV} { /\ref_value:nn{#1}{pdfradioindex} } + \__pdffield_field:n { __pdffield/radio/#1 } + \bool_if:NF \l__pdffield_radio_unison_bool + { + \cs_new:cpn {g__pdffield_radio_unison_state_#1_tl} { - \seq_gput_left:cV { g__pdffield_radio_opt_#1_seq }\l__pdffield_radio_default_tl + \bool_set_false:N \l__pdffield_radio_unison_bool } - \pdfdict_put:nnx { l__pdffield/field }{V} { /0 } - \pdfdict_put:nnx { l__pdffield/field }{DV} { /0 } - \__pdffield_field:n { __pdffield/radio/#1 } + } } \keys_set:nn {pdffield}{parent=__pdffield/radio/#1} } @@ -1199,12 +1209,14 @@ \cs_set_eq:NN\__pdffield_value_handler:n \__pdffield_radio_value_handler:n \cs_set_eq:NN\__pdffield_default_handler:n \__pdffield_radio_default_handler:n \tl_set:Nn\l__pdffield_radio_appearance_code_tl{} + \bool_set_false:N\l__pdffield_radio_default_bool \keys_set:nn {pdffield} { fieldID= ,name=radio ,width = \normalbaselineskip ,height = \normalbaselineskip + ,inunison ,__pdffield/preset/radiobutton ,#1 ,unsetFf={Pushbutton} @@ -1216,15 +1228,15 @@ \pdfdict_get:nnN {l__pdffield/field}{T}\l__pdffield_fieldID_tl \tl_put_left:Nn \l__pdffield_fieldID_tl {__pdffield/radio/} } + \cs_if_exist_use:c {g__pdffield_radio_unison_state_ \l__pdffield_fieldID_tl _tl} \__pdffield_radio_field:V\l__pdffield_fieldID_tl - \seq_if_in:cVF { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq }\l__pdffield_radio_value_tl + \seq_gput_right:cV { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq }\l__pdffield_radio_value_tl + \bool_if:NTF \l__pdffield_radio_unison_bool + { + \int_zero:N \l__pdffield_radio_value_num_int + \exp_args:Nc + \seq_map_inline:Nn { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq } { - \seq_gput_right:cV { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq }\l__pdffield_radio_value_tl - } - \int_zero:N \l__pdffield_radio_value_num_int - \exp_args:Nc - \seq_map_inline:Nn { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq } - { \str_if_eq:nVTF { ##1 } \l__pdffield_radio_value_tl { \seq_map_break: @@ -1232,9 +1244,23 @@ { \int_incr:N \l__pdffield_radio_value_num_int } + } + } + { + \int_set:Nn \l__pdffield_radio_value_num_int + {\seq_count:c { g__pdffield_radio_opt_ \l__pdffield_fieldID_tl _seq } -1 } } - \int_compare:nNnTF { \l__pdffield_radio_value_num_int } = 0 - { \pdfannot_dict_put:nnx {widget}{AS}{/0} } + \bool_if:NT\l__pdffield_radio_default_bool + { + \exp_args:Ne + \ref_label:nn{\l__pdffield_fieldID_tl}{pdfradioindex} + } + + \int_compare:nNnTF { \l__pdffield_radio_value_num_int } = + { + \ref_value:Vn\l__pdffield_fieldID_tl{pdfradioindex} + } + { \pdfannot_dict_put:nnx {widget}{AS}{/\ref_value:Vn\l__pdffield_fieldID_tl{pdfradioindex}} } { \pdfannot_dict_put:nnx {widget}{AS}{/Off} } \tl_if_empty:NT\l__pdffield_radio_appearance_code_tl { @@ -1251,16 +1277,32 @@ } \cs_new_protected:Npn \__pdffield_radio_value_handler:n #1 { - \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_radio_value_tl + \pdf_string_from_unicode:nnN {utf16/string}{#1}\l__pdffield_radio_value_tl } \cs_new_protected:Npn \__pdffield_radio_default_handler:n #1 { - \pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_radio_default_tl + %\pdf_string_from_unicode:nnN {utf8/string}{#1}\l__pdffield_radio_default_tl + \bool_set_true:N \l__pdffield_radio_default_bool } \keys_define:nn { pdffield } { group .meta:n = {T=#1} } +\keys_define:nn { pdffield } + { + inunison .choice: + ,inunison / true .code:n = + { + \bool_set_true:N \l__pdffield_radio_unison_bool + \bitset_set_true:Nn \l__pdffield_Ff_bitset {RadiosInUnison} + } + ,inunison / false .code:n = + { + \bool_set_false:N \l__pdffield_radio_unison_bool + \bitset_set_false:Nn \l__pdffield_Ff_bitset {RadiosInUnison} + } + ,inunison .default:n = {true} + } \cs_new_protected:Npn \__pdffield_radio_appearance_handler:nnn #1 #2 #3 %name, type, text { \tl_put_right:Nn \l__pdffield_radio_appearance_code_tl diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty index fac409e53c9..6cabadb5a00 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty @@ -22,7 +22,7 @@ %% This work consists of the main source file pdflscape-ltx.sty %% \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{pdflscape-ltx}{2022-03-17}{0.95m} +\ProvidesExplPackage{pdflscape-ltx}{2022-04-14}{0.95n} {Display of landscape pages in PDF - adaption of pdflscape to the PDFmanagement bundle (testphase)} \DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty index 2100a3bd5b1..b653cc134b1 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-firstaid.dtx -\ProvidesExplPackage{pdfmanagement-firstaid}{2022-03-17}{0.95m} +\ProvidesExplPackage{pdfmanagement-firstaid}{2022-04-14}{0.95n} {LaTeX PDF management testphase bundle / firstaid-patches} \clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx index bc2badbb465..a74b2d1702d 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx @@ -27,7 +27,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-03-17}{0.95m} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-04-14}{0.95n} {PDF~management~code~(testphase)} %% File: l3pdfdict.dtx \cs_new:Npn \__pdfdict_get_type:n #1 diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty index 9195d020adf..30ad83fa329 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplPackage{pdfmanagement-testphase}{2022-03-17}{0.95m} +\ProvidesExplPackage{pdfmanagement-testphase}{2022-04-14}{0.95n} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty index 3599d318209..d92ef551d13 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty @@ -3,7 +3,7 @@ %% a replacement for transparent sty from Heiko Oberdiek %% \NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesExplPackage{transparent-ltx}{2022-03-17}{0.95m} +\ProvidesExplPackage{transparent-ltx}{2022-04-14}{0.95n} {Transparency with color stacks (replacement for transparent.sty from Heiko Oberdiek)}% \RequirePackage{l3opacity} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty index 14ccb923a54..3c298e5b992 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty @@ -1,6 +1,6 @@ %% LaTeX2e file `xcolor-patches.sty' %% -\ProvidesPackage{xcolor-patches-tmp-ltx}[2022-03-17 v0.95m patch xcolor for l3color] +\ProvidesPackage{xcolor-patches-tmp-ltx}[2022-04-14 v0.95n patch xcolor for l3color] \@ifundefined{color_set:nn}{\RequirePackage{l3color}}{} \ExplSyntaxOn |