On Wed, 10 Oct 2007, Ernesto Posse wrote:
Since you are using Python, I suggest using the string.Template class for this purpose.
The example on that 'man' page suggests the path to ultimate happiness, using the Python shell:
from string import Template s = Template('$who likes $what') s.substitute(who='tim', what='kung pao')
'tim likes kung pao' I think what might work is writing the LaTeX template as a series of print statements (writing to an output file with the .tex extension), and using the Template class to replace each variable as needed, before printing that line to the output file, too. I'll play with this. It looks promising. Thanks, all, Rich -- Richard B. Shepard, Ph.D. | The Environmental Permitting Applied Ecosystem Services, Inc. | Accelerators(TM) <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863