Debian Codegraph @

texmf-dist/doc/latex/thuthesis/README.md

raw
1 # ThuThesis
2
3 [![GitHub Actions](https://github.com/tuna/thuthesis/actions/workflows/test.yml/badge.svg)](https://github.com/tuna/thuthesis/actions/workflows/test.yml)
4 [![GitHub downloads](https://img.shields.io/github/downloads/tuna/thuthesis/total)](https://github.com/tuna/thuthesis/releases)
5 [![GitHub commits](https://img.shields.io/github/commits-since/tuna/thuthesis/latest)](https://github.com/tuna/thuthesis/commits/master)
6 [![GitHub release](https://img.shields.io/github/v/release/tuna/thuthesis)](https://github.com/tuna/thuthesis/releases/latest)
7 [![CTAN](https://img.shields.io/ctan/v/thuthesis)](https://www.ctan.org/pkg/thuthesis)
8
9 > Scroll down for the English version of README.
10
11 **ThuThesis** 是 **T**sing**h**ua **U**niversity **Thesis** LaTeX Template 的缩写。
12
13 此宏包旨在建立一个简单易用的清华大学学位论文 LaTeX 模板,包括本科综合论文训练、硕士论文、博士论文以及博士后出站报告。
14
15 **由于模板升级频繁,在开始使用和提问前,请确保您已经认真完整地阅读了使用说明文档和示例代码。**
16
17 ## 版权
18
19 本项目采用 [LaTeX项目公共许可证 v1.3c](https://www.latex-project.org/lppl/lppl-1-3c/) 授权,任何违反该许可证使用 ThuThesis 的行为将被记录在 [耻辱柱](https://github.com/tuna/thuthesis/issues/754) 页面中,以示警告。
20
21 本项目分发的 `thu-fig-logo.pdf` 与 `thu-text-logo.pdf` 为载有清华大学校徽与校名的图形文件,用于制作本科生综合论文训练封面。这些图形从 [清华大学视觉形象系统](https://vi.tsinghua.edu.cn/) 获取,除裁剪周边空白外,项目维护者未进行任何其他修改。
22 请注意:相关图形与文字均是清华大学的注册商标,除此模板外,请勿用于任何其他用途。
23
24 ## 下载
25
26 推荐下载**发布版**模板,里面包括具体使用说明以及示例文档:
27
28 * 模板使用说明(`thuthesis.pdf`)
29 * 示例文档(`thuthesis-example.pdf`)
30
31 在开始书写前,建议将 `thuthesis-example.tex` 复制或重命名为其他有意义的名称。
32
33 ### 下载途径
34
35 * 发布版:
36 * 仅下载:
37 * [CTAN](https://www.ctan.org/pkg/thuthesis):可能滞后正式发布少许时间。
38 * [GitHub Releases](https://github.com/tuna/thuthesis/releases):最新版的及时发布途径。
39 * [TUNA 镜像站](https://mirrors.tuna.tsinghua.edu.cn/github-release/tuna/thuthesis/):GitHub Releases 的镜像。
40 * 在线编辑:
41 * [TeXPage 模板](https://www.texpage.com/template/72b580ca-51fa-4ecc-82b3-0509bc1d6a07)(提供 Windows 中文字体)
42 * [Overleaf 模板](https://www.overleaf.com/latex/templates/thuthesis-tsinghua-university-thesis-latex-template/cfwgcxtvkbsx) ([Overleaf 降低了免费账户的编译时间](https://www.overleaf.com/blog/changes-to-free-compile-timeouts-and-servers), 使用本模板的项目会因为规模较大[容易超时](https://github.com/tuna/thuthesis/issues/984))
43 * 开发版:[GitHub](https://github.com/tuna/thuthesis)
44
45 ### 注意事项
46
47 * GitHub 仓库的开发版仅供开发者与需要尚未发布的功能的有经验的 TeX 用户使用,不提供任何保证。
48 * **任何在其他途径分发的 ThuThesis(包含其变体或衍生物)均不是官方版本,请谨慎使用。**
49
50 ## 更新日志
51
52 每个版本的详细更新日志,请见 [CHANGELOG.md](CHANGELOG.md)。使用文档中也包含了这一内容。
53
54 ## 升级
55
56 ### 自动更新
57
58 通过 TeX 发行版工具(如 `tlmgr`)自动从 [CTAN](https://www.ctan.org/pkg/thuthesis) 更新。
59
60 ### 手动更新
61
62 #### 发布版
63
64 下载发布版的 zip 包,使用其中的 `thuthesis.cls` 等文件覆盖原有的即可,无须额外操作。
65
66 #### 开发版
67
68 有两种获得开发版编译结果的方式:
69
70 1. 从 GitHub 上对应 commit 的名为 `Test` 的 workflow 中下载 `thuthesis-snapshot-release` 并解压,其中的 `dist` 文件夹包含了编译后的开发版代码。
71 2. 从 GitHub clone 项目源码或者下载源码 zip 包,执行 `xetex thuthesis.ins`。
72
73 ## 提问
74
75 按推荐顺序排序:
76
77 * 先到 [FAQ](https://github.com/tuna/thuthesis/wiki/FAQ) 看看常见问题;
78 * 在 [GitHub Discussions](https://github.com/tuna/thuthesis/discussions) 搜索已有讨论,如果没有则提出新问题;
79 * 如果认为模板存在问题,可在 Issues 中使用相应的模板提出。
80 * 入门问题可以参考[wiki/新手指南](https://github.com/tuna/thuthesis/wiki/新手指南)学习
81
82 ## Makefile的用法
83
84 ```shell
85 make [{all|thesis|doc|clean|cleanall|distclean}]
86 ```
87
88 ### 目标
89 * `make thesis` 生成论文 `thuthesis-example.pdf`;
90 * `make doc` 生成模板使用说明书 `thuthesis.pdf`;
91 * `make clean` 删除示例文件的中间文件(不含 `thuthesis-example.pdf`);
92 * `make cleanall` 删除示例文件的中间文件和 `thuthesis-example.pdf`;
93 * `make distclean` 删除示例文件和模板的所有中间文件和 PDF。
94
95 ---
96
97 # ThuThesis
98
99 **ThuThesis** is an abbreviation of **T**sing**h**ua **U**niversity **Thesis** LaTeX Template.
100
101 This package establishes a simple and easy-to-use LaTeX template for Tsinghua dissertations, including general undergraduate research papers, master's theses, doctoral dissertations, and postdoctoral reports.
102
103 **This template is subject to frequent changes. Please make sure you have read the usage documentation and example code completely and carefully before using and asking questions.**
104
105 ## Copyright
106
107 This project is licensed under the [The LaTeX project public license v1.3c](https://www.latex-project.org/lppl/lppl-1-3c/). Any use of ThuThesis that violates this license will be recorded in the [Hall of Shame](https://github.com/tuna/thuthesis/issues/754).
108
109 The distributed `thu-fig-logo.pdf` and `thu-text-logo.pdf` files in this project contain the graphical emblem and name of Tsinghua University, and are used for creating undergraduate thesis covers only.
110 These graphics were obtained from the [Tsinghua University Visual Identity System](https://vi.tsinghua.edu.cn). No modifications were made by the project maintainers except cropping the white space.
111 Note: Both the relevant graphics and text are registered trademarks of Tsinghua University. You must not use them for any other purposes except within this template.
112
113 ## Downloads
114
115 **Published versions** are recommended. Specific usage documentation and examples can be found in the archive. At present, these documents are **only available in Chinese**:
116
117 * Template usage documentation (`thuthesis.pdf`)
118 * Template example (`thuthesis-example.pdf`)
119
120 Before you start writing, it is recommended to copy or rename `thuthesis-example.tex` to another meaningful name.
121
122 ### Download Methods
123
124 * Published versions:
125 * Download only:
126 * [CTAN](https://www.ctan.org/pkg/thuthesis)
127 * [GitHub Releases](https://github.com/tuna/thuthesis/releases)
128 * [TUNA Mirrors](https://mirrors.tuna.tsinghua.edu.cn/github-release/tuna/thuthesis/): mirror of GitHub Releases
129 * Online editor:
130 * [TeXPage template](https://www.texpage.com/template/72b580ca-51fa-4ecc-82b3-0509bc1d6a07) (providing Chinese fonts of Windows)
131 * [Overleaf template](https://www.overleaf.com/latex/templates/thuthesis-tsinghua-university-thesis-latex-template/cfwgcxtvkbsx) ([free compile time was reduced](https://www.overleaf.com/blog/changes-to-free-compile-timeouts-and-servers); projects using this template will be relatively large, and thus [likely to time-out](https://github.com/tuna/thuthesis/issues/984))
132 * Developer versions: [GitHub](https://github.com/tuna/thuthesis)
133
134 ### Notes
135
136 * The development version in the GitHub repository is intended for developers and experienced TeX users who require unreleased features, and no guarantees are provided.
137 * **ThuThesis (including its variants / derivatives) distributed in any other way is NOT an official version. Use at your own risk.**
138
139 ## Changelog
140
141 See [CHANGELOG.md](CHANGELOG.md) for detailed changes in each release. They are also included in the usage documentation.
142
143 ## Updates
144
145 ### Automatic
146
147 Get the most up-to-date published version with your TeX distribution from [CTAN](https://www.ctan.org/pkg/thuthesis).
148
149 ### Manual
150
151 #### Published versions
152
153 Download the published zip files, extract `thuthesis.cls` and other files (if needed) and override the existing ones in your thesis.
154
155 #### Development versions
156
157 There are two ways to obtain the compiled development version:
158
159 1. Download the `thuthesis-snapshot-release` from the `Test` workflow of the corresponding commit on GitHub and extract it. The `dist` folder contains the compiled template of development version.
160 2. Clone the project source code from GitHub or download the source code tarball, and run `xetex thuthesis.ins`.
161
162 ## Reporting Issues
163
164 Please follow the procedure below:
165
166 * Check the [FAQ](https://github.com/tuna/thuthesis/wiki/FAQ).
167 * Search [GitHub Discussions](https://github.com/tuna/thuthesis/discussions) and create a new discussion if none exists.
168 * Create an issue (with specified template) if you believe there is a bug.
169 * Beginners may go to [wiki/新手指南](https://github.com/tuna/thuthesis/wiki/新手指南) for basic information.
170
171 ## Makefile Usage
172
173 ```shell
174 make [{all|thesis|doc|clean|cleanall|distclean}]
175 ```
176
177 ### Targets
178 * `make all` same as `make thesis`;
179 * `make thesis` generate thesis `thuthesis-example.pdf`;
180 * `make doc` generate template documentation `thuthesis.pdf`;
181 * `make clean` delete all intermediate files of the example (excluding `thuthesis-example.pdf`);
182 * `make cleanall` delete all intermediate files of the example and `thuthesis-example.pdf`;
183 * `make distclean` delete all examples' and templates' files and PDFs.