[texhax] LaTeX enhancement

William F. Adams wadams at atlis.com
Wed Sep 8 18:23:42 CEST 2004


On Wednesday, September 8, 2004, at 10:58  AM, M Senthil Kumar wrote:

> <SNIP>
>>   for file in filelist.txt; do rubber-pipe < $file > $file.ps; done
>>
>> However, I don't think you can avoid the fork()/exec(), LaTeX is not 
>> a batch
>> processor I think.
>>
>>   mvrgr, Wouter
> </SNIP>
>
> Hi,
> Pardon me if i am wrong, can't we use the following to achieve the same
> thing from any Unix command line ?
>
> $ for i in *.tex;do latex $i;done

The original query included:
> We are in need of an enhancement to the LaTeX command-line so that it 
> will read a list of tex filenames from either STDIN or disk and, for 
> each filename in the list, create a DVI file without forking and 
> execing each time.

As I understand it, for each file in the command above, there'll be an 
instance of loading a tex process into memory, processing a file, then 
unloading tex to repeat---it's this which the OP wants to avoid. It 
adds up to quite a bit of overhead for 80,000 iterations.

I think the development done on dvichop for instant preview in auctex 
(David Kastrup's project --- not 100% sure on the name) might be used 
for this.

William

-- 
William Adams, publishing specialist
voice - 717-731-6707 | Fax - 717-731-6708
www.atlis.com



More information about the texhax mailing list