Joseph Haig wrote: > I am using this module to create a PDF file, from some autogenerated > LaTeX. However, the file needs to be processed twice to get the > correct output, as is sometimes the case with LaTeX. Is this > possible? I have naively tried: > > $template->process(\$latex,$pdfOptions,$pdfFile,binmode=>1); > $template->process(\$latex,$pdfOptions,$pdfFile,binmode=>1); > > but this doesn't help. > > Thanks, > > Joe > > Try using Template::Plugin::Latex - it will run the necessary processes. (You are probably using Template::Latex)
Invoking $template->process twice doesn't help as Template::Latex (and Template::Plugin::Latex) copies the sources code to a temporary directory, runs LaTeX on the temporary file and then copies out the output file and deletes the temporary directory, with all of the auxilliary files (.aux, .toc, etc) that are needed for cross references, tables of contents, etc. The version of Template::Plugin::Latex on CPAN is 3.00_05, which is a developer release. I plan on updating that to 3.00 within the next couple of weeks, once I have found some time to test it properly. Regards Andrew -- Andrew Ford South Wing Compton House Compton Green, Redmarley Gloucester, GL19 3JB, UK Telephone: +44 1531 829900 Mobile: +44 7785 258278 _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
