LaTeX-Easy-Templates
view release on metacpan or search on metacpan
'output' => {
'filepath' => $output_filename,
},
'processor' => 'custom-labels',
});
die "failed to format the document, most likely latex command has failed." unless defined $ret;
print "$0 : done, output in '$output_filename'.\n";</code></pre>
<p>This is the result in very low resolution:</p>
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDABoSExcTEBoXFRcdGxofJ0AqJyMjJ084PC9AXVJiYVxSWllndJR+Z22Mb1laga+CjJmepqemZHy2w7ShwZSjpp//wgALCADdAlgBAREA/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oACAEBAAAAAfpgAAAAAAAAAAABAAAUBAAAKAgAAKSgc...
<h1 id="EXAMPLE:-NESTED-PERL-DATA-STRUCTURES-TO-PDF">EXAMPLE: NESTED PERL DATA STRUCTURES TO PDF</h1>
<p>Thanks to the amazing work put in <a>Text::Xslate</a> one can have access to user-defined Perl functions, Perl modules and macros from inside a template file.</p>
<p>This allows recusrsion which makes possible walking and printing a nested Perl data structure with this simple template:</p>
<pre><code>%templates/nested-data-structures/nested-data-structures.tex.tx
\documentclass[12pt]{article}
\begin{document}
lib/LaTeX/Easy/Templates.pm view on Meta::CPAN
},
'processor' => 'custom-labels',
});
die "failed to format the document, most likely latex command has failed." unless defined $ret;
print "$0 : done, output in '$output_filename'.\n";
This is the result in very low resolution:
=begin HTML
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDABoSExcTEBoXFRcdGxofJ0AqJyMjJ084PC9AXVJiYVxSWllndJR+Z22Mb1laga+CjJmepqemZHy2w7ShwZSjpp//wgALCADdAlgBAREA/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oACAEBAAAAAfpgAAAAAAAAAAABAAAUBAAAKAgAAKSgc...
=end HTML
=head1 EXAMPLE: NESTED PERL DATA STRUCTURES TO PDF
Thanks to the amazing work put in L<Text::Xslate>
one can have access to user-defined Perl functions,
Perl modules and macros from inside a template file.
This allows recusrsion which makes possible walking and
( run in 0.406 second using v1.01-cache-2.11-cpan-0a6323c29d9 )