示例#1
0
文件: jobs.py 项目: exedre/e4t
def exec_job_TYPESET(options,*args,**kw):
    """Typeset .tex file for JOB"""
    kw = udict(kw)
    label = kw.xget('LABEL')
    if label:
        label = label.upper()
        outfile = kw.xget('OUTFILE')
        if not outfile:
            outfile = "%s.pdf" % label
        if not exists("%s.tex" % label):
            raise IOError, "File %s.tex not exists" % label
        goutput = options.define_set.expand(outfile)
        if goutput[0]!='/':
            goutput = join(options.output_path,goutput)
        save_latex(options,label,goutput)
示例#2
0
文件: typeset.py 项目: exedre/e4t
def exec_TYPESET(options,*args,**kwargs):
    ret,jlist,base,jobspecfile,order,jjspec = e4t.cli.select_jobs_from_jobfile(options.jobfile)
    for section,jobs in jlist.items():
        label = section
        if label:
            label = label.upper()
            outfile = None # kw.xget('OUTFILE')
            if not outfile:
                outfile = "%s.pdf" % label
            
            goutput = options.define_set.expand(outfile)
            if goutput[0]!='/':
                goutput = join(options.output_path,goutput)

            jnames = [ j[0] for j in jobs]
            save_latex(options,jnames,goutput)