Skip to content

Commit

Permalink
chore: add txs magic comments [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Oct 21, 2024
1 parent ee1fdab commit aa97334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SJTUThesis 示例模板

[![Build Status](https://github.com/sjtug/SJTUThesis/actions/workflows/build.yml/badge.svg)](https://github.com/sjtug/SJTUThesis/actions)
[![SJTUTeX](https://img.shields.io/github/v/release/sjtug/SJTUTeX?label=SJTUTeX)](https://github.com/sjtug/SJTUTeX)
[![SJTUTeX](https://img.shields.io/github/v/release/sjtug/SJTUTeX?label=SJTUTeX)](https://github.com/sjtug/SJTUTeX)
[![Join Discussions](https://img.shields.io/github/discussions/sjtug/SJTUThesis)](https://github.com/sjtug/SJTUThesis/discussions)

## 欢迎使用上海交通大学论文模板
Expand Down Expand Up @@ -43,24 +43,6 @@ git clone https://mirror.sjtu.edu.cn/git/SJTUThesis.git/

安装 “LaTeX Workshop” 后,选择 `Recipe: latexmk (xelatex)` 编译即可,并在设置中将 `latex-workshop.latex.recipe.default` 改为 `lastUsed` 以一直使用该选项编译。

### TeXStudio 用户

在TexStudio的菜单栏中,Options-Configure TeXstudio界面中,修改以下两处:

Commands-Latexmk一项修改为`latexmk -silent -synctex=1 -xelatex %`

Build-Default Compiler一项修改为`txs:///latexmk`

<details>

<summary>展开配置</summary>

<img src="https://user-images.githubusercontent.com/84025388/142163308-3d31f905-af78-40cb-bff1-851cdab04c87.png" width=500px/>

<img src="https://user-images.githubusercontent.com/84025388/142163346-63ec7b7e-932f-44c5-90c4-3b35e435545d.png" width=500px/>

</details>

### Linux 与 macOS 用户

推荐使用模版提供的 `Makefile` 进行编译,具体来说我们提供了如下几条可用的命令:
Expand Down
2 changes: 2 additions & 0 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
% !TeX encoding = UTF-8
% !TeX TXS-program:compile = txs:///latexmk/{-pdf} -xelatex
% !TeX TXS-program:recompile-bibliography = txs:///latexmk/{} -v

% 载入 SJTUThesis 模版
\documentclass[type=master]{sjtuthesis}
Expand Down

0 comments on commit aa97334

Please sign in to comment.