Rich Shepard wrote, On 10/10/2007 12:09 PM:
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.


Almost, except I was using [La]TeX variables so that you do not have to modify the template file, just the variable defining file.

--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

Reply via email to