> 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/18-latex-error-there-s-no-line-here-to-end.md).

# LaTeX 오류: 여기에는 끝낼 줄이 없습니다

다음과 같은 줄바꿈 명령을 사용하면 **`\\`** 또는 **`\newline`** LaTeX가 이를 예상하지 않는 시점에 사용하면 아래에 표시된 오류가 발생합니다:

main.tex, 12행

LaTeX 오류: 여기에는 끝낼 줄이 없습니다..

LaTeX 설명서나 LaTeX Companion에서 설명을 참조하세요. 즉시 도움말은 H를 입력하세요. ... l.8 \\\ 해당 명령은 무시되었습니다. 다른 명령으로 바꾸려면 I를 입력하고, 그렇지 않으면 그대로 계속하십시오.

## 흔한 원인

**적절하지 않은 상황에서 줄바꿈 \\\을 사용하는 경우:**

이 오류의 흔한 원인 중 하나는 다음과 같은 줄바꿈 명령을 **`\\`** 또는 **`\newline`** 부적절하게 사용하는 경우입니다. LaTeX가 문단을 만드는 중이 아닐 때 줄바꿈 명령을 만나면 오류를 발생시킵니다. 이 실수의 예는 아래와 같습니다:

```latex
\\ 줄바꿈을 잘못된 위치에 넣었습니다
```

위 예에서는 텍스트 앞에 아무것도 없는 상태에서 줄바꿈이 삽입되었습니다. LaTeX는 존재하지 않는 줄을 끊을 수 없기 때문에 무엇을 해야 할지 알 수 없어 오류를 반환합니다.

**목록 환경 뒤에 줄바꿈을 넣는 경우:**

아래와 같이 목록 환경 뒤에 줄바꿈을 넣으려고 하면 이 오류가 나타날 수도 있습니다

```latex
\begin{itemize}
    \item 이것은 목록 항목입니다
    \item 이것은 또 다른 목록 항목입니다
\end{itemize}\newline
```

LaTeX는 이 목록을 문단으로 보지 않고, 별도의 객체 묶음으로 보기 때문에 줄바꿈할 줄을 찾지 못합니다. 모든 목록 아래에 더 많은 여백을 두고 싶다면, 다음을 다시 정의하는 것이 가장 좋습니다 **`itemize`** 프리앰블이나 클래스 파일에서. 하지만 일회성으로는 다음과 같이 작성하여 이 오류를 피할 수 있습니다 **`\leavevmode`** 아래와 같이 줄바꿈 명령 앞에 넣으십시오:

```latex
\begin{itemize}
    \item 이것은 목록 항목입니다
    \item 이것은 또 다른 목록 항목입니다
\end{itemize}\leavevmode\newline
```

**목록 항목 레이블을 별도의 줄에 쓰려는 경우:**

이 오류가 발생하는 또 다른 흔한 이유는 다음을 사용해 레이블이 있는 목록을 작성하려고 할 때입니다 **`description`** 환경에서 레이블을 별도의 줄에 두고 싶기 때문입니다. 여기서 실수가 어떻게 발생하는지의 예는 아래와 같습니다:

```latex
\begin{description}
\item[이것은 우리의 레이블입니다] \\
     이 텍스트가 별도의 줄에 있기를 원합니다.
\end{description}
```

LaTeX가 레이블 항목을 다음의 인수로 보기 때문에 이는 오류를 발생시킵니다 **`\item`** 명령의 인수로 보지, 텍스트 문단의 일부로 보지 않기 때문입니다. 목록의 레이블을 항목과 분리된 줄에 두고 싶다면, 다음을 다시 정의해야 합니다 **`description`** 환경. 이를 하는 가장 쉬운 방법은 다음을 사용하는 것입니다 **`enumitem`** 패키지와, 다음을 포함하는 것입니다 **`\setlist[description]{style=nextline}`** 아래와 같이 프리앰블에 넣으십시오:

```latex
% 프리앰블에

\usepackage{enumitem}
\setlist[description]{style=nextline}

% 문서의 본문에서

\begin{description}
\item[이것은 우리의 레이블입니다]
     이 텍스트가 별도의 줄에 있기를 원합니다.
\end{description}
```

![Enumitem.PNG](/files/116f4e085ad876c74919eb21196bd80f33ae3a6b)

모든 레이블이 목록 항목과 분리된 줄에 나타나게 하여 원하는 결과를 얻을 수 있습니다.

하나의 레이블만 별도의 줄에 두고 싶다면, 다음을 사용하여 그렇게 할 수 있습니다 **`\leavevmode`** 명령은 아래와 같습니다:

```latex
\begin{description}
\item[이것은 레이블입니다] \leavevmode \\
     이 텍스트는 별도의 줄에 표시됩니다
\item[이것은 또 다른 레이블입니다] 이 텍스트는 레이블과 같은 줄에 있습니다.
\end{description}
```

![Leavevmode.PNG](/files/28b1a8c446243503994b54d0e31c796748738239)

이는 LaTeX가 세로 모드에서 줄을 건너뛰려고 할 때 이러한 오류를 만나기 때문입니다.  **`\leavevmode`** 명령은 컴파일러가 일시적으로 세로 모드를 벗어나게 하므로 오류를 피할 수 있습니다.

**center, flushleft 또는 flushright 환경을 사용할 때 공백을 만드는 경우:**

이 오류가 나타나는 또 다른 원인은 다음과 같이 작성하여 여러 줄바꿈을 넣으려 했을 때입니다

* **`\\\\`**
* **`\\\\newline`**
* **`\newline\newline`**
* 등.

다음 환경에 있는 동안 **`center`**, **`flushleft`** 또는 **`flushright`** 아래와 같은 환경에서

```latex
\begin{center}
  이 줄과 \\\\ 사이에 한 줄의 간격이 있기를 원합니다
  그리고 이 줄
\end{center}
```

이는 LaTeX에서 허용되지 않으며 오류를 발생시킵니다. 여기서 여러 줄바꿈을 포함하는 올바른 방법은 다음과 같이 쓰는 것입니다 **`\\[length]`** 여기서 **`길이`** 는 줄 사이에 두고 싶은 간격입니다. 예는 아래와 같습니다:

```latex
\begin{center}
  이 줄과 \\[2\baselineskip] 사이에 한 줄 간격이 있기를 원합니다
  그리고 이 줄
\end{center}
```

![Centerskip.PNG](/files/b01e3389c6b4d6dd0cee4892addd5b00a89cef1b)

여기서 **`\\[2\baselineskip]`** 명령은 latex가 해당 지점에서 두 줄을 건너뛰도록 지시합니다. 다음에 입력할 수 있는 거리의 다양한 측정 옵션은 **`길이`** 옵션에 나열되어 있습니다 [여기](/latex/ko/formatting/01-lengths-in-latex.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/18-latex-error-there-s-no-line-here-to-end.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.
