I have updated the Latex plugin on subversion at
svn://svn.tt2.org/Template-Latex/trunk/
I have pretty much rewritten the Template::Latex module, and the core
functionality is almost complete, with the exception that I haven't
coded the method to determine whether bibtex needs to be run. Forward
references, file inclusion and index generation work, and there is some
unit test coverage. It probably doesn't work on Windows at the moment,
but it shouldn't be difficult to rectify that.
Bibliographies and indexes may be esoteric for most generated documents,
but the forward references feature on its own may be useful, as it
allows you to do a "page n of m" footer using the "lastpage" LaTeX package.
My immediate plans for the module are:
1. fix the bibtex issue
2. extend the documentation
3. extend the test suite
4. think about advanced usage (specifying TEXINPUTS paths, extra options
for the processes, and maybe the ability to specify additional processes
- I need to look at the texlive documentation, the individual man pages
for latex, et al, and sources such as The LaTeX Companion and think
about what is missing in the code)
5. make a developer release to CPAN
I think I should be able to find time for all this this month, but I
would be grateful if people would try it out and look at the code, tell
me their experiences and give me their feedback.
Regards
Andrew
Andrew Ford wrote:
> I have committed my changes to subversion. The code is not yet fully
> functional, but things like forward references in the LaTeX text do
> work. I hope to fix some of the more obvious bugs and update the
> documentation tomorrow.
>
> Andrew
>
>
> Andrew Ford wrote:
>
>> I have been working on Template::Plugin::Latex recently and have got it to:
>>
>> * run latex repeatedly if necessary to resolve references or if the
>> values of labels (i.e. page references) continue to change
>> * run bibtex if use of citations is detected (and run latex again
>> afterwards)
>> * run makeindex if the generation of a raw index file is detected (and
>> again re-run latex)
>> * modify TEXINPUTS to include the source directory in the search path so
>> that file inclusion (including inclusion of graphics files) works
>>
>> I am currently tidying it up and working on some unit tests and will
>> then commit to subversion and in due course upload a developer release
>> to CPAN. I am thinking of bumping the major version number given the
>> changes made to the module.
>>
>> Is anyone interested in testing this and in discussing additions to the
>> interface (such as possibly flags to regard certain LaTeX warnings as
>> errors, to specify the work directly explicitly so that the auxilliary
>> files can be examined before they are automatically deleted, and so
>> on)? You can reply to me off-list if you prefer.
>>
>> I expect to have the code in a consistent state ready to commit to
>> subversion in the next day or so, and hopefully have a developer release
>> out in a week or so.
>>
>> 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