[latex3-commits] [git/LaTeX3-latex3-pdfresources] radiobuttons: typos (747b0ed)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri May 28 00:46:45 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : radiobuttons
Link       : https://github.com/latex3/pdfresources/commit/747b0ed7314e917330a4594f8fb2e239bb0622ba

>---------------------------------------------------------------

commit 747b0ed7314e917330a4594f8fb2e239bb0622ba
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri May 28 00:46:45 2021 +0200

    typos


>---------------------------------------------------------------

747b0ed7314e917330a4594f8fb2e239bb0622ba
 l3pdffield-pushbutton.dtx   | 19 ++++++++++++++-----
 l3pdffield.dtx              |  8 ++++++++
 pdfmanagement-testphase.ins |  1 +
 3 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/l3pdffield-pushbutton.dtx b/l3pdffield-pushbutton.dtx
index 388aa05..b504c87 100644
--- a/l3pdffield-pushbutton.dtx
+++ b/l3pdffield-pushbutton.dtx
@@ -95,8 +95,9 @@
 %  \cs{pdffield_push:n}\Arg{key val list}
 % \end{syntax}
 % This creates a pushbutton. Unlike radio buttons and checkboxes pushbuttons
-% don't change their state, instead the purpose is to trigger an action. Important
-% options are Submit and Reset. They will be setup in another module.
+% don't change their state, instead their purpose is to trigger an action. Important
+% options are for example Submit and Reset. Interfaces for such action
+% will be setup in another module.
 % The list of allowed keys is described below.
 % The \meta{key val list} should at least set the name, without it the default name
 % |pushbutton| is used. The default appearance
@@ -365,7 +366,7 @@
 %
 %  \begin{macro}
 %   {
-%    @@/pushbutton/default_appearances:,
+%    \@@_pushbutton_default_appearances:n,
 %    pdffield/pushbutton/defaultN,
 %    pdffield/pushbutton/defaultR,
 %    pdffield/pushbutton/defaultD,
@@ -391,6 +392,14 @@
            [ \dim_eval:n { \box_ht:N\strutbox+\box_dp:N\strutbox } ]
            { \phantom{\texttimes} \strut }
        }
+    \pdffield_appearance:nn {pdffield/pushbutton/defaultD}
+       {
+         \normalsize
+         \fboxsep 0pt
+         \framebox
+           [ \dim_eval:n { \box_ht:N\strutbox+\box_dp:N\strutbox } ]
+           { \phantom{\texttimes} \strut }
+       }
 
   }
 %    \end{macrocode}
@@ -418,7 +427,7 @@
 \cs_new_protected:Npn \@@_pushbutton:n #1
   {
     \group_begin:
-    \@@_pushputton_default_appearances:n {TEXT}
+    \@@_pushbutton_default_appearances:n {TEXT}
   %  \cs_set_eq:NN\@@_appearance_handler:nnn \@@_checkbox_appearance_handler:nnn
   %  \cs_set_eq:NN\@@_value_handler:n   \@@_checkbox_value_handler:n
   %  \cs_set_eq:NN\@@_default_handler:n \@@_checkbox_default_handler:n
@@ -429,7 +438,7 @@
       {
         fieldID=,
         name=pushbutton,
-        appearance = pdffield/checkbox/default,
+        appearance = pdffield/pushbutton/defaultN,
         width  = 3cm,
         height = \normalbaselineskip,
       }
diff --git a/l3pdffield.dtx b/l3pdffield.dtx
index 3162cb5..d46d053 100644
--- a/l3pdffield.dtx
+++ b/l3pdffield.dtx
@@ -1843,10 +1843,18 @@
            @@/preset/textfield .meta:n = {#1},
          }
       }
+   ,preset-pushbutton .code:n =
+      {
+        \keys_define:nn { pdffield }
+         {
+           @@/preset/pushbutton .meta:n = {#1},
+         }
+      }
   }
 \keys_set:nn{ pdffield / setup }{preset-checkbox={}}
 \keys_set:nn{ pdffield / setup }{preset-textfield={}}
 \keys_set:nn{ pdffield / setup }{preset-radio={}}
+\keys_set:nn{ pdffield / setup }{preset-pushbutton={}}
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\@@_style_create:nn}
diff --git a/pdfmanagement-testphase.ins b/pdfmanagement-testphase.ins
index db1b6b0..77d38e8 100644
--- a/pdfmanagement-testphase.ins
+++ b/pdfmanagement-testphase.ins
@@ -131,6 +131,7 @@ and all files in that bundle must be distributed together.
         \from{l3pdffield-checkbox.dtx}{package}
         \from{l3pdffield-radiobutton.dtx}{package}
         \from{l3pdffield-textfield.dtx}{package}
+        \from{l3pdffield-pushbutton.dtx}{package}
       }%
   }
 





More information about the latex3-commits mailing list.