> 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/latex-1/11-latex-error-mathrm-allowed-only-in-math-mode.md).

# LaTeX 오류: \mathrm은 수학 모드에서만 허용됩니다

이 오류는 수학 모드에서만 허용되는 글꼴을 텍스트 모드에서 사용할 때 나타납니다. 이러한 글꼴을 사용할 때는 다음과 같이 달러 기호 안에 포함하세요 `$...$`. 수학 글꼴에 대해 더 자세히 알아보려면, 저희의 [문서](/latex/ko/mathematics/12-mathematical-fonts.md). 해당 글꼴과 그에 해당하는 패키지 목록은 아래에 나와 있습니다

|                  |                                                                                                                                                                                                  |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| \mathnormal{...} | 이것은 수학 이탤릭 글꼴의 표준 이탤릭 글꼴입니다. `$\mathnormal{Hello world}$` 는 다음과 동일한 결과를 제공합니다 `$Hello world$`.                                                                                                   |
| \mathrm{...}     | 이것은 표준 텍스트 로만 글꼴입니다.                                                                                                                                                                             |
| \mathbf{...}     | 이것은 수학 모드에서 굵은 글자를 제공합니다.                                                                                                                                                                        |
| \mathcal{...}    | 이것은 수학 모드에서 사용하는 특수한 필기체 글꼴입니다. 대문자에만 사용할 수 있으며, 예를 들어 실수를 나타내는 데 사용할 수 있습니다. `\mathcal{R}` 는 ℝ를 제공합니다.                                                                                          |
| \mathsf{...}     | 이것은 수학 모드에서 산세리프 글자를 제공합니다.                                                                                                                                                                      |
| \mathit{...}     | 이것은 텍스트 이탤릭 글자를 제공합니다. 이는 사용된 특정 클래스에 따라 수학 이탤릭 글자와 다를 수 있습니다.                                                                                                                                   |
| \mathtt{...}     | 이것은 사용된 타자기체 글꼴의 직립 글자를 제공합니다.                                                                                                                                                                   |
| \mathbb{...}     | 이것은 대문자용 "칠판 굵은체" 글꼴을 제공합니다. 이 [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) 패키지 또는 동등하게 [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) 패키지를 불러와야 이 글꼴을 사용할 수 있습니다.     |
| \mathfrak{...}   | 이것은 대문자와 소문자 모두에 대해 고딕 글자를 제공합니다.  [**`amsfonts`**](https://www.ctan.org/pkg/amsfonts?lang=en) 패키지 또는 동등하게 [**`amssymb`**](https://www.ctan.org/pkg/amssymb?lang=en) 패키지를 불러와야 이 글꼴을 사용할 수 있습니다. |
| euscript         | 다음 [**`euscript`**](http://tug.ctan.org/fonts/amsfonts/doc/euscript.pdf) 패키지는 Euler script라고 하는 또 다른 필기체 알파벳을 제공합니다.                                                                             |

**위의 수학 글꼴에 해당하는 텍스트 모드 대응:**

| 수학 모드 글꼴         | 텍스트 대응            |
| ---------------- | ----------------- |
| \mathnormal{...} | \textit{...}.     |
| \mathrm{...}     | \text{...}        |
| \mathbf{...}     | \textbf{...}.     |
| \mathcal{...}    | 텍스트 모드 대응 글꼴이 없음. |
| \mathsf{...}     | \textsf{...}.     |


---

# 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/latex-1/11-latex-error-mathrm-allowed-only-in-math-mode.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.
