> 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/22-misplaced-noalign.md).

# 잘못된 위치의 \noalign

이 오류는 다음을 사용했을 때 나타납니다 **`\hline`** 잘못되었습니다.

## 흔한 원인

**표 밖에서 \hline 사용하기:**

다음 **`\hline`** 명령은 오직 환경 안에서만 사용할 수 있습니다 **`tabular`** 환경에서만 사용할 수 있습니다. 문서의 제목 페이지나 페이지 머리말처럼 다른 곳에 가로선을 넣는 데에는 사용할 수 없습니다. 이 실수의 예는 다음과 같습니다:

```latex
% 프리앰블에서
\title{열의 일반 분자 이론에 대하여}
\author{A. Einstein}

% 문서 본문에서
\maketitle

\hline
```

이렇게 하면 아래에 표시된 오류가 발생합니다

main.tex, 5행

잘못 배치된 \noalign.

\hline ->\noalign {\ifnum 0=\`}\fi \hrule \\@height \arrayrulewidth \futurelet... l.10 \hline 정렬의 \cr 뒤에서만 \noalign이 나와야 합니다. 계속 진행하면 이 경우는 무시하겠습니다.

tabular 환경 밖에 가로선을 넣고 싶다면, 다음을 사용해야 합니다 **`\hrule`**.

**표 안에서 \hline을 잘못 사용하기:**

다음을 사용할 때: **`\hline`** 표에서는 첫 번째를 제외한 모든 경우 앞에 다음이 와야 합니다 **`\\`**. 이 오류의 예는 아래에 나와 있습니다

```latex
\begin{tabular}{|l|l|} \hline
    First Name: & 알베르트 \\ \hline
    두 번째 이름: & 아인슈타인 \hline
\end{tabular}
```

첫 번째 **`\hline`** 여기서의 명령은 괜찮습니다. 왜냐하면 첫 번째 **`\hline`** 표 안에서는 앞에 다음이 올 필요가 없습니다 **`\\`**. 문제는 우리의 마지막 **`\hline`** 앞에 다음이 와야 하는 **`\\`**. 이 표를 올바르게 쓰는 방법은 다음과 같습니다:

```latex
\begin{tabular}{|l|l|} \hline
    First Name: & 알베르트 \\ \hline
    두 번째 이름: & 아인슈타인 \\ \hline
\end{tabular}
```

![Table.PNG](/files/8932a0e01576c153897face0654072fe1e3ef48a)


---

# 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/22-misplaced-noalign.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.
