On Wed, 10 Oct 2007, Paul A. Rubin wrote:

I would write the template as an ordinary document (and of course would
write it in LyX, then export to .tex), using some distinctive placeholders
where the good stuff would be inserted (e.g., %%variable 1%% or some
such).  Then have a script create a copy of the .tex file (so as not to
corrupt the master template) and use sed to substitute the good stuff for
the placeholders.  Depending on what the good stuff looks like, you might
have to escape a character here or there.

Paul,

  I think this is fundamentally the same approach Todd used.

Or am I missing something fundamental here?

  Honestly don't know at this time.

  I was expecting to find a Python library, because Python has libraries for
almost everything, but the PyTeX project apparently died 2-4 years ago.
Ideally, there would be the equivalent of, for example, pysqlite which is
the connection between Python code and the SQLite database (there are
equivalents for postgres and other dbms).

  How it would work or what it would need I've no idea now.

  But, you've contributed to the ideas, and that's a Good Thing(R). Many
thanks,

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

Reply via email to