X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FInterface.pm;h=93b00435e27c267bce9be63cc903e51553f50219;hb=03788848f1b2d570c82eb682bd45bc0d01c5223b;hp=b9371f6d91e9aa9414f6dd3aba9ddc10a6210f62;hpb=d934d1a7f7268b248687f14e0ede2723010bf243;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Interface.pm b/lib/LaTeX/TikZ/Interface.pm index b9371f6..93b0043 100644 --- a/lib/LaTeX/TikZ/Interface.pm +++ b/lib/LaTeX/TikZ/Interface.pm @@ -17,13 +17,17 @@ our $VERSION = '0.01'; 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; @@ -53,8 +57,15 @@ sub register { return; } +=head2 C + +Load all the modules of the L 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 @@ -80,6 +91,10 @@ sub load { require LaTeX::TikZ::Mod::Pattern; # pattern } +=head1 SEE ALSO + +L. + =head1 AUTHOR Vincent Pit, C<< >>, L.