In the kvoptions
package the following macro is defined:
\DeclareStringOption [⟨init⟩] {⟨key⟩} [⟨default⟩]
Following is the related documentation:
A macro is created that remembers the value of the key ⟨key⟩. The name of the macro consists of the option name ⟨key⟩ that is prefixed by the prefix (see 2.1.3). The initial contents of the macro can be given by the first optional argument ⟨init⟩. The default is empty. The the option ⟨key⟩ is defined. The option code just stores its value in the macro. If the optional argument at the end of
\DeclareStringOption
is given, then option ⟨key⟩ is defined with the default ⟨default⟩.
I fail to understand what is the difference between the default
value and the init
one. Can someone please explain?