Sublime Forum

Build system "cmd" fails only when using PSTricks and xelatex

#1

I am using ST3 (build 3083) for my XeLaTeX. Until now I have successfully used this custom build system:

"cmd": ["/usr/local/texlive/2015basic/bin/x86_64-darwin/xelatex" ,"$file"], 
    "selector": "text.tex.latex"

But now when I try to use PSTricks, it doesn’t work. The build report tells me that

file.aux was not found;

and the PSTricks graphics are missing from the output document.

The strange thing is that when I build the file from the command line using:
/usr/local/texlive/2015basic/bin/x86_64-darwin/xelatex file.tex
it works fine: all the graphics are present and good.

Also, when I use TexLive it also works fine.

So it is just the ST3 build that is giving me the problem.

Any ideas what I am doing wrong?

Tim

0 Likes

#2

Maybe PSTricks depends on the working directory?

You can make ST set the working directory in a build system, but unfortunately it is not possible at this moment to do so based on variables (i.e. context). See https://github.com/SublimeTextIssues/Core/issues/1013.

0 Likes

#3

I will try this suggestion.

0 Likes

#4

OK, this suggestion didn’t work.

But I found that installing the package SublimeFixMacPath solves the problem.

Problem solved.

0 Likes