用法
rubber是一个latex的wrapper. 它免去了你先把eps -> pdf, 再latex paper.tex, 再bibtex paper 再 latex paper.tex这个复杂的过程. 你只需要一个命令就能完成
$rubber paper
问题/解决
不同的版本/平台上, rubber可能会有一些问题:
1 eps转pdf的时候报错
GS_OPTIONS=-dPDFSETTINGS=/prepress rubber --pdf -Wrefs -Wmisc paper
running: epstopdf --outfile=aaa.pdf aaa.eps...
Traceback (most recent call last):
File "/usr/local/bin/rubber", line 4, in
sys.exit(Main()(sys.argv[1:]))
File "/Library/Python/2.6/site-packages/rubber/cmdline.py", line 319, in __call__
return self.main(cmdline)
File "/Library/Python/2.6/site-packages/rubber/cmdline.py", line 283, in main
ret = env.final.make(self.force)
File "rubber/depend.py", line 157, in make
File "rubber/depend.py", line 171, in make
File "rubber/depend.py", line 276, in run
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
make: *** [pdf] Error 1
修改/usr/local/share/rubber/rules.ini
command = epstopdf --outfile=$target $source
改为
command = bash epstopdf --outfile=$target $source
2 无法使用bibtex
在我的Mac上, bibtex后面不能使用绝对路径(Ubuntu上则是好的, 很诡异).所以导致我rubber以后所有reference都不对.