From ff401f156169f299222f67c4ea5c1fdcc1a0eb9a Mon Sep 17 00:00:00 2001 From: Sebastian Zug Date: Wed, 8 Jul 2026 15:14:31 +0200 Subject: [PATCH] Add LaTeX deps required by Manim (Tex/MathTex) texlive-latex-base alone lacks standalone.cls (Manim's default document class) and the dvisvgm binary (final DVI->SVG step), so any course rendering a Manim MathTex animation fails on the CodeRunner backend with 'standalone.cls not found' followed by 'No such file or directory: dvisvgm'. Add texlive-latex-extra, dvisvgm, texlive-fonts-recommended and texlive-science. Verified in a clean ubuntu:22.04 layer: standalone.cls, preview.sty, amsmath.sty and dvisvgm are all present, and Manim v0.19.1 renders the matrix-multiplication example to animation.webm end to end. Co-Authored-By: Claude Opus 4.8 (1M context) --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8c05083..91f3a11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,8 +55,17 @@ RUN apt-get install -y --no-install-recommends \ gnat-12 \ # Elixir erlang-dev elixir \ - # Latex + # Latex + # texlive-latex-base alone is not enough for Manim's Tex/MathTex: + # - texlive-latex-extra provides standalone.cls + preview.sty + # (Manim's default \documentclass[preview]{standalone}) + # - dvisvgm converts the compiled DVI/PDF to SVG (Manim calls it last) + # - fonts-recommended / science avoid follow-up font & amsmath errors texlive-latex-base \ + texlive-latex-extra \ + texlive-fonts-recommended \ + texlive-science \ + dvisvgm \ # COBOL gnucobol \ # Fortran