
Ubuntu 14.04가 있고 설치 texlive-latex-base
되어 있습니다. texlive-latex-recommended
나는 이 문서를 편집하려고 합니다:
\documentclass[11pt,oneside]{ article }
\usepackage{fontspec}
\begin{document}
Hello world!
\end{document}
xelatex를 사용하여 다음을 입력합니다.
$ xelatex test.tex test.pdf
하지만 다음 오류가 발생합니다.
! LaTeX Error: File ` article .cls' not found.
article.cls
그러나 올바른 폴더에서 찾을 수 있으므로 /usr/share/texlive/texmf-dist/tex/latex/base/
무엇이 잘못되었는지 전혀 알 수 없습니다.
! LaTeX Error: Missing \begin{document}.
및 같은 몇 가지 오류가 더 발생 ! LaTeX Error: The font size command \normalsize is not defined: there is probably something wrong with the class file.
하지만 Hello world!가 포함된 PDF 파일을 생성합니다. 에 인쇄되었습니다.
Xelatex가 기사 클래스를 찾지 못하는 이유는 무엇입니까? 나는 이 포럼을 서핑했지만 어떤 해결책도 찾을 수 없었습니다.
건배!
답변1
음, 전후의 공백을 자르면 article
오류를 제거하고 성공적으로 컴파일할 수 있습니다. 그냥 교체하세요
\documentclass[11pt,oneside]{ article }
~와 함께
\documentclass[11pt,oneside]{article}