diff options
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase')
46 files changed, 174 insertions, 78 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/CHANGELOG.md b/macros/latex/contrib/pdfmanagement-testphase/CHANGELOG.md index 537f671322..2fdc3b7db6 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/CHANGELOG.md +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/README.md b/macros/latex/contrib/pdfmanagement-testphase/README.md index c0479c353a..8736e0d670 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/README.md +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty index 1be3ac8b03..f4f601f59f 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.dtx b/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.dtx index 42f9394f41..457ea9f1ac 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.pdf b/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.pdf Binary files differindex d5c6a4fe82..ece868a47f 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/hyperref-generic.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty index 544f609d9e..0f0c22f831 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx index 70684ed8df..037a8bafc9 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.pdf Binary files differindex 07b1fb0e3c..1aa7e6c3db 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.dtx index c2df8ec1df..457064953c 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.pdf Binary files differindex 6d60ded2fc..bf4b4345d3 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfannot.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.dtx index 4fee589bde..e2ed2c3538 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.pdf Binary files differindex a74763e02c..ee05142d22 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfdict.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.dtx index d14030337c..55874dd701 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.pdf Binary files differindex 558ad28901..64c16f44cc 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-action.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.dtx index 3be026f609..7cd1b617f7 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.pdf Binary files differindex cb71bdc069..97d02b4e2f 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-checkbox.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.dtx index eb632bc10d..121c60b745 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.pdf Binary files differindex fe1c8a030c..19932cc3ee 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-choice.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.dtx index 26efb80bdc..0cd494954e 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.pdf Binary files differindex 35d9d25f9e..9cc07a6694 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-pushbutton.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.dtx index 0b34e661ed..a395088e4c 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.pdf Binary files differindex 1fd2ab346b..2491fbbfb1 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-radiobutton.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.dtx index 8ae34a4403..c0f5e4dbea 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.pdf Binary files differindex 01208f4326..2186636cbd 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield-textfield.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.dtx index c41cae5974..4fe5de4219 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.pdf Binary files differindex a709dc058d..3d4ee635c8 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffield.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.dtx index 12563457f6..2adc7fe617 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.pdf Binary files differindex 8099ddb99d..4b28a34f38 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdffile.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx index 0227b09965..fb8ca853e0 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.pdf Binary files differindex 1128e762fc..0f011fc723 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx index 35e9a3b937..77b69fad2d 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.pdf Binary files differindex 803370eb32..871b6574a7 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.dtx index 31a2b86273..f56714fbd9 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.pdf Binary files differindex 11b88bb6c4..52a5c22d76 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdftools.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.dtx index a4f479e12b..32b45966fc 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.pdf b/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.pdf Binary files differindex 95b9194360..0d638715ae 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfxform.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.dtx b/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.dtx index fe104fda04..d7b4224aa5 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.pdf b/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.pdf Binary files differindex 14a0b70d50..a0e1e9c6c0 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/ltdocinit.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.pdf b/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.pdf Binary files differindex 72c2a9c056..5e80a4566b 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/pdflscape-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/pdflscape-ltx.sty index fac409e53c..6cabadb5a0 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdflscape-ltx.sty +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx index f30740c9c1..15fc8cf38b 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.pdf b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.pdf Binary files differindex 812e5652ae..e5e921f73a 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.dtx b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.dtx index d0a12a5d12..4b764771fd 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.pdf b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.pdf Binary files differindex ae0c8a8420..3048335394 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.pdf +++ b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-testphase.pdf diff --git a/macros/latex/contrib/pdfmanagement-testphase/transparent-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/transparent-ltx.sty index 3599d31820..d92ef551d1 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/transparent-ltx.sty +++ b/macros/latex/contrib/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/macros/latex/contrib/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty index 14ccb923a5..3c298e5b99 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty +++ b/macros/latex/contrib/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 |