Finally got a chance to try Ed's version of MakePDF
Works well with one small issue

This part of the code (in node: compute_file_names)

        if g.os_path_exists(fn) and g.os_path_exists(out_dir):
            return fn,out_dir
        else:
            log('not found: %s' % fn)
        return None,None

Flags a problem and based on the log I assumed I had a problem with
the spaces in the path for my tex file

lnstead the problem was the 2nd part of the if  :    and
g.os_path_exists(out_dir)

out-dir was not pre-created.  So changed it to

        if not g.os_path_exists(out_dir):
            log('Creating OUT dir %s' % out_dir)
            g.os.mkdir(out_dir)

        if g.os_path_exists(fn) and g.os_path_exists(out_dir):
            log('Running')
            log(fn)
            return fn, out_dir
        else:
            log('Problem ***')
            if not g.os_path_exists(fn):
                log('TEX file not found: %s' % fn)
            if not g.os_path_exists(out_dir):
                log('OUT dir not found: %s' % out_dir)
            return None,None

Only changed in my local copy (ie not pushed to launchpad)

Also MakePDF was not in the main branch version of scripts.leo
(revision 4597).  Found it in an earlier branch version

Finally, it is not hard to run ascript that converts a @rst node to
tex and then process the tex file
but it seems p.isAnyAtFileNode()  does not recognize nodes starting
with @rst.  I guess that makes sense, so I will work on creating a
step that translate a @rst node with ReStruct markup  to a @file x.tex
node

On Oct 4, 11:55 pm, "Edward K. Ream" <[email protected]> wrote:
> On Oct 4, 10:41 pm, "Edward K. Ream" <[email protected]> wrote:
>
> > You did indeed encourage development.  Rev 4536 contains a complete
> > rewrite of the script :-)
>
> Oh.  I forgot to mention that you must run Leo from a console when
> using this script, at least until the script can drive pdflatex in
> some kind of unattended mode.  As it is now, pdflatex is likely to
> hang, waiting for console input.  The typical (only?) response is to
> hit carriage returns until pdflatex finishes.  It's pretty wonky, but
> I have no control over that :-)
>
> I'm pretty sure that you had to run the original script from a console
> as well...
>
> Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to