Vincent Pit


LaTeX::TikZ::Mod - Base role for LaTeX::TikZ modifiers.


Version 0.02


This role should be consumed by all the modifier classes.


These methods are required by the interface :

  • tag

    Returns an identifier for the mod object. It is used to gather mods together when calling covers on them.

  • covers $mod

    Returns true if and only if the effects of the mod $mod are already ensured by the current mod object, in which case no actual TikZ code will be emitted for $mod. Both mod objects are guaranteed to have the same tag.

  • declare $formatter

    Returns an array reference of TikZ code lines required to declare this mod before using it, formatted by the LaTeX::TikZ::Formatter object $formatter ; or undef if no declarations are needed for this mod.

  • apply $formatter

    Returns the TikZ code that activates the current mod as a string formatted by the LaTeX::TikZ::Formatter object $formatter.




Vincent Pit, <perl at>,

You can contact me by mail or on (vincent).


Please report any bugs or feature requests to bug-latex-tikz at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc LaTeX::TikZ


Copyright 2010 Vincent Pit, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Hosting generously
sponsored by Bytemark