xelatex가 TeXLive와 함께 제공되는 스크립트 대신 수동으로 설치된 고스트스크립트를 호출하도록 만드는 방법은 무엇입니까?

xelatex가 TeXLive와 함께 제공되는 스크립트 대신 수동으로 설치된 고스트스크립트를 호출하도록 만드는 방법은 무엇입니까?

제가 조사한 바에 따르면 TeXLive 설치 프로그램은 다음과 같이 GhostScript(32비트 버전)를 자동으로 설치합니다.

여기에 이미지 설명을 입력하세요

xelatex이 GS에 의존하는지 모르겠습니다 .

저는 수동으로 설치하는 GS를 선호합니다. 그래서 질문은

GS를 호출하는 경우 xelatex(잘 모르겠습니다) xelatexTeXLive에서 설치한 GS가 아닌 수동으로 설치한 GS를 호출하려면 어떻게 해야 합니까?

즉, xelatexInvokes 인 경우 수동으로 설치한 것을 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.

관련 정보