
OSX 10.15.6(Catlina)에서 Latex 3.14를 실행하고 있습니다.
✗ latex --version
pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020)
kpathsea version 6.3.2
Copyright 2020 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.02
다음은 클래스를 사용하는 라텍스 문서의 MWE입니다 exam
.
\documentclass{article}
\usepackage{exam}
\renewcommand{\choicelabel}{(\thechoice)}
\begin{document}
\begin{questions}
\question
This is question 1
\begin{choice}
\choice green
\choice blue
\choice yellow
\choice orange
\end{choice}
\\
\question
This is question 2
\begin{choice}
\choice 6
\choice 7
\choice 8
\choice 9
\end{choice}
\\
\end{questions}
\end{document}
먼저 이 패키지가 내 시스템에 설치되어 있는지 확인했습니다.
✗ sudo tlmgr install exam
Password:
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
tlmgr install: package already present: exam
위 파일에 대해 찾을 수 없다는 pdflatex
오류가 발생했습니다 exam.sty
.
✗ pdflatex easy_questions.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./easy_questions.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
! LaTeX Error: File `exam.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
이는 패키지가 설치되지 않았음을 의미합니까? 나는 exam.sty
에서 다운로드했다https://stuff.mit.edu/afs/athena/contrib/tex-contrib/Macros/exam.sty내 라텍스 소스와 동일한 디렉토리에 복사했습니다. 이제 찾을 수 없다는 또 다른 오류가 발생합니다 art11.sty
.
✗ pdflatex easy_questions.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./easy_questions.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo)) (./exam.sty
! LaTeX Error: File `art11.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
이러한 오류를 어떻게 수정할 수 있나요? 나는 이 패키지를 설치하는 것이 매우 간단할 것이라고 생각했습니다.