I have finally released a developer version of the TT2 Latex plugin to
CPAN (version 3.00_01). This requires my LaTeX::Driver module version
0.05. The files are also updates on svn.tt2.org.
The main new features are:
* internally it uses LaTeX::Driver to ensure that the document is
run through (pdf)latex, bibtex, makeindex, dvips, dvipdfm and/or
ps2pdf as many times as is necessary to format the document (with
an upper limit of maxruns times)
* the TEXINPUTS path can be specified, so that one can include other
tex, ist, bib files from other directories than the document
directory - the document directory is included in the path, so
that including files that are local to the source document should
work, even when running ttree
* the Template::Latex module is deprecated
* the plugin includes a latex_encode filter that will encode special
characters, so that "20% of $42" becomes "20\% of \$42". I am
still working on this feature and it will be possible to specify
which characters to exclude so you can say
"my company is \textbf{Ford & Mason Ltd}" |
latex_encode(exclude = "\\{}")
and get out "my company is \textbf{Ford \& Mason Ltd}". This will
allow you to embed LaTeX formatting commands in your data while
having the non-excluded special characters escaped for you.
There are probably other changes I've forgotten to mention but I just
want to get something out there for people to play with.
I am still working on the documentation and the test suite, although
most of the tests do pass (and test useful things). I will be including
an examples directory with some scripts that show how to use the plugin
for database publishing and generating personalized PDF files, etc.
I would welcome any feedback.
Andrew
--
Andrew Ford, Director Pauntley Prints / Ford & Mason Ltd
[EMAIL PROTECTED] South Wing Compton House
pauntley-prints.co.uk Compton Green, Redmarley Tel: +44 1531 829900
ford-mason.co.uk Gloucester GL19 3JB Fax: +44 1531 829901
refcards.com cronolog.org Great Britain Mobile: +44 7785 258278
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates