在使用MacTex配合TexStudio编译beamer的时候,爆出如下错误,
xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.
结果尝试其他tex文件,也不能正常编译。
按照如下方式解决:
http://tex.stackexchange.com/questions/173038/xetex-and-xdvipdfmx-problem-in-texstudio-2
主要是TexStudio的设置
Show Advanced Options in the Preferences page, under Build > Build Options >
Additional Search Paths
, change Commands ($PATH) to /usr/texbin
and it should work, even if you upgrade MacTeX or TeX Live.
更新:
对于El Captian系统,原有的/usr/texbin路径被统一更换为/Library/TeX/texbin