> 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/04-double-subscript.md).

# 이중 아래첨자

## 소개

관례적으로 LaTeX는 밑줄 문자(`_`)를 아래첨자로 조판하는 데 사용하며, 예를 들면 `$a_b$` 이는 $$a\_b$$. 만약 다음과 같이 쓰면 `$a_bcde$` 첫 번째 문자만, `b`가 아래첨자로 표시됩니다, $$a\_bcde$$, 왜냐하면 LaTeX는 *가정하지 않기 때문입니다* 문자 전체를 아래첨자로 만들고 싶다고 `bcde`. 여러 항목(토큰)을 아래첨자로 조판하려면, 이를 그룹으로 묶어 LaTeX에 알려야 합니다 `{...}`, 예를 들면: `$a_{bcde}$`, 이는 $$a\_{bcde}$$.

## 이중 아래첨자 오류

이중 아래첨자 오류는 LaTeX에 어떤 수학식 조각에 아래첨자를 추가하라고 요청했는데, 그 식이 *이미* 아래첨자가 붙어 있을 때 발생합니다. 이 오류는 일반적으로 중괄호를 사용하여 해결할 수 있습니다 `{...}` 수학 모드 안에서 이른바 *부분 수식*— 이는 조판하려는 수학 표현식의 한 조각을 가리키는 용어입니다.

예를 들어, `$a_b_c$` 다음과 같은 이중 아래첨자 오류가 발생합니다:

![Overleaf에 표시된 이중 아래첨자 오류](/files/f39f9c2467ee14f097432d0f4bda8bd2b3a82642)

이 특정 오류는 중괄호를 사용하여 여러 가지 방법으로 수정할 수 있습니다 `{...}`—중괄호를 어디에 두느냐에 따라 결과가 달라집니다:

* `$a_{b_c}$` 를 조판합니다 $$\displaystyle a\_{b\_c}$$
* `${a_b}_c$` 를 조판합니다 $${a\_b}\_c$$
* `$a_{bc}$` 를 조판합니다 $$a\_{bc}$$

### 이중 아래첨자 오류: 특수한 경우

\~에 대한 질문 `tex.stackexchange` 부각시킵니다 [놀라운 이중 아래첨자 오류 사례를](https://tex.stackexchange.com/questions/253080/why-am-i-getting-a-double-subscript-error), 그 원인과 이에 대한 해결책을 알아두면 좋을 만한 사례입니다. 여기서 그 예를 재현합니다.

다음 예제는 중괄호를 사용했음에도 컴파일에 실패합니다:

```latex
\documentclass{article}
\begin{document}
\({\vec a_b}_c\)
\end{document}
```

[이 ***오류를 발생시키는*** 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=accents+package+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%28%7B%5Cvec+a_b%7D_c%5C%29%0A%5Cend%7Bdocument%7D)

이 문제를 해결하는 한 가지 방법은 [`accents` 패키지](https://ctan.org/pkg/accents?lang=en) 를 문서 프리앰블에 추가하는 것입니다(제안된 대로 [여기](https://tex.stackexchange.com/a/253094)):

```latex
\documentclass{article}
\usepackage{accents}
\begin{document}
\({\vec a_b}_c\)
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=accents+package+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Baccents%7D%0A%5Cbegin%7Bdocument%7D%0A%5C%28%7B%5Cvec+a_b%7D_c%5C%29%0A%5Cend%7Bdocument%7D)

## 아래첨자에 대해 더 알아보기

추가적인 아래첨자 단계는 다음과 같은 LaTeX를 작성하여 조판할 수 있습니다 `$a_{b_{c_{d_e}}}$` 이는 $$a\_{b\_{c\_{d\_e}}}$$. 두 번째 수준(아래첨자의 아래첨자) 이하의 모든 아래첨자는 같은 글꼴 크기(포인트 단위)로 조판되는 반면, 첫 번째 수준의 아래첨자는 조금 더 큰 글꼴(포인트 크기)로 조판됩니다. 아래첨자에 대해 더 알아보려면 Overleaf의 [해당 주제 전용 도움말 페이지를 방문하세요](/latex/ko/mathematics/02-subscripts-and-superscripts.md).


---

# 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/04-double-subscript.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.
