pku-typst / pkuthss-typst Goto Github PK
View Code? Open in Web Editor NEWTypst template for dissertations in Peking University (PKU).
License: MIT License
Typst template for dissertations in Peking University (PKU).
License: MIT License
Typst version:
➜ pkuthss-typst-main typst -V
typst 0.10.0
Run the compile command on macOS Sonama
➜ pkuthss-typst-main typst --font-path fonts compile thesis.typ
error: unexpected argument '--font-path' found
tip: 'fonts --font-path' exists
Usage: typst [OPTIONS] <COMMAND>
For more information, try '--help'.
The command below works for me
typst compile thesis.typ --font-path fonts
Instead of
typst --font-path fonts compile thesis.typ
The blind version needs a separate cover page.
in line 636, "testbf" might not be support in typst, it should be changed to text(字号.初号)[*#cheader*]
in typst
https://github.com/lucifer1004/pkuthss-typst/blob/28b00d9cc36611c551090f2cde010c8a921c6767/template.typ#L636
复现步骤:
这应该是与partcounter
逻辑有关,缺少一级一下标题时无法正确处理第一个一级标题使其计数增加
一个用例:第一章为引言,不包含其他层级的标题时,则会出现此类bug
Currently, alwaysstartodd
only works in the prelude.
如题,当附录为空时,此处逻辑会进入 else
分支 https://github.com/lucifer1004/pkuthss-typst/blob/5009798cc83b597a2293b08a8ea733e54f2eb0c6/template.typ#L475-L479
然后(我也不理解为什么)会报一个错:array is empty
,指向 chaptercounter.at(loc).first()
,导致无法编译
奇怪的是同样的逻辑处理图片的序号就没问题,猜测可能是一个更上游的问题,不知道能不能绕过这个错误
好奇中,想用但怕踩坑。
使用内置的 figure + table 的形式能够正常引用,然而使用 booktab 则会使标签无法正确对应至表格内容,可以在 show ref 判断 el.func() 分支处加一个
else {
link(el_loc, [
#el.func()
#chinesenumbering(..counter(heading).at(el_loc), location: el_loc)
])
}
来验证上述问题,因此使用当前版本的模板会使 booktab 的引用变为空白
申请迁移至 P大 Typst 同好会(https://github.com/pku-typst)
即使用 Import Repository
不确定这样是否合适, 因为clone似乎不会保留issue和pr, 且 Typst 目前有较多更新, 有一些过时内容
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.