Re: Converse of "Project/Set Main File" ? Suppress "PdfTeX failed to create a PDF file" ?
WinEdt Team <support <at> winedt.com>
2009-03-06 19:10:55 GMT
> Using WinEDT Build: 20040513 (v. 5.4)
>
> Two queries :
>
> 1) Is it possible to perform the inverse of "Project/Set Main
> File", by which I mean to mark a given file (open in a tab) as
> a subsidiary project file that should be auto-saved when any
> other file (open in a tab) is processed ?
>
> 2) Is it possible to suppress the pop-up that occurs when
> PdfTeX fails to create a PDF file ? My first two programs
> manipulate TeX data, and I do not wish to generate a PDF file
> (which would then automatically be displayed) because that
> would take focus away from WinEDT.
>
> To put both of these questions in context :
>
> I have five tabs open : Sort-1.TeX, Sort-2.TeX, Sort-3.Perl,
> Porphyrogenitus.TeX, and Byz-data.dat. If I update
> Byz-data.dat, my next task will be to process Sort-1.TeX (which
> will intentionally produce no PDF output), then Sort-2.TeX (--
> ditto --), then to launch PERL on Sort-3.Perl, and finally
> process Porphyrogenitus.TeX (which is the only file that should
> produce a PDF). Thus when I have updated Byz-data.dat, I would
> like it auto-saved when I launch Sort-1.TeX, without making
> Sort-1.TeX the Project Main File (because if I were to do the
> latter, I could not then process Sort-2.TeX, etc.).
If you are asking can this be done: the answer is YES.
If you are asking are there a few options I can check and the
things will suddenly work as I want: the answer is NO.
You will have to customize the macros in WinEdt/Exec folder to
accomplish what you want. This part of WinEdt is open source and
it would be impossible to introduce hundreds of options for exotic
tasks as the one above.
If I was doing something like this I would probably write a
custom macro to compile the project. But that would take some
skill.
In Execution Modes you can disable the option to Wait for
Execution to finish and WinEdt will not display any warnings
(it also will not launch any previewer). This way you can work
manually in steps without a main file (it gives you more
control over each step). As for saving .dat file when you start
compilation on a current document: you can either add a command
to save all files in the macro or else manually save the file
after it is modified. Any further customizations will require
changes to macros that do the compilation...
Best regards,
alex