perl-Template-Plugin-Latex - Latex support for the Template Toolkit

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Template-Plugin-Latex
Package version 3.12
Package release alt1
Package architecture noarch
Package type rpm
Installed size 42.55 KB
Download size 42.55 KB
Official Mirror
The `Latex' Template Toolkit plugin provides a `latex' filter that
allows the use of LaTeX to generate PDF, PostScript and DVI output files
from the Template Toolkit.  The plugin uses the LaTeX::Driver manpage to run the
various LaTeX programs.
Processing of the LaTeX document takes place in a temporary directory
that is deleted once processing is complete.  The standard LaTeX
programs (`latex' or `pdflatex', `bibtex' and `makeindex') are run
and re-run as necessary until all references, indexes, bibliographies,
table of contents, and lists of figures and tables are stable or it is
apparent that they will not stabilize.  The format converters `dvips',
`dvipdf', `ps2pdf' and `pdf2ps' are run as necessary to convert the
output document to the requested format.  The `TEXINPUTS' environment
variable is set up to include the template directory and the `INCLUDES'
directories, so that LaTeX file inclusion commands should find the
intended files.
The output of the filter is binary data (although PDF and PostScript are
not stictly binary).  You should be careful not to prepend or append any
extraneous characters (even space characters) or text outside the FILTER
block as this text will be included in the file output.  Notice in the
example below how we use the post-chomp flags ('-') at the end of the
`USE' and `END' directives to remove the trailing newline characters:
[% USE Latex(format='pdf') -%]
[% FILTER latex %]
...LaTeX document...
[% END -%]
If you're redirecting the output to a file via the third argument of
the Template module's `process()' method then you should also pass
the `binmode' parameter, set to a true value to indicate that it is a
binary file.
use Template;
my $tt = Template->new({
INCLUDE_PATH => '/path/to/templates',
OUTPUT_PATH  => '/path/to/pdf/output',
my $vars = {
title => 'Hello World',
$tt->process('example.tt2', $vars, 'example.pdf', binmode => 1)
|| die $tt->error();
If you want to capture the output to a template variable, you can do
so like this:
[% output = FILTER latex %]
...LaTeX document...
[% END %]
You can pass additional arguments when you invoke the filter, for
example to specify the output format.
[% FILTER latex(format='pdf') -%]
...LaTeX document...
[% END %]
If you want to write the output to a file then you can specify an
`output' parameter.
[% FILTER latex(output='example.pdf') %]
...LaTeX document...
[% END %]
If you don't explicity specify an output format then the filename
extension (e.g. 'pdf' in the above example) will be used to determine
the correct format.
You can specify a different filter name using the `filter' parameter.
[% USE Latex(filter='pdf') -%]
[% FILTER pdf %]
...LaTeX document...
[% END %]
You can also specify the default output format.  This value can be
`latex', `pdf' or `dvi'.
[% USE Latex(format='pdf') %]
Note: the `LaTeX::Driver' distribution includes three filter programs
(`latex2dvi', `latex2pdf' and `latex2ps') that use the
`LaTeX::Driver' package to process LaTeX source data into DVI, PDF or
PostScript file respectively.  These programs have a `-tt2' option to
run their input through the Template Toolkit before processing as LaTeX
source.  The programs do not use the `Latex' plugin unless the template
requests it, but they may provide an alternative way of processing
Template Toolkit templates to generate typeset output.


Package Version Architecture Repository
perl-Template-Plugin-Latex - - -


Name Value
/usr/share/perl5 -
perl(File/ -
perl(LaTeX/ >= 0.070
perl(LaTeX/ >= 0.020
perl(LaTeX/ -
perl( >= 2.160
perl(Template/ -
perl(Template/ -
perl( -
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -


Name Value
perl(Template/ = 3.110
perl(Template/Plugin/ = 3.120
perl-Template-Plugin-Latex = 1:3.12-alt1


Type URL
Binary Package perl-Template-Plugin-Latex-3.12-alt1.noarch.rpm
Source Package perl-Template-Plugin-Latex-3.12-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Template-Plugin-Latex rpm package:
    # sudo apt-get install perl-Template-Plugin-Latex



See Also

Package Description
perl-Template-Plugin-Ligature-0.04-alt1.noarch.rpm Typographic ligature filter for TT
perl-Template-Plugin-Lingua-Conjunction-0.02-alt1.noarch.rpm perl module Template-Plugin-Lingua-Conjunction
perl-Template-Plugin-Lingua-EN-Fractions-0.02-alt1.noarch.rpm TT2 interface to Lingua::EN::Fractions module
perl-Template-Plugin-Lingua-EN-Inflect-0.04-alt1.noarch.rpm perl module Template-Plugin-Lingua-EN-Inflect
perl-Template-Plugin-Lingua-EN-NameCase-0.02-alt1.noarch.rpm TT2 interface to Lingua::EN::NameCase module
perl-Template-Plugin-Lingua-EN-Numbers-0.02-alt1.noarch.rpm TT2 interface to Lingua::EN::Numbers modules
perl-Template-Plugin-Lingua-JA-Regular-Unicode-0.02-alt1.noarch.rpm TT Filter Plugin for Lingua::JA::Regular::Unicode
perl-Template-Plugin-LinkTarget-0.02-alt1.noarch.rpm TT filter to add "target" attribute to all HTML links
perl-Template-Plugin-LinkTo-0.093-alt1.noarch.rpm like link_to in Ruby on Rails
perl-Template-Plugin-ListCompare-0.05-alt1.noarch.rpm Compare the elements of 2 or more lists in a TT template
perl-Template-Plugin-ListMoreUtils-0.03-alt1.noarch.rpm TT2 plugin to use List::MoreUtils
perl-Template-Plugin-ListOps-2.01-alt1.noarch.rpm Plugin interface to list operations
perl-Template-Plugin-ListUtil-0.02-alt1.noarch.rpm perl module Template-Plugin-ListUtil
perl-Template-Plugin-MIME-0.12-alt1.noarch.rpm TemplateToolkit plugin providing a interface to MIME::Entity
perl-Template-Plugin-MP3-1.02-alt1.noarch.rpm perl module Template-Plugin-MP3