Install TeX Live in a sandbox

Install TeX Live (full) and latexmk where no TeX engine is present, disabling the firewalled launchpad PPAs that otherwise abort apt-get update. Idempotent: does nothing when pdflatex and memoize.sty are already present. Run it in the background. pdflatex unpacks early but is not usable until the post-install format build ends (kpsewhich memoize.sty returning a path is the ready signal).

Skills it satisfies

A skill states the capability; this Tool is one way to exercise it. Each skill’s declared input and output contract follows, where it has one.

latex-build-cache

LaTeX build performance. What works is the iterative loop: a static preflight with no TeX, Tool tex-install for an engine, Tool paper-feature-build for quick changed-chapter builds with latexdiff, then the full build. Both standard preamble/diagram caching mechanisms failed on this toolchain, so there is no cache; read the negative results before attempting one.

Source: folio-assistant-sci/skills/content/folio-paper-adapter/latex-build-cache.md.

Also satisfied by: latex-image, paper-feature-build.

The skill declares no I/O contract (schemas/skills/latex-build-cache/{input,output}.schema.json).

Inputs and outputs

Each port names a shared type by IRI, so two Tools for one skill can be checked for interchangeability.

porttyperequireddescriptionconstraint
outengineTextA pdflatex --version line on success. The installed packages are system-wide.string · A short single-line human string. Not admissible as a command-line argument.

Processes and tasks

No process step names a skill this Tool satisfies.

How it is deployed and reached

  • Command line. From the repository root: bash cat-harness-tools/scripts/install-tex.sh.
  • GitHub Actions. No workflow in this checkout runs its command.

As an API: its operation in the OpenAPI document and the MCP tool list of its layer.

installnone
runtimebash, apt-get, sudo
networkyes

When a host it reaches is refused:

host / errorremedy
archive.ubuntu.comnone: apt is the only source declared. The script already disables the launchpad PPAs, which answer 403 here.
when to choose it
whenA step needs to compile TeX (paper-feature-build’s PDFs, a full paper build) and pdflatex is not on PATH.
limitsDebian/Ubuntu with apt and sudo only. Installs system packages; it does not touch the repository.
costAbout 5 GB of disk and 10-20 minutes, once per container.

What it is made of

Linked data

The Tool is published as its own JSON-LD document at its IRI, https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/tex-install.jsonld, partOf its layer’s document. The node below is the definition this page was drawn from, and is embedded in the page as application/ld+json.

{
  "@context": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.context.jsonld",
  "@id": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/tex-install.jsonld",
  "@type": "https://litlfred.github.io/cat-harness/v0/ns/Tool",
  "partOf": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.jsonld",
  "name": "tex-install",
  "title": "Install TeX Live in a sandbox",
  "description": "Install TeX Live (full) and latexmk where no TeX engine is present, disabling the firewalled launchpad PPAs that otherwise abort `apt-get update`. Idempotent: does nothing when pdflatex and memoize.sty are already present. Run it in the background. pdflatex unpacks early but is not usable until the post-install format build ends (`kpsewhich memoize.sty` returning a path is the ready signal).",
  "install": {
    "none": true
  },
  "invoke": {
    "shell": "bash cat-harness-tools/scripts/install-tex.sh"
  },
  "io": {
    "inputs": [],
    "outputs": [
      {
        "name": "engine",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Text",
        "description": "A `pdflatex --version` line on success. The installed packages are system-wide."
      }
    ]
  },
  "satisfies": [
    "latex-build-cache"
  ],
  "requirements": {
    "runtime": [
      "bash",
      "apt-get",
      "sudo"
    ],
    "network": true
  },
  "remedies": [
    {
      "host": "archive.ubuntu.com",
      "none": "apt is the only source declared. The script already disables the launchpad PPAs, which answer 403 here."
    }
  ],
  "selection": {
    "when": "A step needs to compile TeX (`paper-feature-build`'s PDFs, a full paper build) and `pdflatex` is not on PATH.",
    "limits": "Debian/Ubuntu with apt and sudo only. Installs system packages; it does not touch the repository.",
    "cost": "About 5 GB of disk and 10-20 minutes, once per container."
  }
}

folio-assistant — code under the Apache License 2.0, documentation under CC BY 3.0. Generated schema and API references are rebuilt from source on every push to main.

deployed dev