waf - tex包含来自不同的文件夹

时间:2014-10-24 15:04:28

标签: latex relative tex waf

├── additives
│   ├── my.pdf
│   ├── some.jpg
│   ├── include.png
│   ├── ...
│
├── pdata.tex
├── letter.tex
├── cv.tex
├── glue
│   ├── cmds.tex
│   ├── combined.tex
│   └── packets.tex


top = '.'
out = 'build'

def configure(conf):
    conf.load('tex')

def build(bld):
    #shared = ['daten.tex', 'anschreiben.tex','lebenslauf.tex','glue/befehle.tex','glue/pakete.tex']
    shared = []

    bld(features = 'tex',
        type     = 'pdflatex',
        source   = ['glue/combined.tex'] + shared,
        outs     = 'pdf',
        prompt   = True
    )

glue/combined.tex包含所有其他*.tex个文件,但我似乎无法让glue/combined.tex包含来自glues父文件夹的任何内容 - 我得到没有这样的文件错误 - 。,我需要。

有没有人知道如何规避/解决这个问题?或者这是一个已知的错误?我没有找到bug报告。

1 个答案:

答案 0 :(得分:0)

在waf tex和pdflatex中都没有详细记录。

def build(bld):
    bld.env['TEXINPUTS'] = 'shared' # : split paths relative to cwd, but waf seems to only handle one dir
    bld(feature='tex', source='glue/combined.tex',...)

http://docs.waf.googlecode.com/git/apidocs_16/_modules/waflib/Tools/tex.html


Alternativly:

只需将目录符号链接到所需的文件夹即可。