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

# TeX Live erweitern

Es ist möglich, ein vorhandenes TeX Live-Image mithilfe einer neuen Dockerfile zu erweitern und die Anwendung so zu konfigurieren, dass sie das neue Image verwendet.

Hier bieten wir einige Richtlinien zur Installation neuer Pakete oder Schriftarten an, aber die Konfiguration eines benutzerdefinierten Images ist nicht durch unsere Supportbedingungen abgedeckt.

Die TeX Live-Images werden nur selten aktualisiert. Wir empfehlen, benutzerdefinierte Images bei einem Upgrade von Server Pro neu zu erstellen.

{% hint style="danger" %}
Die folgenden Abschnitte gelten für Server Pro und [Sandboxed Compiles](broken://pages/51ec3aa029adb0a5f1a165663b1222784c92f886) nur.
{% endhint %}

### Installieren und Aktualisieren neuer Pakete

Sie können `tlmgr` Befehle wie `tlmgr install` und `tlmgr update` verwenden, um TeX Live-Pakete wie im folgenden Beispiel zu verwalten:

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

RUN tlmgr update --force ebproof
```

### Verwenden von `tlmgr` in einem älteren TeX Live-Image

Standardmäßig `tlmgr` lädt Ressourcen aus der neuesten TeX Live-Version herunter. Beim Patchen eines älteren TeX Live-Images müssen die Downloads auf das jeweilige Archiv umgestellt werden. Siehe die Liste unter <https://www.tug.org/historic/> für Spiegelserver der Archive.

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

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

RUN tlmgr update --force ebproof
```

### Neue Schriftarten installieren

Es gibt verschiedene Verfahren, um neue Schriftarten in einer TeX Live-Distribution zu installieren, und die Installation einer benutzerdefinierten Schriftart kann mehrere Schritte erfordern. Das Prüfen der [Anweisungen zur Installation von TeX-Schriftarten](https://tug.org/fonts/fontinstall.html) in der offiziellen TeX Live-Dokumentation ist wahrscheinlich ein guter Ausgangspunkt.

Das folgende `Dockerfile` zeigt ein Beispiel für die Installation einer TrueType-Schriftart über einem vorhandenen TeX Live 2022-Image:

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

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

# Schriftarten-Informationscache neu erstellen
RUN fc-cache
```

### Server Pro so konfigurieren, dass die neuen Images verwendet werden

Verwenden Sie den Namen `ghcr.io/ayaka-notes/texlive-full` und ein benutzerdefiniertes Tag, um das neue Image zu erstellen, wie in:

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

Wir können Server Pro nun so konfigurieren, dass das neue `2023.1-custom` Image verwendet wird, indem die `TEX_LIVE_DOCKER_IMAGE` und `ALL_TEX_LIVE_DOCKER_IMAGES` Umgebungsvariablen aktualisiert werden:

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

Im obigen Beispiel werden neue Projekte standardmäßig so eingestellt, dass sie das neue `2023.1-custom` Image verwenden, während `2023.1` weiterhin verfügbar ist, wenn es benötigt wird.


---

# 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/on-premises/de/wartung/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.
