> 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/more-topics/09-commands-and-environments.md).

# 명령과 환경

## 명령

LaTeX 문서의 동작은 특정 명령을 사용하여 제어할 수 있습니다. 일반적인 명령 구조는 다음과 같습니다:

```
\commandname[선택 인자]{주 인자}
```

참고로, 모든 명령은 **반드시** 백슬래시 기호가 앞에 와야 하며 주 인자는 {..} 쌍 안에 포함되어야 합니다.

일부 명령은 인자가 두 개 이상 있습니다. 예:

```
\multicolumn{합쳐진 열의 수}{정렬}{내용}
```

일부 명령은 제대로 동작하는 데 {} 쌍이 필요하지 않습니다. 예:

```
\item 텍스트는 항목 내용입니다
```

일부 명령은 선택 인자를 가집니다. 예:

```
\item[--] 텍스트는 항목 내용입니다
\\[2ex]
```

## 환경

명령의 특별한 유형은 환경입니다. 일반적인 환경 구조는 다음과 같습니다:

```
\begin{environmentname}
 내용
\end{environmentname}
```

예를 들면:

```latex
\begin{center}
예시 텍스트
\end{center}
```

또는

```latex
\begin{enumerate}
\item 첫 번째 항목
\item 두 번째 항목
\end{enumerate}
```

참고로, 모든 환경은 **반드시** \begin{environmentname}로 시작하고 \end{environmentname}로 끝납니다.

일부 환경은 명령처럼 인자와 선택 인자를 받습니다. 예:

```latex
\begin{tabular}[표 위치]{열 사양}
 표 내용
\end{tabular}
```


---

# 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/more-topics/09-commands-and-environments.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.
