> 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/on-premises-cs/udrzba/extending-tex-live.md).

# Rozšíření TeX Live

Existující obraz TeX Live je možné rozšířit pomocí nového Dockerfile a nakonfigurovat aplikaci, aby používala nový obraz.

Zde nabízíme několik pokynů k instalaci nových balíčků nebo písem, ale konfigurace vlastního obrazu není zahrnuta v našich podmínkách podpory.

Obrazy TeX Live dostávají aktualizace jen zřídka. Při upgradu Server Pro doporučujeme znovu sestavit vlastní obrazy.

{% hint style="danger" %}
Následující sekce se vztahují na Server Pro a [Sandboxované kompilace](broken://pages/229c5346fd6e216f9360be99db6cd92dc3e42d2e) pouze.
{% endhint %}

### Instalace a aktualizace nových balíčků

Můžete použít `tlmgr` příkazy jako `tlmgr install` a `tlmgr update` k správě balíčků TeX Live, jak je uvedeno v následujícím příkladu:

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

RUN tlmgr update --force ebproof
```

### Použití `tlmgr` ve starším obrazu TeX Live

Ve výchozím nastavení `tlmgr` stahuje zdroje z nejnovější verze TeX Live. Při úpravě staršího obrazu TeX Live je třeba stahování přepnout na příslušný archiv. Seznam najdete na <https://www.tug.org/historic/> pro zrcadla archivů.

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

RUN tlmgr option repository <MIRROR>/systems/texlive/<YEAR>/tlnet-final
# např. RUN tlmgr option repository ftp://tug.org/historic/systems/texlive/2022/tlnet-final

RUN tlmgr update --force ebproof
```

### Instalace nových písem

Pro instalaci nových písem v distribuci TeX Live existují různé postupy a instalace vlastního písma může vyžadovat několik kroků. Zkontrolování [pokynů k instalaci písem TeX](https://tug.org/fonts/fontinstall.html) v oficiální dokumentaci TeX Live je pravděpodobně dobrý výchozí bod.

Následující `Dockerfile` ukazuje příklad instalace písma TrueType nad existující obraz TeX Live 2022:

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

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

# znovu sestavit mezipaměť informací o písmech
RUN fc-cache
```

### Konfigurace Server Pro pro použití nových obrazů

Použijte název `ghcr.io/ayaka-notes/texlive-full` a vlastní tag k sestavení nového obrazu, jako v:

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

Nyní můžeme nakonfigurovat Server Pro, aby používal nový `2023.1-custom` obraz aktualizací `TEX_LIVE_DOCKER_IMAGE` a `ALL_TEX_LIVE_DOCKER_IMAGES` proměnných prostředí:

{% 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 %}

V uvedeném příkladu jsou nové projekty ve výchozím nastavení nastaveny tak, aby používaly nový `2023.1-custom` obraz, zatímco `2023.1` je stále k dispozici, když je potřeba.


---

# 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/on-premises-cs/udrzba/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.
