Bo Peng wrote: > I did it! I added a shell template to my external_template. Now, I > can specify command in $$FName and parameters in $$Parameter and get > whatever `$$Fname $$Parameter` outputs. > > My lyx file can not be opened on another machine but I do not really > care. With this functionality, everything can be automated so > portability is only a small price to pay.
and it won't work in 1.4.x because $$Parameters no longer exists. > Template Shell > Format LaTeX > Product "$$Contents(\"$$Tempname\")" > UpdateCommand "python > $$Sysdir/scripts/general_command_wrapper.py - > $$Tempname $$FName $$Parameters" > FormatEnd > TemplateEnd -- Angus