> 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/knowledge-base/122-preamble-organization.md).

# 서문 구성

## 소개

## 일반적인 아이디어

기본 아이디어는 프리앰블을 세분화된 방식으로 구성하는 것입니다: 가장 일반적인 패키지와 설정부터 시작해, 필요한 패키지와 설정을 더 프로젝트 특화된 것들로 이어서 배치하고, 마지막에 사용자 매크로로 끝냅니다. 여기에는 세 가지 주요 이유가 있습니다:

1. 이는 의존성에 잘 맞습니다. 일반적으로 사용자 매크로는 불러온 패키지에 의존합니다. 수학 및 기타 패키지는 불러온 글꼴에 의존할 수 있습니다.
2. 가장 자주 바뀌는 것들은 마지막에, 문서 본문에 가장 가깝게 둡니다.
3. 이렇게 하면 프리앰블을 잘 정리해 둘 수 있고, 필요한 것을 쉽게 찾고 수정할 수 있습니다.

아쉽게도, 로딩 순서가 중요한 패키지들이 있어 이에 대한 예외가 있습니다. 목록은 [#패키지 로딩 순서 예외](#package-loading-order-exceptions) 를 참고하세요.

## 몇 가지 예

## 프리앰블을 별도의 파일에 넣기

프리앰블을 별도의 파일에 넣을 수 있습니다. 기본적인 방법은 세 가지입니다:

* 프리앰블을 표준적인 방식으로 옮기고 `.tex` 그리고 `\input{...}`.
* 모든 것을 사용자 패키지에 넣고 `\usepackage{...}`.
* 모든 것을 사용자 클래스에 넣고 `\documentclass{...}`.

어느 쪽이든, 항상 유지하는 것이 바람직합니다 `\documentclass{...}` 를 메인 파일에 두고, 메인 파일을 프로젝트의 최상위 폴더에 두는 것이 좋습니다.

## 패키지 로딩 순서 예외

일부 패키지에서는 로딩 순서가 중요하므로, 앞서 제시한 일반적인 아이디어를 따를 수 없습니다.


---

# 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/knowledge-base/122-preamble-organization.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.
