> 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/mathematics/10-display-style-in-math-mode.md).

# 수학 모드의 표시 스타일

## 소개

이 글은 조판된 수학식의 스타일을 수동으로 조정하는 방법을 설명하지만, 먼저 인라인 수학과 디스플레이 스타일 수학 사이의 눈에 보이는 차이를 간단히 짚고 넘어가겠습니다.

문단의 텍스트 안에 인라인(문장 내)으로 포함된 조판 수학은, 문단 텍스트 밖에서 독립적인 디스플레이 스타일 자료로 조판된 같은 수학식보다 더 적은 공간을 차지해야 합니다. 이를 실제로 보려면, 다음 방정식이 $$f(x) = \sum\_{i=0}^{n} \frac{a\_i}{1+x}$$ 는 값에 따라 발산하거나 수렴할 수 있습니다. $$x$$ 또한 다음과 같이 조판할 수도 있습니다. $$f(x)$$ 문단 밖에서 디스플레이 스타일로:

$$f(x) = \sum\_{i=0}^{n} \frac{a\_i}{1+x}$$

이전 예제를 대충만 훑어봐도 다음과 같은 수학 기호의 크기와 서식 변화가 드러납니다. $$\sum$$ 그리고 그 한계값의 배치, 더불어 위첨자, 아래첨자, 분수의 크기/위치 변화도 보입니다.

이러한 수학 타이포그래피 문제는 TeX 엔진에 내장된 조판 알고리즘과 수학 글꼴에 포함된 특정 간격 매개변수의 상호작용에서 비롯됩니다. 이러한 글꼴 매개변수는 사용 중인 수학 글꼴의 디자인 특성에 맞게 수학 조판을 세밀하게 조정하는 데 도움을 줍니다.

## 기본 수학 스타일 재정의

때때로 어떤 수학식을 조판할 때 사용하는 기본 스타일을 바꾸고 싶을 수 있습니다. 예를 들어, 다음과 같은 인라인 수학 $$f(x) = \frac{1}{1+x}$$를 문단에 포함하되 디스플레이 스타일로 조판하고 싶을 수 있습니다: $$\displaystyle f(x) = \frac{1}{1+x}$$다만 줄 간격에는 큰 영향을 미칩니다.

TeX 엔진은 수학식의 기본 조판 스타일을 바꾸는 데 사용할 수 있는 몇 가지 명령을 제공합니다:

* `\textstyle`: 문단 안에 조판된 수학에 사용되는 스타일을 적용
* `\displaystyle`: 독립된 줄에 조판된 수학에 사용되는 스타일을 적용
* `\scriptstyle`: 아래첨자나 위첨자에 사용되는 스타일을 적용
* `\scriptscriptstyle`: 2차 아래첨자나 위첨자에 사용되는 스타일을 적용

전형적인 예는 TeXBook 142쪽에서 가져온 것이지만, 우리는 다음을 대체했습니다 `$$` 를 LaTeX에서 선호하는 `\[` 및 `\]`:

```latex
\[
a_0+{1\over a_1+
      {1\over a_2+
        {1 \over a_3 +
           {1 \over a_4}}}}
\]
```

기본적으로 이것은 다음과 같이 조판됩니다:

$$a\_0+{1\over a\_1+{1\over a\_2 +{1 \over a\_3 + {1 \over a\_4}}}}$$

기본 조판 스타일은 다음을 사용하여 변경할 수 있습니다. `\displaystyle` 명령:

```latex
\[
a_0+{1\over\displaystyle a_1+
      {1\over\displaystyle a_2+
        {1 \over\displaystyle a_3 +
           {1 \over\displaystyle a_4}}}}
\]
```

이렇게 됩니다.

$$a\_0+{1\over\displaystyle a\_1+{1\over\displaystyle a\_2+{1 \over\displaystyle a\_3 +{1 \over\displaystyle a\_4}}}}$$

다음은 다음의 효과를 보여 주는 또 다른 예입니다. `\textstyle`, `\scriptstyle` 및 `\scriptscriptstyle`:

```latex
\[
\begin{align*}
f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\textstyle f(x) = \textstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptstyle f(x) = \scriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptscriptstyle f(x) = \scriptscriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x}
\end{align*}
\]
```

다음과 같이 나타납니다. $$\begin{align\*} f(x) = \sum\_{i=0}^{n} \frac{a\_i}{1+x} \ \textstyle f(x) = \textstyle \sum\_{i=0}^{n} \frac{a\_i}{1+x} \ \scriptstyle f(x) = \scriptstyle \sum\_{i=0}^{n} \frac{a\_i}{1+x} \ \scriptscriptstyle f(x) = \scriptscriptstyle \sum\_{i=0}^{n} \frac{a\_i}{1+x} \end{align\*}$$

Overleaf에서 열어 볼 수 있는 예제입니다:

```latex
\documentclass{article}
\usepackage{amsmath}
\title{수학 디스플레이 스타일 살펴보기}
\author{Overleaf 팀}
\begin{document}
\maketitle
\(x\)의 값에 따라 방정식 \( f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \)는 발산하거나 수렴할 수 있습니다.

\[ f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \]

\vspace{1cm}

인라인 수학 요소는 다른 스타일로 설정할 수 있습니다: \(f(x) = \displaystyle \frac{1}{1+x}\). 디스플레이 수학 자료도 마찬가지입니다:

\begin{align*}
f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\textstyle f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptstyle f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptscriptstyle f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x}
\end{align*}
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Exploring+math+display+styles\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Ctitle%7BExploring+math+display+styles%7D%0A%5Cauthor%7BOverleaf+team%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0ADepending+on+the+value+of+%5C%28x%5C%29+the+equation+%5C%28+f%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D+%5C%29+may+diverge+or+converge.%0A%0A%5C%5B+f%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D+%5C%5D%0A%0A%5Cvspace%7B1cm%7D%0A%0AInline+maths+elements+can+be+set+with+a+different+style%3A+%5C%28f%28x%29+%3D+%5Cdisplaystyle+%5Cfrac%7B1%7D%7B1%2Bx%7D%5C%29.+The+same+is+true+for+display+math+material%3A%0A%0A%5Cbegin%7Balign%2A%7D%0Af%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D+%5C%5C%0A%5Ctextstyle+f%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D+%5C%5C%0A%5Cscriptstyle+f%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D+%5C%5C%0A%5Cscriptscriptstyle+f%28x%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bn%7D+%5Cfrac%7Ba_i%7D%7B1%2Bx%7D%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

## 추가 읽을거리

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

* [수학 표현식](/latex/ko/mathematics/01-mathematical-expressions.md)
* [아래첨자와 위첨자](/latex/ko/mathematics/02-subscripts-and-superscripts.md)
* [amsmath를 사용한 방정식 정렬](/latex/ko/mathematics/06-aligning-equations-with-amsmath.md)
* [수학 모드에서의 간격](/latex/ko/mathematics/08-spacing-in-math-mode.md)
* [적분, 합, 그리고 극한](/latex/ko/mathematics/09-integrals-sums-and-limits.md)
* [수학 글꼴](/latex/ko/mathematics/12-mathematical-fonts.md)
* [LaTeX2ε에 대한 그다지 짧지 않은 소개](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/mathematics/10-display-style-in-math-mode.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.
