Tr0py / NKU-thesis-template-2020

南开大学毕业论文模板 Nankai University Thesis Template https://tr0py.github.io/NKU-thesis-template-2020/
https://tr0py.github.io/NKU-thesis-template-2020/
89 stars 14 forks source link

将源码和文档编写在同一个dtx文件中 #37

Closed aqni closed 1 year ago

aqni commented 1 year ago

Discussed in https://github.com/Tr0py/NKU-thesis-template-2020/discussions/33

Originally posted by **aqni** May 16, 2023 我发现直接编写sty文件或cls文件的模板较少,大部分模板将模板和文档一起编写在一个dtx文件中(类似于c语言中常见的内嵌文档Doxygen),例如: - [pkuthss](https://github.com/CasperVector/pkuthss) - [thuthesis](https://github.com/tuna/thuthesis) - [fduthesis](https://github.com/stone-zeng/fduthesis) 一些参考资料: - https://texfaq.org/FAQ-dtx - http://mirrors.ctan.org/info/dtxtut/dtxtut.pdf - http://mirrors.ctan.org/macros/latex/base/ltxdoc.pdf - http://mirrors.ctan.org/macros/latex/base/docstrip.pdf - https://tex.stackexchange.com/questions/25116/what-is-good-practice-when-preparing-a-package-for-ctan 我先完成内容上的重构和校对,有时间再这样的完成项目结构上的重构。
aqni commented 1 year ago

目前在 dev-dtx 初始化了一个骨架

使用方法

xelatex nkuthesis.dtx

会生成两个文件

aqni commented 1 year ago

不知道 github 能不能自动在 release 中生成 cls和pdf