> 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/in-depth-articles/35-overleaf-projects-showing-how-to-use-variable-fonts-with-latex.md).

# LaTeX에서 가변 글꼴을 사용하는 방법을 보여주는 Overleaf 프로젝트

[소개](https://www.overleaf.com/learn/latex/Articles/How_to_use_OpenType_variable_fonts_with_LaTeX?preview=true) [1단계](https://www.overleaf.com/learn/latex/Articles/Step_1:_Setting_up_an_Overleaf_project_to_use_variable_fonts?preview=true) [2단계](https://www.overleaf.com/learn/latex/Articles/Step_2:_An_introduction_to_LaTeX_fonts?preview=true) [3단계](https://www.overleaf.com/learn/latex/Articles/Step_3:_Replacing_LaTeX’s_default_fonts_with_variable_fonts?preview=true) [4단계](https://www.overleaf.com/learn/latex/Articles/Step_4:_How_to_configure_an_italic_variable_font_using_fontspec?preview=true) [5단계](https://www.overleaf.com/learn/latex/Articles/Step_5:_LaTeX_font_weights_and_named_instances_of_variable_fonts?preview=true) [6단계](https://www.overleaf.com/learn/latex/Articles/Step_6:_Using_variable_fonts_to_add_bold_fonts_to_an_Overleaf_project?preview=true) [7단계](https://www.overleaf.com/learn/latex/Articles/Step_7:_Using_Noto_Sans_and_Roboto_Mono_variable_fonts_with_LaTeX?preview=true) [8단계](https://www.overleaf.com/learn/latex/Articles/Step_8:_How_to_create_a_simple_LaTeX_package_to_configure_your_variable_fonts?preview=true) [예제 및 프로젝트](https://www.overleaf.com/learn/latex/Articles/Overleaf_projects_showing_how_to_use_variable_fonts_with_LaTeX?preview=true)

이 마지막 튜토리얼 편에서는 OpenType 가변 글꼴의 사용을 보여 주기 위해 Overleaf가 만든 다섯 개의 프로젝트를 소개합니다. 모든 프로젝트에는 필요한 가변 글꼴 파일과 `latexmkrc` 해당 글꼴 파일을 LaTeX에서 사용할 수 있게 해 주는 파일이 포함되어 있습니다.

무료 요금제 사용자는 이들 프로젝트 중 일부의 초기 컴파일 시간이 더 길 수 있음을 유의하시기 바랍니다. 이는 LuaLaTeX와 OpenType 가변 글꼴을 사용하기 때문입니다.

## 프로젝트 1: OpenType 가변 글꼴로 구성된 바로 사용할 수 있는 프로젝트

* Overleaf 프로젝트 열기 <https://www.overleaf.com/1311295292wvdkgcbnfxsw#94292d>

이 프로젝트는 Noto Serif, Noto Sans, Roboto Mono를 사용하도록 구성되어 있습니다. 섹션 제목, 그림 및 표 캡션, 심지어 각주까지 특정 가변 글꼴 설정을 사용하도록 구성되어 있습니다. 프로젝트 파일을 참조하세요. `myvariablefonts.sty` 에서 자세한 내용을 확인하세요.

## 프로젝트 2: LaTeX의 글꼴 선택 명령을 보여 주기 위해 가변 글꼴 사용하기

* Overleaf 프로젝트 열기: <https://www.overleaf.com/1941895198cqjzyhzvxhwz#794ae2>

이 프로젝트는 Noto Serif, Noto Sans, Roboto Mono에 대해 LaTeX의 글꼴 너비, 굵기, 모양의 다양한 조합을 구성합니다. 이 글꼴들을 LaTeX의 글꼴 선택 명령과 함께 사용하는 방법을 보여 줍니다. `\fontseries`, `\fontshape` 및 `\fontfamily`.

![LaTeX의 \fontseries 명령을 사용하여 가변 글꼴을 조판하는 모습을 보여 주는 이미지](/files/d228f3abf6ce045cc0f3776f44063fbee026d27f)

## 프로젝트 3: babel 패키지와 함께 가변 글꼴을 사용하여 아랍어와 영어 조판하기

* Overleaf 프로젝트 열기 <https://www.overleaf.com/3933144323kswvxhnqkbcw#097c77>

이 프로젝트는 다음과 함께 사용할 OpenType 가변 글꼴을 구성하는 방법을 보여 줍니다. [babel 패키지](https://ctan.org/pkg/babel?lang=en). 영어와 아랍어를 여러 아랍 문자 OpenType 가변 글꼴을 사용해 함께 조판하는 예제가 포함되어 있습니다:

* [Noto Naskh Arabic](https://fonts.google.com/noto/specimen/Noto+Naskh+Arabic/tester)
* [Noto Nastaliq](https://fonts.google.com/noto/specimen/Noto+Nastaliq+Urdu/tester)
* [Noto Sans Arabic](https://fonts.google.com/noto/specimen/Noto+Sans+Arabic/tester)

이 프로젝트는 fontspec의 `\addfontfeatures` 명령을 사용하여 이 프로젝트에서 사용된 아랍어 가변 글꼴을 포함한 OpenType 가변 글꼴에 일시적인 변경을 가하는 방법을 보여 줍니다.

![OpenType 가변 글꼴을 사용하여 LaTeX로 조판한 아랍어와 영어 문단을 보여 주는 이미지](/files/035a642e5df68f6bd70a976e52be1d8909f82160)

**면책 조항**: 비영어 텍스트와 관련 번역은 모두 ChatGPT를 사용해 생성되었습니다.

## 프로젝트 4: 가변 글꼴을 보여 주는 다양한 예제

* Overleaf 프로젝트 열기 <https://www.overleaf.com/2858462957mvthxfmtgxsc#11aac1>

이 프로젝트에는 fontspec의 `\addfontfeatures` 명령을 사용해 가변 글꼴에 일시적인 조정을 가하는 방법을 보여 주는 여러 예제가 포함되어 있습니다. 예를 들어 글꼴의 너비나 굵기를 일시적으로 변경하여 일부 텍스트를 조판하는 데 필요한 공간을 조절할 수 있습니다. 다음 절에서는 각 예제를 설명하고, 각 예제를 최대한 활용하는 데 도움이 되는 배경 정보를 제공합니다.

### 예제: 더 많은 텍스트를 주어진 공간에 맞추기 위해 글꼴 너비 변경

이 예제에서는 fontspec의 `\addfontfeatures` 명령을 사용하여, 가변 글꼴의 너비를 아주 약간, 거의 눈에 띄지 않을 정도로 줄이면 주어진 공간에 더 많은 텍스트를 넣을 수 있음을 보여 줍니다. 같은 텍스트가 들어 있는 두 개의 minipage를 나란히 조판하여, 비압축 Noto Serif와 너비 축 값이 4% 줄어든 글꼴을 비교합니다.

![가변 글꼴의 너비를 줄이면 주어진 공간에 더 많은 텍스트를 넣을 수 있음을 보여 주는 이미지](/files/2c244dff8c4f2b0ab48a86921d0fd3d38e970cec)

### fancyvrb 패키지와 함께 가변 글꼴 사용하기 예제

fontspec의 `\newfontfamily` 명령을 사용하여, 이 예제는 선택한 가변 글꼴을 사용해 다음의 프로그램 코드를 조판하는 방법을 보여 줍니다. `Verbatim` 환경에서 [`fancyvrb` 패키지](https://ctan.org/pkg/fancyvrb?lang=en). 또한 LaTeX의 `\fontseries` 명령을 사용해.

![가변 글꼴을 사용해 조판한 verbatim 텍스트를 보여 주는 이미지](/files/6014e155d02dd8dc7171e1c21914014590dd111a)

#### Verbatim 환경에 대한 몇 가지 참고 사항

다음 `Verbatim` 환경은 다음과 같은 형식입니다

```latex
\begin{Verbatim}[⟨settings⟩]
⟨input⟩
\end{Verbatim}
```

여기서

* 다음 `[⟨settings⟩]` 부분은 선택 사항입니다. `⟨settings⟩` 에는 이 특정 `Verbatim` 환경은
* `⟨input⟩` 은 조판하려는 텍스트입니다

하나의 `Verbatim` 환경은 LaTeX의 기본 텍스트 처리를 비활성화하므로 `⟨input⟩` 텍스트를 공백, LaTeX 명령, 특수 문자, 줄바꿈까지 포함해 있는 그대로 정확히 조판할 수 있습니다.

다음을 형식화하려면 `⟨input⟩` 텍스트에 굵게 또는 기울임꼴을 적용하는 것처럼, `commandchars` 키를 `⟨settings⟩` 섹션. `commandchars` 에서는 조판되지 않고 LaTeX 매크로를 호출하는 데 사용할 수 있는 세 개의 “특수” 문자를 지정합니다. `⟨input⟩` 오류와 충돌을 피하려면, 일반적인 `⟨input⟩` 텍스트.

예를 들어,

```latex
\begin{Verbatim}[commandchars=|()]
⟨input⟩
\end{Verbatim}
```

를 쓰면 `Verbatim` 환경이 문자 `|`, `(`, 그리고 `)` 를 명령 문자로 취급하도록 지시합니다. 이 문자가 `⟨input⟩` 안에 나타나면 LaTeX는 다음과 같이 처리합니다:

* `|` 는 LaTeX 명령을 시작하는 데 사용되며, 일반적인 `\` 문자를 대체합니다.
* `(` 및 `)` 는 LaTeX 명령 인수를 구분하는 데 사용되며, 일반적인 `{` 및 `}`

예를 들어, `⟨input⟩` 텍스트의 일부를 굵게 조판하려면 `|textbf(some text)` 라고 쓰면 되며, `\textbf{some text}`.

### 예제: 서로 다른 스타일을 사용해 숫자 조판하기

이 예제에서는 fontspec의 `\addfontfeatures` 명령을 사용하여 숫자 0, 1, 2, ... 9를 조판할 때 사용되는 스타일을 일시적으로 변경합니다. 이 문자들은 흔히 “digits” 또는 “numbers”라고 불리지만, 타이포그래퍼와 디자이너는 이를 “figures”라고 부르며, 이 예제에서도 이 용어를 사용합니다.

#### 타이포그래피와 figure 스타일에 대한 몇 가지 참고 사항

시간이 지나면서 표, 본문, 문서 제목 등 다양한 문서 요소에서 figures를 조판하는 서로 다른 스타일이 발전해 왔습니다. 이러한 스타일은 figures의 세 가지 속성, 즉 너비, 높이, 기준선에 대한 정렬을 기준으로 정의됩니다.

두 가지 스타일은 figure의 너비를 기준으로 합니다:

* **proportional**: 각 figure의 너비는 디자인에 따라 달라집니다.
* **tabular**tabular

두 가지 스타일은 figure의 높이와 정렬을 기준으로 합니다:

* **lining**: figure는 기준선 위에 놓이며, 디자인 요소가 그 아래로 내려가지 않습니다. 모든 figure의 높이는 같습니다.
* **oldstyle**: figure의 높이는 달라질 수 있으며, figure 디자인의 일부가 기준선 아래에 나타날 수 있습니다.

이를 조합하면 다음 그림과 같이 네 가지 조판 스타일이 됩니다:

![](/files/f6562acc0346c22ed4b38150e0c362d29508c39a)

다음 중 하나: [Monotype가 발행한 기사](https://www.monotype.com/resources/expertise/how-use-figure-styles-illustrator) 에서는 이러한 figure 스타일을 사용하는 방법을 설명합니다.

#### 이러한 figure 스타일에 접근하는 방법

이러한 figure 스타일의 사용 가능 여부는 문서를 조판하는 데 사용한 변형 또는 비변형 OpenType 글꼴에 따라 달라집니다. 다행히 Noto Serif는 네 가지 figure 스타일을 모두 지원하므로, `\addfontfeatures` 을 사용하여 fontspec의 `Numbers` 키를 통해 서로 다른 figure 스타일을 적용할 수 있습니다. 여기서 `OldStyle`의 대문자 표기에 유의하세요. 다음 표는 제공된 예제 중 하나입니다:

![숫자를 조판하는 데 사용되는 네 가지 스타일을 보여 주는 표: tabular oldstyle, proportional oldstyle, tabular lining, proportional lining.](/files/19e088865b2809ac2b45f8699b63a6b93cbe336a)

* Overleaf 프로젝트 열기 <https://www.overleaf.com/2858462957mvthxfmtgxsc#11aac1>

## 프로젝트 5: LaTeX의 “가상” 글꼴 모양을 보여 주기 위해 가변 글꼴 사용하기

* Overleaf 프로젝트 열기 <https://www.overleaf.com/4719455662kydjkfvdwjpn#2ea0f1>

LaTeX의 “가상” 글꼴 모양은 물리적인 글꼴을 나타내지 않습니다. 대신 `\fontshape` 를 사용해 현재 모양을 변경하는 데 목적이 있습니다. 프로젝트 예제에서는 다음 명령을 사용하는 방법을 보여 줍니다. `\fontshape`, `\textup`, `\textulc`, `\upshape`, 그리고 `\ulcshape`.


---

# 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/in-depth-articles/35-overleaf-projects-showing-how-to-use-variable-fonts-with-latex.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.
