use Sub::Name ();
-sub import {
- shift;
+=head1 METHODS
- register(@_);
-}
+=head2 C<< register $keyword => $code >>
+
+Registers C<$code> to be available with C<< Tikz->$keyword >>.
+
+=cut
sub register {
+ shift;
+
while (@_ >= 2) {
my ($name, $code) = splice @_, 0, 2;
return;
}
+=head2 C<load>
+
+Load all the modules of the L<LaTeX::TikZ> official suite that register a keyword in the interface.
+
+=cut
+
sub load {
require LaTeX::TikZ::Formatter; # formatter
+ require LaTeX::TikZ::Functor; # functor
require LaTeX::TikZ::Set::Raw; # raw