Re: Re: new(?) approach to previewing MetaPost
WinEdt Team <support <at> winedt.com>
2007-06-01 22:53:28 GMT
>Speaking of which, I have some questions.
>
> 1. The metapost macro I wrote creates a tex file %n_proof.tex, and a
> list of existing files saved as %$('MP-filelist') . Then it executes
> this line:
> WinExe('',`pdftex %n_proof.tex %$('MP-filelist')`,'%p','pdftex...',
> 01010100,0,'','','',110);
> which creates a pdf file containing the figures.
> Question: if I instead try to run this in detached mode, pdftex does
> not generate output. Does this have something to do with the fact
> that this run of pdftex is taking %$('MP-filelist') as "arguments" to
> %n_proof.tex ? I don't have a good understanding of what detached
> mode does at the Windows level.
For detached mode you must also specify redirected output and
error files. Most console applications don't work in detached
mode unless you redirect their output and error stream. As
always, there are exceptions, though...
I did not test this particular command but with properly
defined parameters I would expect it to work in detached mode
as long as pdftex.exe does not launch any additional
accessories (add .exe to the executable just in case). In
detached mode you should then be able to read the specified
error or output log file and see if there was indeed a problem.
WinExe('',`pdftex.exe %n_proof.tex %$('MP-filelist')`,'%p','pdftex...',
00001110,0,'','%b\Out.log','%b\Err.log',000);
> 2. When do variables need to end with a semicolon? (In the example
(Continue reading)