首先需要安装Tex
Windows 用户在文件夹空白处按Shift+鼠标右键
,点击“在此处打开命令行窗口”):
xetex thuthesis.ins
即可得到 thuthesis.cls
等模板文件。
之后在根目录运行:
latexmk -xelatex --shell-escape main.tex
即可编译得到PDF文件。
运行:
latexmk -c
即可清除编译附加文件。大写C清除PDF等输出文件。
https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_editing-hacks
表格对齐自动换行
using the ALT+Z keyboard shortcut to Toggle Word Wrap
Ctrl+F2 Select all occurrences of current word
Ctrl+Shift+L Select all occurrences of current selection
Alt+Click Insert cursor
To set cursors above or below the current position use: Keyboard Shortcut: Ctrl+Alt+Up or Ctrl+Alt+Down
You can select blocks of text by holding Shift+Alt (Shift+Option on macOS) while you drag your mouse. A separate cursor will be added to the end of each selected line.
My VSCode Settings
{
"window.zoomLevel": 0,
"git.autofetch": true,
"latex-workshop.latex.autoBuild.run": "never",
"editor.fontSize": 18,
"editor.wordWrap": "on",
"arduino.path": "C:\\Program Files (x86)\\Arduino"
}
The ~
is a non-breaking space, (not really a symbol) so when you write in your text Table~\ref{mytable}
it ensures that the Table
part is kept together with the number. This is generally considered to be good for readability.
Latex源码里面注意不要出现下划线,短横线可以。可以用\_做为下划线,\textbackslash{}作为反斜杠。\\是换行。
PDF file containing 3D object is not included correctly with \includegraphics
https://www.ctan.org/pkg/media9
PDF转Excel:
Latex表格生成
截图公式转Latex
ThuThesis is an abbreviation of Tsinghua University Thesis LaTeX Template.
This package establishes a simple and easy-to-use LaTeX template for Tsinghua dissertations, including general undergraduate research papers, masters theses, doctoral theses, doctoral dissertations, and post-doc reports. Additional support for other formats (what else is there?) will be added continuously. An English translation of this README follows the Chinese below.
ThuThesis为 Tsinghua University Thesis LaTeX Template之缩写。
此宏包旨在建立一个简单易用的清华大学学位论文LaTeX模板,包括本科综合论文训练、硕士论文、博士论文、博士哲学论文以及博士后出站报告。现在支持本科、硕士、博士论文、博士后出站报告格式,对其它格式(还有么?)的支持会陆续加入。
请下载模板,里面包括具体使用说明以及示例文档:
- 模板使用说明 (thuthesis.pdf)
- 示例文档 (main.pdf)
通过 TeX 发行版工具自动从 CTAN 更新。
从 GitHub 下载放入论文目录,执行命令(Windows 用户在文件夹空白处按Shift+鼠标右键
,点击“在此处打开命令行窗口”):
xetex thuthesis.ins
即可得到 thuthesis.cls
等模板文件。
按推荐顺序排序:
- 先到 FAQ 看看常见问题
- Github Issues
- TeX@newsmth
- ThuThesis@Google Groups
make [{all|thesis|shuji|doc|clean|cleanall|distclean}]
make all
等于make thesis && make shuji && make doc
;make cls
生成模板文件;make thesis
生成论文 main.pdf;make shuji
生成书脊 shuji.pdf;make doc
生成使用说明书 thuthesis.pdf;make clean
删除示例文件的中间文件(不含 main.pdf);make cleanall
删除示例文件的中间文件和 main.pdf;make distclean
删除示例文件和模板的所有中间文件和 PDF。