在 windows 上,可以配置 TeXlive + tex studio,TeXstudio 类似集成开发环境,是一个功能强大的 LaTeX 编辑器,就是颜值有点丑。

在 macos 上,可以配置 texpad + mathpad,texpad 是一款颜值高的 LaTeX 编辑器,mathpad 写公式方便。macos 使用 texpad 还需要下载 MacTeX,MacTeX is a package which installs TeX Live on the Macintosh.

通用

  1. overleaf 在线 优点:1. 即开即用 3. 可以网上共享,修改 缺点:编译时长有限制,高质量图片放多了,编译不出来需要开会员。

  2. [Recommend]使用 vscode + latex workshop vscode 配置参考: 有哪些好的 LaTeX 编辑器? - 黄盼的回答 - 知乎 利用 VSCode 构建简单的>\(\LaTeX\)<编辑器 - 理想化盛夏计划

本人主要采用 vscode + latex workshop, 配置如下,一般直接下载 texlive,然后安装 latex workshop 插件,把配置复制到 vscode 的 setting 中即可。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.showContextMenu": true,
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.message.error.show": true,
"latex-workshop.message.warning.show": false,
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOC%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": ["%DOCFILE%"]
}
],
"latex-workshop.latex.recipes": [
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": ["pdflatex", "bibtex", "pdflatex", "pdflatex"]
},
{
"name": "XeLaTeX",
"tools": ["xelatex"]
},
{
"name": "PDFLaTeX",
"tools": ["pdflatex"]
},
{
"name": "BibTeX",
"tools": ["bibtex"]
},
{
"name": "LaTeXmk",
"tools": ["latexmk"]
},
{
"name": "xelatex -> bibtex -> xelatex*2",
"tools": ["xelatex", "bibtex", "xelatex", "xelatex"]
}
],

"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk"
],
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.latex.recipe.default": "lastUsed",
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.latexindent.path": "/Library/TeX/texbin/latexindent",
"[latex]": {
"editor.formatOnSave": false
},