|
@@ -77,8 +77,8 @@ and the derived files grabbox.pdf and
|
77
|
77
|
\end{document}
|
78
|
78
|
%</driver>
|
79
|
79
|
%<*pkg>
|
80
|
|
-\newcommand*\grabbox@date{2018-10-17}
|
81
|
|
-\newcommand*\grabbox@version{1.0}
|
|
80
|
+\newcommand*\grabbox@date{2018-10-18}
|
|
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>
|
|
@@ -144,7 +144,7 @@ and the derived files grabbox.pdf and
|
144
|
144
|
%
|
145
|
145
|
% \smallskip
|
146
|
146
|
% All assignments are made local. Currently it is not safe to nest macros
|
147
|
|
-% which use \cs{grabbox}. It should become save if your macros use
|
|
147
|
+% which use \cs{grabbox}. It should become safe if your macros use
|
148
|
148
|
% \cs{grabbox} inside of a group, so the inner \cs{grabbox} doesn't affect the
|
149
|
149
|
% outer one.
|
150
|
150
|
%
|
|
@@ -160,13 +160,10 @@ and the derived files grabbox.pdf and
|
160
|
160
|
% \section{Useless Example!}
|
161
|
161
|
%
|
162
|
162
|
% First we need to reserve us a box register for this example:
|
163
|
|
-%
|
164
|
163
|
% \begin{verbatim}
|
165
|
164
|
% \newsavebox\ourbox
|
166
|
165
|
% \end{verbatim}
|
167
|
|
-%
|
168
|
166
|
% Next we define a macro which takes some arguments and uses \cs{grabbox}:
|
169
|
|
-%
|
170
|
167
|
% \begin{verbatim}
|
171
|
168
|
% \newcommand\examplecmd[2]
|
172
|
169
|
% {%
|
|
@@ -174,9 +171,7 @@ and the derived files grabbox.pdf and
|
174
|
171
|
% \grabbox\ourbox[\itshape]\hbox[ \sffamily is]{\examplecmdOut{#1}{#2}}
|
175
|
172
|
% }
|
176
|
173
|
% \end{verbatim}
|
177
|
|
-%
|
178
|
174
|
% And we need our helper macro which is executed after \cs{grabbox}:
|
179
|
|
-%
|
180
|
175
|
% \begin{verbatim}
|
181
|
176
|
% \newcommand\examplecmdOut[3]
|
182
|
177
|
% {%
|