> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/on-premises/ar/alsyanh/extending-tex-live.md).

# توسيع TeX Live

من الممكن توسيع صورة TeX Live موجودة باستخدام Dockerfile جديد وتكوين التطبيق لاستخدام الصورة الجديدة.

نقدّم هنا بعض الإرشادات لتثبيت حزم أو خطوط جديدة، لكن تهيئة صورة مخصّصة لا تغطيها شروط الدعم لدينا.

تتلقى صور TeX Live تحديثات غير متكررة. نقترح إعادة بناء الصور المخصّصة عند الترقية إلى Server Pro.

{% hint style="danger" %}
تنطبق الأقسام التالية على Server Pro و [عمليات التجميع المعزولة](broken://pages/76ac20d4045b021a4d20f19498239b15db301cbd) فقط.
{% endhint %}

### تثبيت الحزم الجديدة وتحديثها

يمكنك استخدام `tlmgr` أوامر مثل `tlmgr install` و `tlmgr update` لإدارة حزم Tex Live كما في المثال التالي:

```dockerfile
FROM ghcr.io/ayaka-notes/texlive-full:2023.1

RUN tlmgr update --force ebproof
```

### استخدام `tlmgr` في صورة TeX Live أقدم

بشكل افتراضي `tlmgr` تُنزِّل الموارد من أحدث إصدار من TeX Live. عند تطبيق تصحيح على صورة TeX Live أقدم، يجب تبديل التنزيلات إلى الأرشيف المناسب. انظر القائمة في <https://www.tug.org/historic/> للمرايا الخاصة بالأرشيفات.

```dockerfile
FROM ghcr.io/ayaka-notes/texlive-full:2022.1

RUN tlmgr option repository <MIRROR>/systems/texlive/<YEAR>/tlnet-final
# على سبيل المثال: RUN tlmgr option repository ftp://tug.org/historic/systems/texlive/2022/tlnet-final

RUN tlmgr update --force ebproof
```

### تثبيت خطوط جديدة

توجد إجراءات مختلفة لتثبيت خطوط جديدة في توزيعة Tex Live، وقد يتطلب تثبيت خط مخصّص عدة خطوات. إنّ الاطلاع على [تعليمات تثبيت خطوط TeX](https://tug.org/fonts/fontinstall.html) في توثيق Tex Live الرسمي يعدّ على الأرجح نقطة انطلاق جيدة.

الآتي `Dockerfile` يُظهر مثالًا على تثبيت خط TrueType فوق صورة Tex Live 2022 موجودة:

```dockerfile
FROM ghcr.io/ayaka-notes/texlive-full:2022.1

COPY ./myfonts/*.ttf /usr/share/fonts/truetype/myfont/

# إعادة بناء ذاكرة التخزين المؤقت لمعلومات الخطوط
RUN fc-cache
```

### تكوين Server Pro لاستخدام الصور الجديدة

استخدم الاسم `ghcr.io/ayaka-notes/texlive-full` وعلامة مخصّصة لبناء الصورة الجديدة، كما في:

```bash
docker build -t ghcr.io/ayaka-notes/texlive-full:2023.1-custom
```

يمكننا الآن تكوين Server Pro لاستخدام الصورة الجديدة `2023.1-custom` بتحديث `TEX_LIVE_DOCKER_IMAGE` و `ALL_TEX_LIVE_DOCKER_IMAGES` متغيرات البيئة:

{% code overflow="wrap" %}

```
TEX_LIVE_DOCKER_IMAGE: "ghcr.io/ayaka-notes/texlive-full:2023.1-custom"
ALL_TEX_LIVE_DOCKER_IMAGES: "ghcr.io/ayaka-notes/texlive-full:2023.1,ghcr.io/ayaka-notes/texlive-full:2023.1-custom"
```

{% endcode %}

في المثال أعلاه، تُضبط المشاريع الجديدة افتراضيًا لاستخدام الصورة الجديدة `2023.1-custom` ، بينما `2023.1` لا تزال متاحة عند الحاجة إليها.


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/ar/alsyanh/extending-tex-live.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.
