From 77ff84cd79c30ccc001e1ae43968b197f61d5992 Mon Sep 17 00:00:00 2001 From: liuxinwei Date: Wed, 18 Dec 2024 23:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20do?= =?UTF-8?q?c/concepts/linear-algebra/vector-space.ipynb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 6 ++++ .../linear-algebra/vector-space.ipynb | 34 +++++++++++-------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 62cf032..d0a4e68 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -36,6 +36,12 @@ jobs: python-version: "3.12" cache: "pip" cache-dependency-path: "pyproject.toml" + - name: Setup TeXLive + uses: teatimeguest/setup-texlive-action@v3 + with: + version: 2024 + packages: texlive-latex-base texlive-fonts-recommended texlive texlive-latex-extra texlive-fonts-extra \ + texlive-latex-recommended texlive-science - name: 🔧 Build HTML run: | sudo apt-get install graphviz diff --git a/doc/concepts/linear-algebra/vector-space.ipynb b/doc/concepts/linear-algebra/vector-space.ipynb index 63e7f74..8ab0c28 100644 --- a/doc/concepts/linear-algebra/vector-space.ipynb +++ b/doc/concepts/linear-algebra/vector-space.ipynb @@ -17,14 +17,11 @@ "metadata": {}, "outputs": [], "source": [ - "from manim import *" + "from manim import *\n", + "config.media_width = \"25%\"\n", + "config.media_embed = True" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [] - }, { "cell_type": "code", "execution_count": 3, @@ -49,14 +46,14 @@ "name": "stderr", "output_type": "stream", "text": [ - " \r" + " \r" ] }, { "data": { "text/html": [ - "