The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Plugin::GoogleLaTeX - Render LaTeX equations using Google's Chart API

VERSION

Version 0.02

SYNOPSIS

Generates an image tag to render the given LaTeX equation using Google's chart API. See http://code.google.com/apis/chart/docs/gallery/formulas.html.

    [%- USE GoogleLaTeX -%]
    <p>[%- FILTER latex
        alt = '[ Utility maximization ]',
        title = 'Utility maximization',
        class = 'display',
        style = 'border:3px outset #dde; padding:16px;',
        id = 'umax',
        height = 100,
        color = 'fa1111',
        fill = 'bg,lg,20,ddddee,1,1111ff,0'
    -%]
    \begin{eqnarray}
    \max U(x,y) & = & \ln x + \ln y \\
    \mathrm{s.t.} & & p_xx + p_yy = I \\
    & & x \geq 0, y \geq 0
    \end{eqnarray}
    [%- END -%]
    </p>

METHODS

init

See http://search.cpan.org/perldoc/Template::Plugin::Filter#EXAMPLE

filter

See http://search.cpan.org/perldoc/Template::Plugin::Filter#EXAMPLE

AUTHOR

A. Sinan Unur, <nanis at cpan.org>

BUGS

Please report any bugs or feature requests to bug-template-plugin-googlelatex at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Plugin-GoogleLaTeX. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

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

    perldoc Template::Plugin::GoogleLaTeX

You can also look for information at:

ACKNOWLEDGEMENTS

Thank you Andy Wardley and all contributors to Template-Toolkit.

LICENSE AND COPYRIGHT

Copyright 2010 A. Sinan Unur.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.