Browse Source

better test for hbox with full expand

tags/1.2
Jonathan Spratte 3 years ago
parent
commit
dc1b2a2fd4
2 changed files with 5 additions and 1 deletions
  1. 5
    1
      grabbox.dtx
  2. BIN
      grabbox.pdf

+ 5
- 1
grabbox.dtx View File

@@ -78,7 +78,7 @@ and the derived files           grabbox.pdf and
78 78
 %</driver>
79 79
 %<*pkg>
80 80
 \newcommand*\grabbox@date{2018-10-18}
81
-\newcommand*\grabbox@version{1.0b}
81
+\newcommand*\grabbox@version{1.1}
82 82
 \ProvidesPackage{grabbox}
83 83
   [\grabbox@date\ v\grabbox@version\ utilities to get an argument as a box]
84 84
 %</pkg>
@@ -322,9 +322,13 @@ and the derived files           grabbox.pdf and
322 322
   }
323 323
 \grabbox@def\grabbox@unpack
324 324
   {%
325
+    \begingroup
326
+    \edef\grabbox@test{\grabbox@type}%
325 327
     \expandafter\ifx\grabbox@type\hbox
328
+      \endgroup
326 329
       \expandafter\@firstoftwo
327 330
     \else
331
+      \endgroup
328 332
       \expandafter\@secondoftwo
329 333
     \fi
330 334
     \unhbox

BIN
grabbox.pdf View File


Loading…
Cancel
Save