On Wed, Dec 12, 2007 at 10:05:45AM +0100, Juergen Spitzmueller wrote: > Enrico Forestieri wrote: > > > Secondly, cmd is a command whose arguments are > > quoted for being processed by a shell, but this is not so. Hence > > when calling > > > > latex 'newfile1.tex' > > > > latex is passed the filename 'newfile1.tex' *literally*, and of course > > only newfile1.tex exists. On Windows it works because double quotes > > are used and the API functions expect the quotes. > > However, removing the quotes does not solve the problem.
Most probably because you have pplatex as a converter. For some reason it doesn't understand the newly added -max-print-line switch and fails. When I apply the attached patch, use the attached mylatex script as the latex->dvi converter and the attached myxdvi script as the dvi viewer, I am able to see the dvi output. -- Enrico
Index: src/support/SystemcallPrivate.cpp =================================================================== --- src/support/SystemcallPrivate.cpp (revision 22100) +++ src/support/SystemcallPrivate.cpp (working copy) @@ -56,7 +56,7 @@ } process.setReadChannel(QProcess::StandardOutput); - process.start(toqstr(cmd), QStringList(), QIODevice::ReadOnly); + process.start(toqstr(cmd), QIODevice::ReadOnly); // wait some seconds until the process has started process.waitForStarted(10 * 1000); if (waitForFinished) {
#!/bin/sh args=`echo $* | sed "s/'//g"` latex $args
#!/bin/sh args=`echo $* | sed "s/'//g"` xdvi $args