> 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/da/vedligeholdelse/extending-tex-live.md).

# Udvidelse af TeX Live

Det er muligt at udvide et eksisterende TeX Live-image ved at bruge en ny Dockerfile og konfigurere applikationen til at bruge det nye image.

Her giver vi nogle retningslinjer til at installere nye pakker eller skrifttyper, men konfigurationen af et brugerdefineret image er ikke omfattet af vores supportvilkår.

TeX Live-images opdateres sjældent. Vi anbefaler at genopbygge brugerdefinerede images, når du opgraderer Server Pro.

{% hint style="danger" %}
Følgende sektioner gælder for Server Pro og [Sandboxed Compiles](broken://pages/30933bee7ea5fa51dc5f72305601cdea74835710) kun.
{% endhint %}

### Installation og opdatering af nye pakker

Du kan bruge `tlmgr` kommandoer såsom `tlmgr install` og `tlmgr update` til at administrere TeX Live-pakker som i følgende eksempel:

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

RUN tlmgr update --force ebproof
```

### Brug af `tlmgr` i et ældre TeX Live-image

Som standard `tlmgr` henter ressourcer fra den nyeste TeX Live-udgivelse. Når du patcher et ældre TeX Live-image, skal downloadene skiftes til det respektive arkiv. Se listen på <https://www.tug.org/historic/> for spejle af arkiver.

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

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

RUN tlmgr update --force ebproof
```

### Installation af nye skrifttyper

Der er forskellige procedurer til at installere nye skrifttyper i en TeX Live-distribution, og installation af en brugerdefineret skrifttype kan kræve flere trin. At gennemse [vejledningen til installation af TeX-skrifttyper](https://tug.org/fonts/fontinstall.html) i den officielle TeX Live-dokumentation er sandsynligvis et godt sted at starte.

Følgende `Dockerfile` viser et eksempel på installation af en TrueType-skrifttype oven på et eksisterende TeX Live 2022-image:

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

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

# genopbyg skrifttypeinformationscache
RUN fc-cache
```

### Konfiguration af Server Pro til at bruge de nye images

Brug navnet `ghcr.io/ayaka-notes/texlive-full` og et brugerdefineret tag til at bygge det nye image, som i:

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

Vi kan nu konfigurere Server Pro til at bruge det nye `2023.1-custom` image ved at opdatere `TEX_LIVE_DOCKER_IMAGE` og `ALL_TEX_LIVE_DOCKER_IMAGES` miljøvariablerne:

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

I eksemplet ovenfor er nye projekter som standard sat til at bruge det nye `2023.1-custom` image, mens `2023.1` stadig er tilgængeligt, når det er nødvendigt.


---

# 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/da/vedligeholdelse/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.
