
根據我的調查,TeXLive 安裝程式將自動安裝 GhostScript(32 位元版本),如下所示。
不知道是否xelatex
取決於這個GS。
我更喜歡使用手動安裝的 GS。所以問題是
如果xelatex
呼叫 GS(我不確定),我怎麼能呼叫xelatex
我手動安裝的 GS 而不是 TeXLive 安裝的 GS?
換句話說,如果xelatex
invokes gswin32c
,我怎麼能讓它呼叫gswin64c
我手動安裝的?
答案1
這是相關部分dvipdfmx.cfg
:
137 %% In TeX Live, we use the rungs wrapper instead of ps2pdf, becuse we
138 %% must omit the -dSAFER which ps2pdf specifies: in order for pstricks
139 %% to work with xetex,
140 %% /usr/local/texlive/*/texmf-dist/dvips/pstricks/pstricks.pro (for
141 %% example) needs to be accessed. (Also, it is better to use our
142 %% supplied gs on Windows.) You can also add -dNOSAFER to the ps2pdf
143 %% command line.
144 %%
145 %% Incidentally, especially in TL, more than one dvipdfmx.cfg may be
146 %% extant. You can find the one that is active by running:
147 %% kpsewhich -progname=dvipdfmx -format='other text files' dvipdfmx.cfg
148 %% and control which one is found by setting DVIPDFMXINPUTS.
149 %%
150 D "rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dCompatibilityLevel=%v -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile='%o' '%i' -c quit"
該rungs
腳本位於 TeX Live 的二進位發行版中;實際上它是一個符號連結.../texlive/2014/texmf-dist/scripts/texlive/rungs.tlu
(在Windows上它可能會rungs.exe
呼叫相同的rungs.tlu
);它有
if os.type == 'windows' then
command={'gswin32c'}
else
command={'gs'}
end
因此系統將gs
在掃描目前的PATH
.在 Windows 上運行gswin32c
是硬連線的。您可以嘗試更改該行rungs.tlu
。