> 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/166-writing-markdown-in-latex-documents.md).

# LaTeX 문서에서 Markdown 작성하기

## 소개

LaTeX 문서에서 마크다운을 사용하려면 다음을 불러와야 합니다. [`markdown` 패키지](https://www.ctan.org/pkg/markdown) 문서 서문에:

```latex
\usepackage[settings]{markdown}
```

여기서 `[settings]` 은 *선택 사항인* 패키지 기능을 구성하거나 활성화하는 데 사용되는 매개변수 집합입니다. 다음을 참조하세요. `markdown` 패키지 [설명서](https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/generic/markdown/markdown.html) 에 대한 [패키지 매개변수(옵션) 설명](https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/generic/markdown/markdown.html#options).

이 글에서는 두 가지를 간략히 살펴봅니다. *인라인* 문서 안에 작성한 마크다운과 가져온 *라이브러리를* 텍스트 파일에 포함된 마크다운.

* **주의 사항**: 일반적으로 LaTeX 문서 내에서 마크다운을 사용하는 것은 문서 내용의 일부 요소를 작성하기 위한 보완적이고 편리한 옵션으로 간주해야 하며, LaTeX 자체를 완전히 대체하는 대안 문법으로 보아서는 안 됩니다.

## 외부 마크다운 파일 사용

다음 명령을 사용하세요

```latex
\markdownInput{filename}
```

마크다운 파일을 포함하려면 `filename`.

다음 예제는 다음 이름의 파일을 삽입합니다. `example.md`. 코드 목록 아래의 링크를 사용하여 이를 Overleaf 프로젝트로 여세요:

**`main.tex`**

```latex
\documentclass{article}
\title{Using the markdown package}
\usepackage[smartEllipses]{markdown}
\begin{document}

\markdownInput{example.md}

\end{document}
```

**`example.md`**

```latex
%% example.md

# 저는 마크다운 파일입니다.

그리고 *강조*를 할 수 있습니다.
## 하위 제목 포함

> 인용문은
> 이렇게 작성합니다.
>
> 여러 문단에 걸칠 수 있으며,
> 원하면 가능합니다.

em 대시에는 하이픈 3개를 사용하세요. 범위에는 하이픈 2개를 사용하세요
(예: "it's all in chapters 12--14").
점 3개 ... 는 줄임표로 변환됩니다
(smartEllipses 옵션을 포함했다면
서문에). 유니코드를 지원합니다.
```

[이 파일들을 Overleaf 프로젝트로 여세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name\[]=main.tex\&snip\[]=%5Cdocumentclass%7Barticle%7D%0A%5Ctitle%7BUsing+the+markdown+package%7D%0A%5Cusepackage%5BsmartEllipses%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5CmarkdownInput%7Bexample.md%7D%0A%0A%5Cend%7Bdocument%7D\&snip_name\[]=example.md\&snip\[]=%25%25+example.md%0A%0A%23+I%27m+a+markdown+file.%0A%0AAnd+I+can+do+%2Aemphasis%2A.%0A%23%23+With+sub-headers%0A%0A%3E+Block+quotes+are%0A%3E+written+like+so.%0A%3E%0A%3E+They+can+span+multiple+paragraphs%2C%0A%3E+if+you+like.%0A%0AUse+3+dashes+for+an+em-dash.+Use+2+dashes+for+%0Aranges+%28ex.%2C+%22it%27s+all+in+chapters+12--14%22%29.+%0AThree+dots+...+will+be+converted+to+an+ellipsis+%0A%28provided+you+include+the+smartEllipses+option+%0Ain+your+preamble%29.+Unicode+is+supported.\&main_document=main.tex)

이 예제는 다음과 같은 출력을 생성합니다:

![markdown 패키지의 출력 결과를 보여 주는 그래픽](/files/022bc8abfe88f07ed0e7c595d2e2f967f521de36)

## 인라인 마크다운 사용

다음을 사용하세요 `markdown` 환경:

```latex
\begin{markdown}
...여기에 마크다운이
들어갑니다...
\end{markdown}
```

다음 예제에서 보이듯이 인라인 마크다운을 작성할 수 있습니다:

```latex
\documentclass{article}
\usepackage[hashEnumerators,smartEllipses]{markdown}
\begin{document}

인라인 마크다운 사용:

\begin{markdown}
h1 제목
============

문단은 빈 줄로 구분됩니다.

두 번째 문단. *이탤릭*, **굵게**, 그리고 `모노스페이스`. 항목 목록은
다음과 같습니다:

* 이것
* 저것
* 그 다른 것

> 인용문은
> 이렇게 작성합니다.
>
> 여러 문단에 걸칠 수 있으며,
> 원하면 가능합니다.

h2 제목
------------

다음은 번호가 매겨진 목록입니다(`hashEnumerators` 옵션을 사용하려면 해시를 사용하세요):

#. 첫 번째 항목
#. 두 번째 항목
#. 세 번째 항목

\end{markdown}
\end{document}
```

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+markdown\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BhashEnumerators%2CsmartEllipses%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%0AUsing+inline+markdown%3A%0A%0A%5Cbegin%7Bmarkdown%7D%0AAn+h1+header%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0AParagraphs+are+separated+by+a+blank+line.+%0A%0A2nd+paragraph.+%2AItalic%2A%2C+%2A%2Abold%2A%2A%2C+and+%60monospace%60.+Itemized+lists%0Alook+like%3A%0A%0A%2A+this+one%0A%2A+that+one%0A%2A+the+other+one%0A%0A%3E+Block+quotes+are%0A%3E+written+like+so.%0A%3E%0A%3E+They+can+span+multiple+paragraphs%2C%0A%3E+if+you+like.%0A%0AAn+h2+header%0A------------%0A%0AHere%27s+a+numbered+list+%28use+%60hashEnumerators%60+option+if+you+want+to+use+hashes%29%3A%0A%0A%23.+first+item%0A%23.+second+item%0A%23.+third+item%0A%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![Overleaf에서 조판한 인라인 마크다운 예제](/files/17230a4d51fcc8a452e90ecf09e5c0de75e4f938)

## 마크다운 패키지의 기능과 옵션

여기서는 몇 가지를 살펴보겠습니다. [기능과 옵션](https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/generic/markdown/markdown.html) 에서 제공하는 `markdown` 패키지.

### 마크다운에 코드 포함하기

마크다운 안에서 코드 조각(코드 블록)을 표시하는 방법은 두 가지가 있습니다:

* 블록의 각 줄을 최소 네 칸의 공백 또는 한 탭만큼 들여쓰기 하거나,
* 일명 [펜스형 코드 블록](#using-fenced-code-blocks)

#### 들여쓰기를 사용하여 코드 블록 표시하기

다음 예제는 각 코드 줄의 시작 부분에 4개 이상의 공백 문자를 사용합니다. 일부 줄은 필요한 들여쓰기 크기에 따라 6, 8 또는 10개의 공백 문자를 사용합니다:

```latex
\documentclass{article}
\usepackage{markdown}
\begin{document}
여기에는 최소 4개의 공백 문자로 들여쓴 코드 조각이 있습니다.
\vspace{6mm}

\begin{markdown}

여기 C 코드 조각이 있습니다:

    /* 반복해 봅시다 ... */

    int i;
    for(i=0; i<10; i++)
    {
      do-something(i)
    }

여기 HTML이 있습니다:

    <html>
      <head>
        <title>페이지 제목</title>
      </head>
      <body>
        <h1>이것은 제목입니다</h1>
          <p>이것은 문단입니다.</p>
      </body>
    </html>

\end{markdown}
\end{document}
```

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+markdown+code+snippets\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0AHere+are+some+code+fragments+indented+by+at+least+4+space+characters.%0A%5Cvspace%7B6mm%7D%0A%0A%5Cbegin%7Bmarkdown%7D%0A%0AHere+is+a+fragment+of+C%3A%0A%0A++++%2F%2A+Let+me+iterate+...+%2A%2F%0A%0A++++int+i%3B%0A++++for%28i%3D0%3B+i%3C10%3B+i%2B%2B%29%0A++++%7B%0A++++++do-something%28i%29%0A++++%7D%0A%0AHere+is+some+HTML%3A%0A%0A++++%3Chtml%3E%0A++++++%3Chead%3E%0A++++++++%3Ctitle%3EPage+Title%3C%2Ftitle%3E%0A++++++%3C%2Fhead%3E%0A++++++%3Cbody%3E%0A++++++++%3Ch1%3EThis+is+a+Heading%3C%2Fh1%3E%0A++++++++++%3Cp%3EThis+is+a+paragraph.%3C%2Fp%3E%0A++++++%3C%2Fbody%3E%0A++++%3C%2Fhtml%3E%0A%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![마크다운을 통해 코드가 조판되는 예제](/files/0fdd7b8b80411cf535a19994e4188f08a6fd792c)

#### 펜스형 코드 블록 사용하기

펜스형 코드 블록은 다음 중 하나를 작성하여 만듭니다

* 세 개의 백틱(` ``` `), 또는
* 세 개의 물결표(`~~~`)

를 코드 블록 앞과 뒤의 줄에 넣습니다. 이 방법을 사용하면 줄을 들여쓸 필요는 없지만 다음을 사용해야 합니다. `fencedCode` 서문의 옵션을:

```latex
\usepackage[fencedCode]{markdown}
```

다음은 3개의 백틱(` ``` `):

````latex
\documentclass{article}
\usepackage[fencedCode]{markdown}
\begin{document}
\begin{markdown}

```
if (a > 3) {
    moveShip(5 * gravity, DOWN);
}
```

```
    <html>
      <head>
        <title>페이지 제목</title>
      </head>
      <body>
        <h1>이것은 제목입니다</h1>
          <p>이것은 문단입니다.</p>
      </body>
    </html>
```
\end{markdown}
\end{document}
````

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+markdown+fenced+code+blocks\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BfencedCode%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bmarkdown%7D%0A%0A%60%60%60%0Aif+%28a+%3E+3%29+%7B%0A++++moveShip%285+%2A+gravity%2C+DOWN%29%3B%0A%7D%0A%60%60%60%0A%0A%60%60%60%0A++++%3Chtml%3E%0A++++++%3Chead%3E%0A++++++++%3Ctitle%3EPage+Title%3C%2Ftitle%3E%0A++++++%3C%2Fhead%3E%0A++++++%3Cbody%3E%0A++++++++%3Ch1%3EThis+is+a+Heading%3C%2Fh1%3E%0A++++++++++%3Cp%3EThis+is+a+paragraph.%3C%2Fp%3E%0A++++++%3C%2Fbody%3E%0A++++%3C%2Fhtml%3E%0A%60%60%60%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![markdown LaTeX 패키지와 함께 펜스형 코드 블록 사용하기](/files/80005e1f08888b64d29ba3bcf489be8ada717d74)

#### 구문 강조

펜스형 코드 블록은 첫 번째 백틱 집합 뒤에 언어 이름을 적으면 구문 강조를 지원합니다(`` ` ``). 예를 들어, 다음 블록은 첫 번째 백틱 집합을 다음과 같이 작성하여 Javascript로 식별됩니다 ` ``` js `:

````latex
``` js
if (a > 3) {
    moveShip(5 * gravity, DOWN);
}
```
````

LaTeX에서는 `minted` 패키지를 사용하여 구문 강조를 할 수 있으며, 다음 예제에 이를 보여 줍니다. 여기에는 일부 Javascript(` ``` js `)와 HTML(` ``` html `):

````latex
\documentclass{article}
\usepackage{minted}
\usepackage[fencedCode]{markdown}
\begin{document}
\begin{markdown}

``` js
if (a > 3) {
    moveShip(5 * gravity, DOWN);
}
```

``` html
    <html>
      <head>
        <title>페이지 제목</title>
      </head>
      <body>
        <h1>이것은 제목입니다</h1>
          <p>이것은 문단입니다.</p>
      </body>
    </html>
```
\end{markdown}
\end{document}
````

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+markdown+fenced+code+blocks\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bminted%7D%0A%5Cusepackage%5BfencedCode%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bmarkdown%7D%0A%0A%60%60%60+js%0Aif+%28a+%3E+3%29+%7B%0A++++moveShip%285+%2A+gravity%2C+DOWN%29%3B%0A%7D%0A%60%60%60%0A%0A%60%60%60+html%0A++++%3Chtml%3E%0A++++++%3Chead%3E%0A++++++++%3Ctitle%3EPage+Title%3C%2Ftitle%3E%0A++++++%3C%2Fhead%3E%0A++++++%3Cbody%3E%0A++++++++%3Ch1%3EThis+is+a+Heading%3C%2Fh1%3E%0A++++++++++%3Cp%3EThis+is+a+paragraph.%3C%2Fp%3E%0A++++++%3C%2Fbody%3E%0A++++%3C%2Fhtml%3E%0A%60%60%60%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![minted와 markdown을 사용한 구문 강조](/files/d72fd861d343cb32238a09b9f22e48e750b77323)

### 목록

이전 예제들은 [순서 없는 목록을 만드는 방법을 보여 줍니다](#using-inline-markdown) 마크다운에서 다음을 사용하여 `*` 문자를. 순서 있는 목록은 다음을 사용하여 만들 수 있습니다 `#` 문자를, 만약 `hashEnumerators` 옵션이 지정되었다면:

```latex
\usepackage[hashEnumerators]{markdown}
```

중첩 목록을 만드는 것도 가능한데, 다음 예제에서 볼 수 있습니다:

```latex
\documentclass{article}
\usepackage[hashEnumerators]{markdown}
\begin{document}
\begin{markdown}
중첩 목록이 포함된 번호 목록입니다:

#. 먼저, 다음 재료를 준비하세요:

      * 당근
      * 셀러리
      * 렌틸콩

#. 물을 끓이세요.

#. 모든 것을 냄비에 넣고 다음 알고리즘을 따르세요:

        나무 주걱 찾기
        냄비 열기
        젓기
        냄비 덮기
        나무 주걱을 냄비 손잡이 위에 불안하게 균형 잡히게 놓기
        10분 기다리기
        첫 단계로 돌아가기(또는 다 끝나면 버너 끄기)

    나무 주걱을 건드리지 마세요. 떨어질 수 있습니다.
\end{markdown}
\end{document}
```

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Creating+a+nested+list+in+markdown\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BhashEnumerators%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bmarkdown%7D%0AHere+is+a+numbered+list+that+contains+a+nested+list%3A%0A%0A%23.+First%2C+get+these+ingredients%3A%0A%0A++++++%2A+carrots%0A++++++%2A+celery%0A++++++%2A+lentils%0A%0A%23.+Boil+some+water.%0A%0A%23.+Dump+everything+in+the+pot+and+follow+this+algorithm%3A%0A%0A++++++++find+wooden+spoon%0A++++++++uncover+pot%0A++++++++stir%0A++++++++cover+pot%0A++++++++balance+wooden+spoon+precariously+on+pot+handle%0A++++++++wait+10+minutes%0A++++++++goto+first+step+%28or+shut+off+burner+when+done%29%0A%0A++++Do+not+bump+wooden+spoon+or+it+will+fall.%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![LaTeX markdown 패키지를 사용한 번호 매기기 만들기](/files/51553a08e22510356c0e4bd3d9cb7e1447b690ea)

### 마크다운 안에 LaTeX 포함하기

다음을 활성화하면 `hybrid` 옵션으로 Markdown 안에 LaTeX 코드를 섞을 수 있습니다!

```latex
\documentclass{article}
\usepackage[hybrid]{markdown}
\begin{document}

\begin{markdown}
인라인 수식은 이렇게 만들 수 있습니다: $\omega = d\phi / dt$.
표시 수식은 다음과 같이 작성할 수 있습니다:

\begin{equation}
I = \int \rho R^{2} dV
\end{equation}

\end{markdown}
\end{document}
```

[이 예제를 Overleaf에서 열어 보세요.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+LaTeX+code+in+markdown\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5Bhybrid%5D%7Bmarkdown%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Bmarkdown%7D%0AInline+math+equations+can+be+created+like+this%3A+%24%5Comega+%3D+d%5Cphi+%2F+dt%24.+%0ADisplay+math+can+be+written+as%3A%0A%0A%5Cbegin%7Bequation%7D%0AI+%3D+%5Cint+%5Crho+R%5E%7B2%7D+dV%0A%5Cend%7Bequation%7D%0A%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![마크다운에서 LaTeX 코드 사용하기](/files/dc842c30360f92a926ab90f4b7d35dc8ecc375d8)

### 이미지 포함하기

* **참고**: 다음 예제에서는 그래픽 파일을 사용합니다(`example-image.pdf`)을 제공하는 `mwe` 패키지입니다. 이러한 그래픽 파일은 TeX Live와 함께 배포되므로 Overleaf 서버에 저장되며, 아래 예제와 같은 이미지 자리표시자로 사용할 수 있습니다.

다음 형식의 마크업을 작성하면 마크다운에 이미지를 포함할 수 있습니다:

```latex
![대체 텍스트](파일 이름 "이미지 캡션")
```

아마도 매개변수 이름 `대체 텍스트`, `파일 이름` 및 `"이미지 캡션"` 이들이 무엇을 하는지 설명합니다. 다음은 이를 보여 주는 예제입니다:

```latex
\documentclass{article}
\usepackage[hybrid]{markdown}
% mwe 패키지는 예제 이미지를 제공합니다. 이를 불러오는 것은
% 필수는 아닙니다. 그 이미지들은 LaTeX의 검색 경로에 있기 때문입니다.
% 여기서는 예제에서의 명확성을 위해 이를 불러옵니다.
\usepackage{mwe}
\begin{document}
\begin{markdown}
이 예제는 그래픽 파일을 가져오는 방법을 보여 줍니다. 여기서는
`mwe` 패키지가 제공하는 예제 이미지를 사용하고 있습니다.

% 이미지 표시 크기를 바꿔야 한다면 \setkeys{Gin}을 사용하세요

\setkeys{Gin}{width=.5\linewidth}
![내 이미지를 설명하는 대체 텍스트입니다.](example-image.jpg "\texttt{mwe} 패키지가 제공하는 예제 이미지.")
\end{markdown}
\end{document}
```

[이 예제를 Overleaf에서 열기.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Using+images+in+markdown\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5Bhybrid%5D%7Bmarkdown%7D%0A%25+The+mwe+package+provides+example+images.+Loading+it+is%0A%25+not+essential+because+those+images+are+in+LaTeX%27s+search+path.+%0A%25+Here%2C+we+load+it+for+clarity+in+this+example.%0A%5Cusepackage%7Bmwe%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bmarkdown%7D%0AThis+example+shows+how+to+import+a+graphics+file.+Here+we+are+using+an%0Aexample+image+provided+by+the+%60mwe%60+package.%0A%0A%25+Use+%5Csetkeys%7BGin%7D+if+you+need+to+change+an+image%27s+display+size%0A%0A%5Csetkeys%7BGin%7D%7Bwidth%3D.5%5Clinewidth%7D%0A%21%5BThis+is+alt+text+to+describe+my+image.%5D%28example-image.jpg+%22An+example+image+provided+by+the+%5Ctexttt%7Bmwe%7D+package.%22%29%0A%5Cend%7Bmarkdown%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음과 같은 출력을 생성합니다:

![마크다운에서 이미지를 가져오는 방법 보기](/files/2825dc60a0b1482b047fd113877a6155d3703f1c)

#### 이미지 너비에 대한 참고

대부분의 패키지와 마찬가지로 `markdown` 다른 패키지도 불러오는데, 다음을 포함합니다 [`keyval`](https://ctan.org/pkg/keyval?lang=en) 및 [`graphicx`](https://ctan.org/pkg/graphicx?lang=en)등이 제공하는 명령과 기능을 활용하기 위해서입니다. 여기서는 이미지 너비가 다음을 사용해 설정됩니다. `\setkeys` 명령으로, 다음에서 제공됩니다 `keyvals`. `Gin` 는 다음이 정의한 키의 "family"입니다 `graphicx` 패키지.

* **참고**: LaTeX 명령, 여기서는 `\setkeys`이 사용되므로 *안에서* 그 `markdown` 환경에서, 다음의 `hybrid` 옵션이 필요합니다.

## 추가 읽을거리

Overleaf에는 마크다운 사용에 관한 다른 글도 게시되어 있습니다:

* [Overleaf에서 Markdown으로 글 쓰는 법](/latex/ko/in-depth-articles/30-how-to-write-in-markdown-on-overleaf.md)
* [스타일이 적용된 Markdown을 LaTeX로](/latex/ko/in-depth-articles/32-markdown-into-latex-with-style.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/knowledge-base/166-writing-markdown-in-latex-documents.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.
