> 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/ar/allghat/12-korean.md).

# الكورية

## مقدمة

تدعم LaTeX العديد من اللغات حول العالم من خلال حزم خاصة. تشرح هذه المقالة كيفية استيراد الحزم واستخدامها لتنسيق المستندات التي تحتوي على نص كوري. يمكن العثور على قائمة بخطوط كورية متاحة على Overleaf [هنا](/latex/ar/alaselh-walajwbh/85-which-otf-or-ttf-fonts-are-supported-via-fontspec.md#korean).

### مثال باستخدام خطوط Google Noto CJK

يمكننا استخدام `xeCJK` الحزمة، التي تتطلب المصرّف XeLaTeX، لتنسيق بعض النص الكوري باستخدام [خطوط Noto CJK](https://www.google.com/get/noto/help/cjk/) المثبتة على Overleaf:

```latex
\documentclass{article}
\usepackage{xeCJK}
\setmainfont{Noto Serif}
\setCJKmainfont{Noto Serif CJK KR}
\setCJKsansfont{Noto Sans CJK KR}
\setCJKmonofont{Noto Sans Mono CJK KR}
\begin{document}
\section{소개}
전체 문서에 대한 기본 정보를 소개 단락.

\begin{verbatim}
그것은 간격 방법을 참조 그대로 글꼴을 테스트
\end{verbatim}

كما يُسمح أيضًا بالأحرف اللاتينية.
\end{document}
```

[افتح هذا المثال الكوري في Overleaf](https://www.overleaf.com/docs?engine=xelatex\&snip_name=Korean+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BxeCJK%7D%0A%5Csetmainfont%7BNoto+Serif%7D%0A%5CsetCJKmainfont%7BNoto+Serif+CJK+KR%7D%0A%5CsetCJKsansfont%7BNoto+Sans+CJK+KR%7D%0A%5CsetCJKmonofont%7BNoto+Sans+Mono+CJK+KR%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7B%EC%86%8C%EA%B0%9C%7D%0A%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%0A%0A%5Cbegin%7Bverbatim%7D%0A%EA%B7%B8%EA%B2%83%EC%9D%80+%EA%B0%84%EA%B2%A9+%EB%B0%A9%EB%B2%95%EC%9D%84+%EC%B0%B8%EC%A1%B0+%EA%B7%B8%EB%8C%80%EB%A1%9C+%EA%B8%80%EA%BC%B4%EC%9D%84+%ED%85%8C%EC%8A%A4%ED%8A%B8%0A%5Cend%7Bverbatim%7D%0A%0ALatin+characters+are+also+allowed.%0A%5Cend%7Bdocument%7D)

ينتج هذا المثال المخرجات التالية:

![مثال أساسي لتنسيق النص الكوري](/files/46cc199c02ed5c04a30aec1f29763171ddd05e83)

في المثال أعلاه يتم تعريف أربعة خطوط مختلفة مختلفة:

* `\setmainfont{Noto Serif}`: يستخدم خط Noto Serif للنص الذي يحتوي على أحرف لاتينية.
* `\setCJKmainfont{Noto Serif CJK KR}`: يضبط الخط `Noto Serif CJK KR` ليُستخدم كخط رئيسي.
* `\setCJKsansfont{Noto Sans CJK KR}`: تمامًا مثل الأمر السابق، يستخدم هذا `Noto Sans CJK KR` لعناصر المستند لتنسيقها بخط بلا زوائد.
* `\setCJKmonofont{Noto Sans Mono CJK KR}`: يستخدم `Noto Sans Mono CJK KR` للخط الذي تتطلبه عناصر المستند التي تحتاج إلى خط أحادي المسافة؛ على سبيل المثال، داخل `verbatim` البيئة.

### مثال باستخدام خطوط Noto وأوزان خطوط مختلفة

لأن `xeCJK` تستخدم الحزمة `fontspec` أوامر LaTeX المعتادة لاختيار نمط الخط وعائلته ووزنه، مثل `\ttfamily`, `\bfseries` و `\textsf` تستمر في العمل، كما هو موضح في المثال التالي:

```latex
\documentclass{article}
\usepackage{xeCJK}
\setmainfont{Noto Serif}
\setCJKmainfont{Noto Serif CJK KR}
\setCJKsansfont{Noto Sans CJK KR}
\setCJKmonofont{Noto Sans Mono CJK KR}
\begin{document}
\section{소개}
전체 문서에 대한 기본 정보를 소개 단락.

\vspace{10pt}

\noindent أحادية المسافة بالوزن العادي: {\ttfamily 전체 문서에 대한 기본 정보를 소개 단락.}

\vspace*{10pt}

\noindent أحادية المسافة بالوزن العريض: {\ttfamily\bfseries 전체 문서에 대한 기본 정보를 소개 단락.}

\vspace*{10pt}

\noindent بلا زوائد: \textsf{ 전체 문서에 대한 기본 정보를 소개 단락.}

\vspace*{10pt}

\noindent بلا زوائد عريض: \textsf{\bfseries 전체 문서에 대한 기본 정보를 소개 단락.}

\vspace*{10pt}

\noindent وبالطبع، يُسمح أيضًا بالأحرف اللاتينية بالخط \textbf{العريض} أو \textit{المائل}.
\end{document}
```

[افتح هذا المثال الكوري الثاني في Overleaf](https://www.overleaf.com/docs?engine=xelatex\&snip_name=Korean+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BxeCJK%7D%0A%5Csetmainfont%7BNoto+Serif%7D%0A%5CsetCJKmainfont%7BNoto+Serif+CJK+KR%7D%0A%5CsetCJKsansfont%7BNoto+Sans+CJK+KR%7D%0A%5CsetCJKmonofont%7BNoto+Sans+Mono+CJK+KR%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7B%EC%86%8C%EA%B0%9C%7D%0A%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%0A%0A%5Cvspace%7B10pt%7D%0A%0A%5Cnoindent+Regular+weight+monospace%3A+%7B%5Cttfamily+%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%7D%0A%0A%5Cvspace%2A%7B10pt%7D%0A%0A%5Cnoindent+Bold+weight+monospace%3A+%7B%5Cttfamily%5Cbfseries+%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%7D+%0A%0A%5Cvspace%2A%7B10pt%7D%0A%0A%5Cnoindent+Sans+serif%3A+%5Ctextsf%7B+%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%7D%0A%0A%5Cvspace%2A%7B10pt%7D%0A%0A%5Cnoindent+Sans+serif+bold%3A+%5Ctextsf%7B%5Cbfseries+%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%7D%0A%0A%5Cvspace%2A%7B10pt%7D%0A%0A%5Cnoindent+And+of+course%2C+Latin+characters+are+also+allowed+in+%5Ctextbf%7Bbold%7D+or+%5Ctextit%7Bitalics%7D.%0A%5Cend%7Bdocument%7D)

ينتج هذا المثال المخرجات التالية:

![نص كوري بأنماط مختلفة](/files/e8f16957ef38343754dcffa628959ac575b1ad4e)

## مثال باستخدام xeCJK مع خطوط محمّلة في مشروعك

يستخدم المثال التالي الخطوط، `UnGungseo.ttf` و `gulim.ttf`، التي تم تحميلها إلى مشروع Overleaf.

```latex
\documentclass{article}
\usepackage{xeCJK}

\setmainfont{Noto Serif}
\setCJKmainfont{UnGungseo.ttf}
\setCJKsansfont{UnGungseo.ttf}
\setCJKmonofont{gulim.ttf}

\begin{document}

\section{소개}
전체 문서에 대한 기본 정보를 소개 단락.

\begin{verbatim}
그것은 간격 방법을 참조 그대로 글꼴을 테스트
\end{verbatim}

كما يُسمح أيضًا بالأحرف اللاتينية.

\end{document}
```

[افتح هذا المثال الخاص بـ XeLaTeX وxeCJK في Overleaf](https://www.overleaf.com/project/new/template/21134?id=72864508\&templateName=Typesetting+Korean+with+uploaded+fonts\&latexEngine=xelatex\&texImage=texlive-full%3A2020.1\&mainFile=)

ينتج هذا المثال المخرجات التالية:

![تنسيق النص الكوري باستخدام pdfTeX](/files/571cfa9853687130e668d6dddb37bd24680912bf)

## تنسيق المستندات الكورية باستخدام pdfLaTeX

إذا كان سير عملك يعني أنك *يجب أن* تستخدم pdfLaTeX، ولا يمكنك استخدام XeLaTeX، فيمكنك استخدام `CJKutf8` الحزمة مع pdfLaTeX. إليك مثالًا:

```latex
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{mj}
 전체 문서에 대한 기본 정보를 소개 단락.

 \begin{verbatim}
 그것은 간격 방법을 참조 그대로 글꼴을 테스트
 \end{verbatim}
\end{CJK}

كما يُسمح أيضًا بالأحرف اللاتينية.
\end{document}
```

[افتح هذا `CJKuft8` مثال الحزمة في Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Typesetting+Korean+with+pdfTeX\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BCJKutf8%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7BCJK%7D%7BUTF8%7D%7Bmj%7D%0A+%EC%A0%84%EC%B2%B4+%EB%AC%B8%EC%84%9C%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B8%B0%EB%B3%B8+%EC%A0%95%EB%B3%B4%EB%A5%BC+%EC%86%8C%EA%B0%9C+%EB%8B%A8%EB%9D%BD.%0A%0A+%5Cbegin%7Bverbatim%7D%0A+%EA%B7%B8%EA%B2%83%EC%9D%80+%EA%B0%84%EA%B2%A9+%EB%B0%A9%EB%B2%95%EC%9D%84+%EC%B0%B8%EC%A1%B0+%EA%B7%B8%EB%8C%80%EB%A1%9C+%EA%B8%80%EA%BC%B4%EC%9D%84+%ED%85%8C%EC%8A%A4%ED%8A%B8%0A+%5Cend%7Bverbatim%7D%0A%5Cend%7BCJK%7D%0A%0ALatin+characters+are+also+allowed.%0A%5Cend%7Bdocument%7D)

ينتج هذا المثال المخرجات التالية:

![تنسيق النص الكوري باستخدام CJKuft8](/files/2d2f1bb4e0b1b09ed03258baeff2f48871ba24a1)

لاحظ أنه لكي تكتب نصًا كوريًا يجب عليك استخدام `CJK` البيئة:

`\begin{CJK}{UTF8}{mj}`سيبدأ `CJK` بيئة، والمعامل الأول الممرَّر إلى تعريف البيئة هو ترميز النص. استخدم فقط `UTF8` على Overleaf، لأن جميع ملفات النص على Overleaf هي UTF8. المعامل الثاني هو عائلة الخط المستخدمة: استخدم `mj` للكورية.

## قراءات إضافية

لمزيد من المعلومات، انظر

* [قائمة بخطوط كورية متاحة على Overleaf](/latex/ar/alaselh-walajwbh/85-which-otf-or-ttf-fonts-are-supported-via-fontspec.md#korean)
* [دعم الخطوط الحديثة باستخدام XƎLaTeX](/latex/ar/alkhtwt/03-xelatex.md)
* [تنسيق الاقتباسات وعلامات الاقتباس](/latex/ar/allghat/04-typesetting-quotations.md)
* [دعم اللغات الدولية](/latex/ar/allghat/03-international-language-support.md)
* [الصينية](/latex/ar/allghat/06-chinese.md)
* [الفرنسية](/latex/ar/allghat/07-french.md)
* [الألمانية](/latex/ar/allghat/08-german.md)
* [اليونانية](/latex/ar/allghat/09-greek.md)
* [الإيطالية](/latex/ar/allghat/10-italian.md)
* [اليابانية](/latex/ar/allghat/11-japanese.md)
* [العربية](/latex/ar/allghat/05-arabic.md)
* [البرتغالية](/latex/ar/allghat/13-portuguese.md)
* [الروسية](/latex/ar/allghat/14-russian.md)
* [الإسبانية](/latex/ar/allghat/15-spanish.md)
* [المقدمة التي ليست قصيرة جدًا إلى LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)
* [LaTeX/التدويل على WikiBooks](http://en.wikibooks.org/wiki/LaTeX/Internationalization)
* [LaTeX/الأحرف\_الخاصة على WikiBooks](http://en.wikibooks.org/wiki/LaTeX/Special_Characters)


---

# 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/ar/allghat/12-korean.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.
