
texmaker에서 xelatex 문서를 컴파일하는 동안 오류가 발생했습니다. 내 시스템에 대한 정보입니다.
우분투 그놈 15.10
Texmaker 4.4.1 (시냅틱 형태로 설치)
dvd iso에서 texlive-2015 전체 설치(데비안 패키지 아님)(루트로 설치)
$ type xelatex
xelatex is /usr/local/texlive/2015/bin/x86_64-linux/xelatex
$ ls -l /usr/local/texlive/2015/bin/x86_64-linux/
lrwxrwxrwx 1 root root 5 Aug 14 2014 xelatex -> xetex
lrwxrwxrwx 1 root root 5 Aug 14 2014 xelollipop -> xetex
-rwxr-xr-x 1 root root 22473712 May 7 2015 xetex
이것은 내가 편집하려고 시도한 문서입니다. (오류를 발생시키는 가장 작은 문서)
\documentclass[]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{document}
some text.
\end{document}
내가 시도한 것은 다음과 같습니다.
문서를 연 상태에서 먼저 빠른 빌드를 시도했지만 texmaker가 pdflatex를 사용하여 빠른 빌드로 설정되어 있었기 때문에 예상대로 실패했습니다. Fontspec 패키지에서 xelatex 또는 lualatex를 사용하라는 오류가 발생했습니다. 이제 도구-> Xelatex를 수동으로 선택했습니다. 이거 역시실패했습니다같은Fonstpec의 오류. 오류 메시지는
LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex 2016.1.15) 23 FEB 2016 19:51
entering extended mode
restricted \write18 enabled.
<< 많은 줄이 생략되었습니다 >>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.43 }
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a fatal error: LaTeX will abort.
|...............................................
메뉴에서 xelatex를 선택했는데도 texmaker가 xelatex를 호출하지 않았을 거라고 생각했습니다 Tools->XeLatex
. 이제 터미널을 열고 다음을 입력했습니다.
$ xelatex myfile.tex
그리고 그것은 오류 없이 컴파일되어 나에게 PDF를 주었다.
그래서 net/SE를 검색하여 이전 버전의 texmaker에 사용되는 해결 방법을 찾았습니다. (pdfLaTeX 대신 Texmaker에서 XeLaTeX를 사용하세요.). 지침에 따라(texmaker 버전 4.4.1을 사용하고 있음에도 불구하고) User->UserCommands로 이동하여 다음과 같이 새 명령을 만들었습니다.
xelatex -synctex=1 -interaction=nonstopmode %.tex
이것은 또한 pdflatex를 호출하고 컴파일에 실패했습니다. 그래서 사용자 명령을 다음과 같이 수정했습니다.
notify-send sometext | xelatex -synctex=1 -interaction=nonstopmode %.tex
이로 인해 texmaker는 inform-send(화면에 팝업을 표시하는 프로그램)를 호출한 다음 xelatex를 호출하고 컴파일이 성공했습니다.
문제가 texmaker로 인해 발생한 것인지(터미널 xelatex가 작동하기 때문에) 또는 경로 문제로 인해 발생한 것인지 모르겠습니다(비데비안 texlive 패키지를 설치하고 xelatex로 인해 texlive가 xelatex를 올바르게 호출하기 전에 더미 명령을 추가했기 때문에).
이 게시물을 확인해 보니 동일한 문제가 없는 것 같습니다.
XeLaTex 및 TexMaker "cannot-use-pdftex"