> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/field-specific/09-typesetting-exams-in-latex.md).

# LaTeX로 시험지 조판하기

## 소개

LaTeX 클래스 `exam.cls` 시험지를 만들고 문제를 조판하는 일을 간단하게 해 줍니다. 모든 용지 크기에서 1인치 여백을 설정하고, 점수를 작성하고 계산하기 위한 특수 명령을 제공합니다. 사용하려면 `exam` 클래스를 사용하려면 다음 줄을 넣어야 합니다

```latex
\documentclass{exam}
```

당신의 `.tex` 파일 맨 앞에 넣어야 합니다. 그러면 패키지의 시험 관련 명령이 활성화되고, 교정을 위한 여백이 있도록 페이지 형식이 설정됩니다.

## 기본 예제

먼저 `exam` 클래스의 기본 동작 예제를 살펴봅시다.

```latex
\documentclass{exam}

\begin{document}

\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
제공된 공간에 답안을 작성하세요. 공간이
부족하면 답안을 뒤 페이지에 계속 작성하세요.}}}
\end{center}

\vspace{5mm}
이름 및 반:\enspace\hrulefill

\vspace{5mm}
강사 이름:\enspace\hrulefill

\begin{questions}
x^n + y^n = z^n이 x, y, z와 n이
양의 정수인가요? 설명하세요.

함수의 모든 비자명한 영점들의 실수부가
\(\frac{1}{2}\)임을 증명하시오

다음을 계산하시오 \[\int_{0}^{\infty} \frac{\sin(x)}{x}\]
\end{questions}
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Basic+exam+class+example\&snip=%5Cdocumentclass%7Bexam%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Bcenter%7D%0A%5Cfbox%7B%5Cfbox%7B%5Cparbox%7B5.5in%7D%7B%5Ccentering%0AAnswer+the+questions+in+the+spaces+provided.+If+you+run+out+of+room%0Afor+an+answer%2C+continue+on+the+back+of+the+page.%7D%7D%7D%0A%5Cend%7Bcenter%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BName+and+section%3A%5Censpace%5Chrulefill%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BInstructor%E2%80%99s+name%3A%5Censpace%5Chrulefill%7D%0A%0A%5Cbegin%7Bquestions%7D%0A%5Cquestion+Is+it+true+that+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+if+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+are%0Apositive+integers%3F.+Explain.%0A%0A%5Cquestion+Prove+that+the+real+part+of+all+non-trivial+zeros+of+the+function%0A%5C%28%5Czeta%28z%29%5C%29+is+%5C%28%5Cfrac%7B1%7D%7B2%7D%5C%29%0A%0A%5Cquestion+Compute+%5C%5B%5Cint_%7B0%7D%5E%7B%5Cinfty%7D+%5Cfrac%7B%5Csin%28x%29%7D%7Bx%7D%5C%5D%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

![ExamEx1OLV2b.png](/files/3cb69c8d744bb2496210c5e24f6ad1d022f9f324)

의 문법은 `questions` 환경의 문법은 매우 비슷합니다. `itemize` 및 `enumerate` 환경과 매우 비슷합니다. 각 문제는 명령어를 넣어 작성합니다 `\question` 앞에 넣습니다.

이 예제의 다른 명령들은 `exam` 이 클래스에만 해당하는 것은 아니지만, 시험지를 위한 빠른 머리말을 만드는 데 유용할 수 있습니다.

## 새 문제 만들기

이전 섹션에서는 문제를 만드는 방법을 보여 주는 기본 예제를 제시했습니다. 문제는 더 세부적으로 설정할 수 있으며, 이 섹션에서는 그 방법을 설명합니다.

### 간격

학생들이 제공된 공간에 시험 답안을 작성해야 한다면, 그 공간은 수동으로 지정하거나 균등하게 배분할 수 있습니다. 아래 예를 보세요:

```latex
\begin{questions}

x^n + y^n = z^n이 x, y, z와 n이 양의 정수라면 참인가요? 설명하세요.
\vspace{\stretch{1}}

함수 \(\zeta(z)\)의 모든 비자명한 영점들의 실수부가 \(\frac{1}{2}\)임을 증명하시오
\vspace{\stretch{1}}

다음을 계산하시오 \[\int_{0}^{\infty} \frac{\sin(x)}{x}\]
\vspace{\stretch{1}}

\end{questions}
\clearpage
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=Providing+space+for+exam+questions\&snip=%5Cdocumentclass%7Bexam%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Bcenter%7D%0A%5Cfbox%7B%5Cfbox%7B%5Cparbox%7B5.5in%7D%7B%5Ccentering%0AAnswer+the+questions+in+the+spaces+provided.+If+you+run+out+of+room%0Afor+an+answer%2C+continue+on+the+back+of+the+page.%7D%7D%7D%0A%5Cend%7Bcenter%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BName+and+section%3A%5Censpace%5Chrulefill%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BInstructor%E2%80%99s+name%3A%5Censpace%5Chrulefill%7D%0A%5Cbegin%7Bquestions%7D%0A%0A%5Cquestion+Is+it+true+that+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+if+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+are+positive+integers%3F.+Explain.%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cquestion+Prove+that+the+real+part+of+all+non-trivial+zeros+of+the+function+%5C%28%5Czeta%28z%29%5C%29+is+%5C%28%5Cfrac%7B1%7D%7B2%7D%5C%29%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cquestion+Compute+%5C%5B%5Cint_%7B0%7D%5E%7B%5Cinfty%7D+%5Cfrac%7B%5Csin%28x%29%7D%7Bx%7D%5C%5D%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cend%7Bquestions%7D%0A%5Cclearpage%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamEx2OLV2.png](/files/9e8848e139d9f20554ec9348b4ec41c6c83385c3)

이 예제에서는 명령 `\vspace{\stretch{1}}` 을 각 문제 뒤에 넣으면 사용 가능한 공간이 균등하게 분배됩니다.

명령 `\clearpage` 문제를 다음 페이지에 계속 입력할 수 있도록 페이지 나눔 지점을 삽입합니다.

각 문제에 공간을 수동으로 할당하려면 명령 `\vspace{}` 를 사용하고, 중괄호 안에 필요한 공간의 단위를 적습니다. 예를 들어, `\vspace{1in}` 는 1인치 세로 공간을 삽입합니다. 다음 문서를 확인하세요: [LaTeX의 길이 단위](/latex/ko/formatting/01-lengths-in-latex.md) 에서 사용 가능한 단위 목록을 확인할 수 있습니다.

### 하위 항목

문제에 여러 부분이 있고 일부 하위 주제에 초점이 맞춰져 있다면 다음 환경을 사용할 수 있습니다 `parts`, `subparts`, `subsubparts` 그리고 이에 대응하는 명령 `\part`, `\subpart` 및 `\subsubpart`. 다음 예를 보세요:

```latex
\begin{questions}
\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{\stretch{1}}

\(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{\stretch{1}}

어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?
\vspace{\stretch{1}}

\begin{subparts}
실제로 이 정리를 증명한 사람은 누구입니까?
\vspace{\stretch{1}}
이 문제를 푸는 데 실제로 얼마나 걸렸습니까?
\vspace{\stretch{1}}
\end{subparts}

\end{parts}

함수의 모든 비자명한 영점들의 실수부가
\(\frac{1}{2}\)임을 증명하시오
...

\end{questions}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=Multipart+exam+questions\&snip=%5Cdocumentclass%7Bexam%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Bcenter%7D%0A%5Cfbox%7B%5Cfbox%7B%5Cparbox%7B5.5in%7D%7B%5Ccentering%0AAnswer+the+questions+in+the+spaces+provided.+If+you+run+out+of+room%0Afor+an+answer%2C+continue+on+the+back+of+the+page.%7D%7D%7D%0A%5Cend%7Bcenter%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BName+and+section%3A%5Censpace%5Chrulefill%7D%0A%0A%5Cvspace%7B5mm%7D%0A%5Cmakebox%5B0.75%5Ctextwidth%5D%7BInstructor%E2%80%99s+name%3A%5Censpace%5Chrulefill%7D%0A%5Cbegin%7Bquestions%7D%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but%0Athere+was+not+enough+space+in+the+margin+to+write+it+down%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cbegin%7Bsubparts%7D%0A%5Csubpart+Who+actually+proved+the+theorem%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%5Csubpart+How+long+did+actually+take+to+solve+this+problem%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%5Cend%7Bsubparts%7D%0A%0A%5Cend%7Bparts%7D%0A%0A%5Cquestion+Prove+that+the+real+part+of+all+non-trivial+zeros+of+the+function+%0A%5C%28%5Czeta%28z%29%5C%29+is+%5C%28%5Cfrac%7B1%7D%7B2%7D%5C%29%0A...%0A%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamEx3OLV2.png](/files/4d98eafb1e2abbd280a0d87a7feaf6044268a3df)

환경들은 `parts` 및 `subparts` 문제처럼 중첩된 목록을 제공합니다. 문제에서처럼 세로 간격도 수동으로 설정할 수 있습니다.

## 객관식 문제

객관식 문제를 만들기 위한 네 가지 환경이 있습니다.

```latex
\begin{questions}
다음 유명한 물리학자들 중 누가 시간을 발명했습니까?

\begin{oneparchoices}
 \choice 스티븐 호킹
 \choice 알베르트 아인슈타인
 \choice 에미 뇌터
 \choice 이건 말이 안 됩니다
\end{oneparchoices}

다음 유명한 물리학자들 중 누가 브라운 운동에 관한 논문을 발표했습니까?

\begin{checkboxes}
 \choice 스티븐 호킹
 \choice 알베르트 아인슈타인
 \choice 에미 뇌터
 \choice 모르겠습니다
\end{checkboxes}
\end{questions}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=Multiple+choice+exam+example\&snip=%5Cdocumentclass%7Bexam%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bquestions%7D%0A%5Cquestion+Which+of+these+famous+physicists+invented+time%3F%0A%0A%5Cbegin%7Boneparchoices%7D%0A+%5Cchoice+Stephen+Hawking+%0A+%5Cchoice+Albert+Einstein%0A+%5Cchoice+Emmy+Noether%0A+%5Cchoice+This+makes+no+sense%0A%5Cend%7Boneparchoices%7D%0A++++%0A%5Cquestion+Which+of+these+famous+physicists+published+a+paper+on+Brownian+Motion%3F%0A%0A%5Cbegin%7Bcheckboxes%7D%0A+%5Cchoice+Stephen+Hawking+%0A+%5Cchoice+Albert+Einstein%0A+%5Cchoice+Emmy+Noether%0A+%5Cchoice+I+don%27t+know%0A%5Cend%7Bcheckboxes%7D%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamMulti.png](/files/c2467e6450a7aa74a5dc8583b3b2e9526e0080a8)

이 예제에서는 객관식 문제의 가능한 선택지를 나열하기 위해 서로 다른 두 환경을 사용합니다.

* 환경 `oneparchoices` 는 선택지에 대문자 라벨을 붙여 가로로 출력합니다. 선택지를 목록 형식으로 출력하려면 환경 `choices` 을 사용하면 됩니다.
* 환경 `checkboxes` 는 각 선택지 앞에 체크 상자를 출력합니다. 선택지를 가로로 출력해야 한다면 환경 `oneparcheckboxes` 를 대신 사용하세요.

## 채점

의 또 다른 중요한 기능은 `exam` 시험 채점을 더 쉽게 해 주는 명령을 제공한다는 점입니다.

### 각 문제의 배점

각 `\question` 또는 `\part` 에 매개변수를 추가하여 정답을 맞힐 경우 얻는 점수를 표시할 수 있습니다. 문제나 부분 뒤의 대괄호 안 추가 매개변수는 그 항목에 할당된 점수를 나타냅니다. 점수가 표시되는 모양과 위치는 바꿀 수 있으며, 다음을 보세요: [참조 가이드](#reference-guide) 추가 명령은

```latex
\begin{questions}
\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
\part[10] 어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{\stretch{1}}

\part[10] \(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{\stretch{1}}

\part[10] 어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?
\vspace{\stretch{1}}

\end{parts}

\question[20] 다음을 계산하시오 \[\int_{0}^{\infty} \frac{\sin(x)}{x}\]

\vspace{\stretch{1}}
\end{questions}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=Adding+points+to+exam+questions\&snip=%5Cdocumentclass%7Bexam%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bquestions%7D%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart%5B10%5D+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart%5B10%5D+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart%5B10%5D+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but+there+was%0Anot+enough+space+in+the+margin+to+write+it+down%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cend%7Bparts%7D%0A%0A%5Cquestion%5B20%5D+Compute+%5C%5B%5Cint_%7B0%7D%5E%7B%5Cinfty%7D+%5Cfrac%7B%5Csin%28x%29%7D%7Bx%7D%5C%5D%0A%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamEx4OLV2b.png](/files/fcb88f7b956bd2d31e13441833b06cbdeebfd9ce)

### 점수와 반점수 계산

문제의 일부에 반점을 포함하는 것이 편리할 때가 있습니다. 이렇게 하고 전체 문제의 값을 표시할 수 있습니다. 아래 예를 보세요:

```latex
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
\part[5] 어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{\stretch{1}}

\part[2 \half] \(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{\stretch{1}}

\part[2 \half] 어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?
\vspace{\stretch{1}}

\end{parts}

\droptotalpoints

\question[20] 다음을 계산하시오 \[\int_{0}^{\infty} \frac{\sin(x)}{x}\]
\end{questions}
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=exam+package+counting+points+and+half+points\&snip=%5Cdocumentclass%5Baddpoints%5D%7Bexam%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bquestions%7D%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart%5B5%5D+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but+there+was%0Anot+enough+space+in+the+margin+to+write+it+down%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cend%7Bparts%7D%0A%0A%5Cdroptotalpoints%0A%0A%5Cquestion%5B20%5D+Compute+%5C%5B%5Cint_%7B0%7D%5E%7B%5Cinfty%7D+%5Cfrac%7B%5Csin%28x%29%7D%7Bx%7D%5C%5D%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamCountPointsOLV2.png](/files/624c1508ca357ec058536340ba6caf07b7525736)

명령 `\half` 는 문제에 반점을 추가합니다. 명령 `\droptotalpoints` 는 마지막 문제의 총점을 출력합니다. 이 명령이 작동하려면 옵션 `[addpoints]` 을 문서 클래스 선언에 추가해야 합니다.

### 보너스 점수

보너스 문제를 추가할 수 있으며, 이 추가 점수는 나중에 [채점 표](#grading-table). 보너스 문제와 부분을 추가하는 것은 일반 문제와 부분을 만드는 것만큼 간단합니다.

```latex
\begin{questions}

\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
\part[5] 어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{\stretch{1}}

\part[2 \half] \(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{\stretch{1}}

\bonuspart[2 \half] 어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?
\vspace{\stretch{1}}

\end{parts}

\droptotalpoints

\question[20] 다음을 계산하시오 \[\int_{0}^{\infty} \frac{\sin(x)}{x}\]

\vspace{\stretch{1}}

\bonusquestion[30] 함수의 모든 비자명한 영점들의 실수부가
\(\frac{1}{2}\)임을 증명하시오
\vspace{\stretch{1}}

\end{questions}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=\&snip_name=exam+package+and+bonus+points\&snip=%5Cdocumentclass%5Baddpoints%5D%7Bexam%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bquestions%7D%0A%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart%5B5%5D+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cbonuspart%5B2+%5Chalf%5D+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but+there+was%0Anot+enough+space+in+the+margin+to+write+it+down%3F%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cend%7Bparts%7D%0A%0A%5Cdroptotalpoints%0A%0A%5Cquestion%5B20%5D+Compute+%5C%5B%5Cint_%7B0%7D%5E%7B%5Cinfty%7D+%5Cfrac%7B%5Csin%28x%29%7D%7Bx%7D%5C%5D%0A%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cbonusquestion%5B30%5D+Prove+that+the+real+part+of+all+non-trivial+zeros+of+the+function+%0A%5C%28%5Czeta%28z%29%5C%29+is+%5C%28%5Cfrac%7B1%7D%7B2%7D%5C%29%0A%5Cvspace%7B%5Cstretch%7B1%7D%7D%0A%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

이 코드의 출력은 아래 이미지에 표시됩니다. 링크를 열면 LaTeX 문서의 프리앰블이 자동으로 추가됩니다:

![ExamEx6OLV2file.png](/files/ac7de8dbef4006e203fbf43989c8ae635c3a74d9)

명령어 `\bonusquestion` 및 `\bonuspart` 출력 `(보너스)` 를 문제의 점수 값 옆에 표시합니다.

### 채점 표

각 문제의 점수를 보여 주는 표는 특별한 명령으로 출력할 수 있습니다.

```latex
\begin{center}
\combinedgradetable[h][questions]
\end{center}
```

![ExamEx7.png](/files/9d87c521e9e957308163e9495b570e60dedd77b6)

채점 표를 출력하는 명령은 세 가지가 있습니다:

**\gradetable**

일반 문제에 해당하는 점수를 표로 출력합니다. 보너스 문제가 있어도 포함되지 않습니다.

**\bonusgradetable**

보너스 문제에 해당하는 점수만 표로 출력합니다

**\combinedgradetable**

일반 문제와 보너스 문제를 모두 포함한 표를 출력합니다.

이 명령들은 대괄호 안의 두 개의 추가 매개변수를 받습니다.

* 첫 번째는 `[h]` 가로 표를 위한 것이거나 `[v]` 세로 표를 위한 것입니다.
* 두 번째는 표를 어떤 기준으로 인덱싱할지 정합니다: `[questions]` 문제별로 점수를 인덱싱하고 `[pages]` 페이지 번호별로 점수를 나열합니다.

## Overleaf 시험 프로젝트 예제

위의 예제들을 합쳐 작업의 시작점으로 사용할 수 있는 기본 프로젝트 템플릿을 만들었습니다. 다음 링크를 클릭/선택하여 새 프로젝트를 만들 수 있습니다: [Overleaf `exam` 프로젝트 예제 열기](https://www.overleaf.com/project/new/template/20093?id=68314645\&templateName=Example+project+using+the+exam+class\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=) .

### 다른 언어

에서 영어 이외의 언어는 지원되지 않습니다. `exam` 그럼에도 불구하고, 기본 용어를 여러분의 로컬 언어로 번역하는 것은 쉽습니다. 위 프로젝트에는 일부 문서 요소를 스페인어로 번역하는 방법을 보여 주는 주석 처리된 코드 조각이 포함되어 있습니다.

```latex
\usepackage[spanish]{babel}

\pointpoints{점}{점}
\bonuspointpoints{보너스 점}{보너스 점}

\totalformat{문제 \thequestion: \totalpoints 점}

\chqword{문제}
\chpgword{페이지}
\chpword{점수}
\chbpword{보너스 점수}
\chsword{획득 점수}
\chtword{총점}

...
```

![ExamEx8.png](/files/a84191082e0980a17459afa7bdf2458cc50fec82)

문서의 나머지 부분은 이전 예제들에서 보인 것과 정확히 같습니다. 여기서 입력한 명령은 기본 용어를 `exam` 클래스의 기본 동작 예제를 살펴봅시다.

**\pointpoints{점}{점}**

일반 문제와 부분에서 point와 points를 punto와 puntos로 바꿉니다.

**\bonuspointpoints{보너스 점}{보너스 점}**

보너스 문제와 보너스 부분에서 bonus point와 bonus points 대신 punto extra와 puntos extras를 씁니다.

**\totalformat{문제 \thequestion: \totalpoints 점}**

\droptotalpoints가 출력하는 텍스트를 바꿉니다. 이 예제에서는 Pregunta 1: 7 1/2 puntos를 출력합니다.

**\chqword{문제}**

채점 표에서 Question을 Pregunta로 바꿉니다. 나머지 명령은 그 표의 다른 용어를 바꾸는데, chpgword는 Page, \chpword는 Points, \chbpword는 Bonus points, \chsword는 Score, \chtword는 Total을 의미합니다. 이러한 명령은 만들고 있는 표의 종류에 따라 달라질 수 있으므로, 다른 표에 필요한 명령은 참조 가이드를 보세요.

## 참조 가이드

### 문제의 점수 표시를 배치하고 서식 지정하기

이 명령들은 프리앰블에 입력하여 문서 전체의 형식을 바꾸거나, 문제 바로 앞에 입력하여 해당 문제부터 다음 서식 명령 또는 문서 끝까지의 형식을 바꿀 수 있습니다.

* `\poinstinmargin` (또는 `\pointsinleftmargin`)는 점수 값을 왼쪽 여백에 출력합니다.
* `\pointsinrightmargin` 는 점수 값을 오른쪽 여백에 출력합니다.
* `\nopointsinmargin` (또는 `\nopointsinrightmargin`)는 기본 설정으로 되돌립니다.
* `\bracketedpoints` 는 점수 값 주변에 괄호 대신 대괄호를 사용합니다.
* `\boxedpoints` 는 점수 값 주위에 상자를 그립니다.

다음은 `\pointsinmargin을 사용하는 예입니다` 및 `\pointsinrightmargin`:

```latex
여기서는 \verb|\pointsinmargin|을 사용합니다
\begin{questions}
\pointsinmargin을 사용하는 예입니다
\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
\part[5] 어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{40pt}

\part[2 \half] \(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{40pt}

\part[2 \half] 어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?

\vspace{40pt}
\end{parts}

이제 \verb|\pointsinrightmargin|을 사용합니다

\pointsinrightmargin
\question Given the equation \(x^n + y^n = z^n\) for \(x,y,z\) and \(n\) positive
정수라고 가정하겠습니다.
\begin{parts}
\part[5] 어떤 \(n\) 값에서 이전 문제의 진술이 참입니까?
\vspace{40pt}

\part[2 \half] \(n=2\)일 때 특별한 이름이 붙은 정리가 있습니다. 그 이름은 무엇입니까?
\vspace{40pt}

\part[2 \half] 어떤 유명한 수학자가 이 정리에 대한 우아한 증명을 가지고 있었지만
여백에 적을 공간이 충분하지 않았습니까?
정수라고 가정하겠습니다.
\end{parts}
\end{questions}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=exam+class+with+point+in+margins\&snip=%5Cdocumentclass%5Baddpoints%5D%7Bexam%7D%0A%5Cusepackage%5Ba4paper%2C+total%3D%7B6in%2C+8in%7D%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AHere+we%27ll+use+%5Cverb%7C%5Cpointsinmargin%7C%0A%5Cbegin%7Bquestions%7D%0A%5Cpointsinmargin%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart%5B5%5D+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B40pt%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B40pt%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but+there+was%0Anot+enough+space+in+the+margin+to+write+it+down%3F%0A%0A%5Cvspace%7B40pt%7D%0A%5Cend%7Bparts%7D%0A%0ANow+we%27ll+use+%5Cverb%7C%5Cpointsinrightmargin%7C%0A%0A%5Cpointsinrightmargin%0A%5Cquestion+Given+the+equation+%5C%28x%5En+%2B+y%5En+%3D+z%5En%5C%29+for+%5C%28x%2Cy%2Cz%5C%29+and+%5C%28n%5C%29+positive%0Aintegers.+%0A%5Cbegin%7Bparts%7D%0A%5Cpart%5B5%5D+For+what+values+of+%5C%28n%5C%29+is+the+statement+in+the+previous+question+true%3F%0A%5Cvspace%7B40pt%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+For+%5C%28n%3D2%5C%29+there%27s+a+theorem+with+a+special+name.+What%27s+that+name%3F%0A%5Cvspace%7B40pt%7D%0A%0A%5Cpart%5B2+%5Chalf%5D+What+famous+mathematician+had+an+elegant+proof+for+this+theorem+but+there+was%0Anot+enough+space+in+the+margin+to+write+it+down%3F%0Aintegers.+%0A%5Cend%7Bparts%7D%0A%5Cend%7Bquestions%7D%0A%5Cend%7Bdocument%7D)

다음 이미지는 위 코드의 출력을 보여 줍니다:

![Examclassmargins.png](/files/074a2cf157709b7ab0e7e2b3751af24fc8f73d54)

### 채점 표의 기본 이름 변경하기

명령은 표에 표시되는 형식과 정보에 따라 달라집니다. **h** 및 **v** 는 각각 가로 또는 세로 방향을 뜻합니다. 명령 앞에 **b** 가 붙으면 보너스 표의 형식을 바꾸고, 명령 앞에 **c** 가 붙으면 결합 표에서 작동합니다. 예를 들어, 세로 방향의 보너스 표에서 "Score"를 "Points Awarded"로 바꾸려면 `\bvsword{부여된 점수}`.

아래에는 기본값을 사용하는 표가 표시됩니다.

|              | **가로**                                                                                                                                                                                        | **세로**                                                                                                                                                                                    |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **채점 표**     | <p><code>\hqword{문제:}</code><br><code>\hpgword{페이지:}</code><br><code>\hpword{점수:}</code><br><code>\hsword{점수:}</code><br><code>\htword{총점}</code></p>                                         | <p><code>\vqword{문제}</code><br><code>\vpgword{페이지}</code><br><code>\vpword{점수}</code><br><code>\vsword{점수}</code><br><code>\vtword{총점:}</code></p>                                        |
| **보너스 점수 표** | <p><code>\bhqword{문제:}</code><br><code>\bhpgword{페이지:}</code><br><code>\bhpword{보너스 점수:}</code><br><code>\bhsword{점수:}</code><br><code>\bhtword{총점}</code></p>                                | <p><code>\bvqword{문제}</code><br><code>\bvpgword{페이지}</code><br><code>\bvpword{보너스 점수}</code><br><code>\bvsword{점수}</code><br><code>\bvtword{총점:}</code></p>                               |
| **결합 표**     | <p><code>\chqword{문제:}</code><br><code>\chpgword{페이지:}</code><br><code>\chpword{점수:}</code><br><code>\chbpword{보너스 점수:}</code><br><code>\chsword{점수:}</code><br><code>\chtword{총점}</code></p> | <p><code>\cvqword{문제}</code><br><code>\cvpgword{페이지}</code><br><code>\cvpword{점수}</code><br><code>\cvbpword{보너스 점수}</code><br><code>\cvsword{점수}</code><br><code>\cvtword{총점:}</code></p> |

## 추가 읽을거리

자세한 내용은 다음을 참고하세요:

* [LaTeX에서 문서 만들기](/latex/ko/latex/01-learn-latex-in-30-minutes.md)
* [굵게, 기울임꼴 및 밑줄](/latex/ko/latex/03-bold-italics-and-underlining.md)
* [목록](/latex/ko/latex/04-lists.md)
* [수학 표현식](/latex/ko/mathematics/01-mathematical-expressions.md)
* [아래첨자와 위첨자](/latex/ko/mathematics/02-subscripts-and-superscripts.md)
* [대괄호와 소괄호](/latex/ko/mathematics/03-brackets-and-parentheses.md)
* [수식 정렬](/latex/ko/mathematics/06-aligning-equations-with-amsmath.md)
* [그리스 문자와 수학 기호 목록](/latex/ko/mathematics/11-list-of-greek-letters-and-math-symbols.md)
* [이미지 삽입](/latex/ko/more-topics/27-inserting-images.md)
* [이미지와 표 배치](/latex/ko/figures-and-tables/02-positioning-images-and-tables.md)
* [글꼴 크기, 패밀리 및 스타일](/latex/ko/fonts/01-font-sizes-families-and-styles.md)
* [글꼴 서체](/latex/ko/fonts/02-font-typefaces.md)
* [이 **exam** 클래스 문서](https://mirror.ox.ac.uk/sites/ctan.org/macros/latex/contrib/exam/examdoc.pdf).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/field-specific/09-typesetting-exams-in-latex.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
