> 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/fi/yllapito/extending-tex-live.md).

# TeX Liven laajentaminen

On mahdollista laajentaa olemassa olevaa TeX Live -kuvaa käyttämällä uutta Dockerfile-tiedostoa ja määrittää sovellus käyttämään uutta kuvaa.

Tässä tarjoamme joitakin ohjeita uusien pakettien tai fonttien asentamiseen, mutta mukautetun kuvan määrittäminen ei kuulu tukiehtojemme piiriin.

TeX Live -kuviin tulee päivityksiä harvoin. Suosittelemme rakentamaan mukautetut kuvat uudelleen Server Prota päivitettäessä.

{% hint style="danger" %}
Seuraavat osiot koskevat Server Prota ja [Eristetyt käännökset](broken://pages/d2b36fccb235d9f16774964c517c180d49570220) vain.
{% endhint %}

### Uusien pakettien asentaminen ja päivittäminen

Voit käyttää `tlmgr` komentoja, kuten `tlmgr install` ja `tlmgr update` TeX Live -pakettien hallintaan seuraavan esimerkin tapaan:

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

RUN tlmgr update --force ebproof
```

### Käyttäen `tlmgr` vanhemmassa TeX Live -kuvassa

Oletusarvoisesti `tlmgr` lataa resurssit uusimmasta TeX Live -julkaisusta. Kun vanhaa TeX Live -kuvaa paikataan, lataukset on vaihdettava vastaavaan arkistoon. Katso luettelo kohdasta <https://www.tug.org/historic/> arkistojen peilejä varten.

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

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

RUN tlmgr update --force ebproof
```

### Uusien fonttien asentaminen

Tex Live -jakeluun on erilaisia tapoja asentaa uusia fontteja, ja mukautetun fontin asentaminen saattaa vaatia useita vaiheita. Kohdan [ohjeet TeX-fonttien asentamiseen](https://tug.org/fonts/fontinstall.html) virallisessa Tex Live -dokumentaatiossa tarkistaminen on luultavasti hyvä lähtökohta.

Seuraava `Dockerfile` näyttää esimerkin TrueType-fontin asentamisesta olemassa olevan Tex Live 2022 -kuvan päälle:

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

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

# rakenna fonttitietojen välimuisti uudelleen
RUN fc-cache
```

### Server Pron määrittäminen käyttämään uusia kuvia

Käytä nimeä `ghcr.io/ayaka-notes/texlive-full` ja mukautettua tunnistetta uuden kuvan rakentamiseen, kuten:

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

Voimme nyt määrittää Server Pron käyttämään uutta `2023.1-custom` kuvaa päivittämällä `TEX_LIVE_DOCKER_IMAGE` ja `ALL_TEX_LIVE_DOCKER_IMAGES` ympäristömuuttujat:

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

Yllä olevassa esimerkissä uudet projektit määritetään oletusarvoisesti käyttämään uutta `2023.1-custom` kuvaa, kun taas `2023.1` on edelleen käytettävissä silloin kun sitä tarvitaan.


---

# 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/fi/yllapito/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.
