> 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/class-files/01-understanding-packages-and-class-files.md).

# 패키지와 클래스 파일 이해하기

LaTeX 문서의 기본 서식은 **클래스** 에 의해 결정됩니다. 이 기본 모양은 변경할 수 있으며, 더 많은 기능은 **패키지**. 클래스 파일 이름에는 **.cls** 확장자가 있으며, 패키지 파일 이름에는 **.sty** 확장자가 있습니다.

## 클래스와 패키지의 차이

패키지나 클래스를 작성할지 결정할 때는 때때로 선택하기가 어렵습니다. 기본 규칙은, 파일에 특별한 유형의 문서의 논리적 구조의 모양을 제어하는 명령이 포함되어 있다면 그것은 클래스라는 것입니다. 그렇지 않고 파일이 문서 유형과 무관한 기능, 즉 책, 보고서, 기사 등에서 사용할 수 있는 기능을 추가한다면 그것은 패키지입니다.

예를 들어, 한 회사가 특별한 글꼴을 사용하고 바닥글에 회사 로고가 들어간 브랜드 보고서를 필요로 한다면, 새 클래스가 필요합니다.

회사가 문서 내에서 중요한 문장을 더 쉽게 강조 표시할 수 있게 해주는 새로운 명령이 필요하다면, 이 경우에는 새 패키지가 적합합니다.

## 추가 읽을거리

자세한 내용은 다음을 참조하세요

* [자신만의 패키지 작성하기](/latex/ko/class-files/03-writing-your-own-package.md)
* [자신만의 클래스 작성하기](/latex/ko/class-files/04-writing-your-own-class.md)
* [클래스 및 패키지 작성자를 위한 LaTeX2ε](http://www.latex-project.org/guides/clsguide.pdf)


---

# 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/class-files/01-understanding-packages-and-class-files.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.
