jeertmans / manim-slides-starter

Stater template for Manim Slides presentations and GitHub Pages deployment
http://eertmans.be/manim-slides-starter/
MIT License
2 stars 1 forks source link

Plenty of Tex issues when using the template. #3

Open semikernel opened 2 days ago

semikernel commented 2 days ago

I kept receiving errors when I used the template to render the three Scene: Introduction WithTeX and Outro. These error looks like these lines doesn't work. The errors are like these:

  LaTeX Error: File  standalone.cls' not found. 

This is the first error I got. Then I install texlive-latex-extra and copy standalone.cls file locally to fix it.

 - name: Install TeX Live and extra packages
     run: |
        sudo apt-get update
        sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended
- name: Copy standalone.cls
      run: |
        cp tex/standalone.cls /usr/share/texlive/texmf-dist/tex/latex/base/standalone.cls

Then I got another error:

  LaTeX Error: File    preview.sty' not found.  

I copied the file preview.sty like what I done with standalone. It looks like:

 - name: Create directory for preview.sty
      run: |
        sudo mkdir -p /usr/share/texlive/texmf-dist/tex/latex/preview
- name: Copy preview.sty
      run: |
        sudo cp preview.sty /usr/share/texlive/texmf-dist/tex/latex/preview/preview.sty

After that, I got another error:

ValueError: Your installation does not support converting .dvi files to SVG. 
Consider updating dvisvgm to at least version 2.4. If this does not solve the 
problem, please refer to our troubleshooting guide at: 
https://docs.manim.community/en/stable/faq/general.html#my-installation-does-not
-support-converting-pdf-to-svg-help

Then I try to install dvisvgm:

- name: Install dvisvgm from source
      run: |
        sudo apt-get install -y cmake gcc g++ libkpathsea-dev libpotrace-dev
        wget http://dvisvgm.de/uploads/tx_sfbooks/dvisvgm-2.4.tar.gz
        tar -xzf dvisvgm-2.4.tar.gz
        cd dvisvgm-2.4
        ./configure
        make
        sudo make install
        cd ..
        rm -rf dvisvgm-2.4 dvisvgm-2.4.tar.gz

However, it can't install dvisvgm:

Connecting to dvisvgm.de (dvisvgm.de)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-07-02 04:05:59 ERROR 404: Not Found.
Error: Process completed with exit code 8.

I wanted to deploy the manim-slides-starter in my own repo. Luckily, if I only render the Introduction slide, it work. Could you please indicate the possible solution to configure the Tex correctly? Thx a lot! The repo is here: link

jeertmans commented 2 days ago

Hello! This is weird, but I think you should not need to install the LaTeX packages other than with the action. And what is weird is that standalone should be installed. I won’t have access to a computer until mid of July, but can you reset the workflow file to match that of this repository? Then send me the workflow run log link :)

semikernel commented 2 days ago

Hello! This is weird, but I think you should not need to install the LaTeX packages other than with the action. And what is weird is that standalone should be installed. I won’t have access to a computer until mid of July, but can you reset the workflow file to match that of this repository? Then send me the workflow run log link :)

This the link to the log after the ms replaced by a list of packages but no other more changes This is the link to the workflow file it used This is the link to the slides.py By the way, I think it's more convenient to render the scenes locally and then update them to the github-pages. Thank you again for your guidance! (ps: I found that the repo name must be ___.github.io so that github pages will work well, the suffix is necessary.)