Skip to content

Commit 810c8d0

Browse files
committed
readme_notes
1 parent ebaf538 commit 810c8d0

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

tpyst_notes_readme.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,51 @@
1-
# 安装
1+
2+
# 目前方案
3+
4+
本地编译notes/main.typ的pdf搬运至static,并提交bib,typ,pdf的修改至github,触发github部署服务器设置(static->public)
5+
6+
## 安装
27
安装Tpyst CLI实现本地编译pdf
38

49
winget install --id Typst.Typst
510

611
默认路径保存即可(加环境变量path没用,还是报错,不知何故)
712

8-
# 待实现
13+
## 待实现
14+
915
自动追踪 main.typ,自动保存后(10分钟一次)就渲染pdf上传至github
1016

11-
# 目前手动上传脚本
17+
## 目前手动上传脚本
1218

13-
update-notes.sh
19+
./update-notes.sh
1420

15-
本地编译notes/main.typ的pdf搬运至static,并提交bib,typ,pdf的修改至github,触发github部署服务器设置(static->public)
21+
## 文件存储问题
22+
23+
每天上传一次平均3MB PDF,333天后就会触顶1GB服务器上限,git变得臃肿,git应该只追踪文本文件typ,现行方案每次上传pdf都会保存副本,占用空间。
24+
25+
Git LFS 将PDF和typ分开,LFS专门存储PDF
26+
27+
# 最优方案
28+
29+
还是应该渲染为html,存储问题就可以一举告破,但是现在渲染html失败。而且目前typst对html的支持尚不够强大https://typst.app/docs/reference/html/
30+
31+
[(GPT 记录)](https://chatgpt.com/share/691578fa-05a0-8006-a32c-b99c6dc476c7)
32+
33+
34+
似乎和现在用的typst模板没有对html的设置有关系。
35+
36+
## typst模板
37+
38+
39+
期望模板:数学友好,定义定理环境ok,引用格式 作者年份 等可自定义
40+
41+
当前模板 clean-math-paper:0.2.4,
42+
定义定理(标题)未实现,引用格式 作者年份未实现。
43+
44+
## 为什么不用RMarkdown/Quarto
45+
46+
Typst数学支持更友好。
47+
48+
## 仓库大小
1649

17-
./update-notes.sh
50+
git count-objects -vH
51+
查看占用空间

0 commit comments

Comments
 (0)