> 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/questions-and-answers/05-can-i-run-plain-tex-on-overleaf.md).

# Overleaf에서 plain TeX를 실행할 수 있나요?

네—아래에 설명된 설정 절차를 따르면 프로젝트를 plain TeX로 컴파일하도록 구성할 수 있습니다.

1. Overleaf 편집기에서 다음을 클릭하세요: **메뉴** 버튼을 누르고 다음을 설정하세요: **컴파일러** 옵션을 `LaTeX`—다음에서 선택하세요 `LaTeX` 아래 비디오 클립에 표시된 것처럼 드롭다운 목록에서:

{% embed url="<https://www.filepicker.io/api/file/Iw9UYRbxRBy3Bk61YKqj>" %}

3. 프로젝트에 빈 파일을 추가하고 다음 이름으로 저장하세요: `latexmkrc`—파일 확장자가 없어야 합니다(프로젝트에 이미 다음이 있는 경우 이 단계를 추가할 필요가 없을 수 있습니다: `latexmkrc` 파일).
4. 다음 줄을 다음에 추가하세요: `latexmkrc` 파일:

```
$latex = 'tex %O %S';
```

#### 이 latexmkrc 파일은 실제로 무엇을 하나요?

자세히 들어가지는 않겠지만, Overleaf의 서버는 다음이라는 프로그램을 사용합니다: [`latexmk`](https://mg.readthedocs.io/latexmk.html) TeX/LaTeX 기반 조판을 실행하고 제어합니다. 이 `latexmk` 프로그램을 통해 Overleaf 사용자는 다음이라는 구성 파일을 추가하여 프로젝트의 조판 방식에 영향을 줄 수 있습니다. `latexmkrc`더 자세히 알아보고 싶은 독자는 다음에 대해 읽어볼 수 있습니다: `latexmkrc` 구성 파일에 대해 [그 `latexmk` 웹사이트](https://mg.readthedocs.io/latexmk.html#configuration-files).

#### 예시

이 `latexmk` 이 프로그램은 다음 언어로 작성되었습니다: [Perl 프로그래밍 언어](https://www.perl.org/) 이 언어는 해시 문자(#)를 주석 문자로 사용합니다(TeX/LaTeX가 일반적으로 % 문자를 사용하는 것과 비슷합니다). 다른 TeX 엔진을 사용하여 plain TeX를 실험해보고 싶다면 다음을 만들 수 있습니다: `latexmkrc` 파일을 만들고 다음 텍스트를 복사/붙여넣기하세요:

```
# $latex = 'tex %O %S'; # Knuth의 원래 TeX 엔진을 사용하려면
# $latex = 'pdftex %O %S'; # pdfTeX 엔진을 사용하려면
# $latex = 'luatex %O %S'; # LuaTeX 엔진을 사용하려면
# $latex = 'xetex %O %S';  # XeTeX 엔진을 사용하려면
```

특정 TeX 엔진을 사용하려면 원하는 TeX 엔진의 줄에서 주석 처리를 해제하세요(맨 앞의 '#' 문자를 삭제하세요). 예를 들어 XeTeX를 실행하려면 마지막 줄의 주석을 해제하여 다음과 같이 만듭니다: `latexmkrc` 파일은 다음과 같아집니다—마지막 줄은 '#' 문자로 시작하지 않으므로 XeTeX를 사용해 plain TeX 문서를 조판하기 위해 실행됩니다:

```
# $latex = 'tex %O %S'; # Knuth의 원래 TeX 엔진을 사용하려면
# $latex = 'pdftex %O %S'; # pdfTeX 엔진을 사용하려면
# $latex = 'luatex %O %S'; # LuaTeX 엔진을 사용하려면
$latex = 'xetex %O %S';  # XeTeX 엔진을 사용하려면
```

다음 짧은 비디오는 위의 `latexmkrc` 파일이 각 TeX 엔진을 순서대로 실행하도록 선택적으로 편집되는 모습을 보여줍니다—XeTeX부터 시작합니다. 이 예제에서 사용된 plain TeX 소스 코드는 다음에서 가져왔습니다: [D. R. Wilkins의 기사](https://www.ntg.nl/doc/wilkins/pllong.pdf).

{% embed url="<https://www.filepicker.io/api/file/9PVmkgTSSny7gjNliTdt>" %}

### 추가 읽을거리

Overleaf의 다음 사용 방식을 더 잘 이해하고 싶은 독자에게 도움이 될 수 있는 관련 도움말 항목이 두 개 있습니다: `latexmk` 및 `latexmkrc`:

* [Overleaf는 내 프로젝트를 어떻게 컴파일하나요?](/latex/ko/knowledge-base/064-how-does-overleaf-compile-my-project.md)
* [Overleaf에서 latexmkrc를 사용하는 방법: 예시와 기법](/latex/ko/in-depth-articles/28-how-to-use-latexmkrc-with-overleaf.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/questions-and-answers/05-can-i-run-plain-tex-on-overleaf.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.
