Skip to content

Commit c3cda1c

Browse files
committed
20250517
1 parent 340c6ea commit c3cda1c

File tree

2 files changed

+42
-26
lines changed

2 files changed

+42
-26
lines changed

_posts/2025-5-10-latexinstall.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: 在Termux上安装manim
3+
description: installing manim
4+
author: VeryrrDefine
5+
date: 2025-5-10 16:48:00 +0800
6+
categories: [python]
7+
tags: [python, math, manim]
8+
pin: true
9+
math: true
10+
mermaid: true
11+
---
12+
# 安装
13+
## 安装latex
14+
数学公式是manim所需要的,latex是用于渲染公式的。
15+
### 安装texlive
16+
安装texlive输入
17+
```shell
18+
apt i texlive-bin
19+
```
20+
其中的`texlive-bin`可以换成`texlive-installer`
21+
22+
包安装完后,输入`termux-install-tl`, 按C
23+
出现`start installation to hard disk`时按I(第8个英语字母)。
24+
25+
接下来耐心等待,可能需要花费一个小时以上。
26+
27+
安装完后,输入`termux-patch-texlive`, 修复部分脚本的`/tmp`
28+
29+
### 重建软连接
30+
如果输入`tex` 正常,而输入latex不行,需要重建软连接。
31+
```shell
32+
ln -s luatex dvilualatex
33+
ln -s pdftex latex
34+
ln -s luahbtex lualatex
35+
ln -s pdftex pdflatex
36+
37+
```
38+
39+
## manim
40+
```shell
41+
pip install manim
42+
```

_posts/2025-5-8-666inhospitalnow.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)