-
Notifications
You must be signed in to change notification settings - Fork 0
/
latex.code-workspace
154 lines (154 loc) · 4.94 KB
/
latex.code-workspace
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"folders": [
{
"path": "."
}
],
"settings": {
// "titleBar.activeBackground": "#6ca91c91",
// "titleBar.inactiveBackground": "#3201b0cc",
// ===============================================================
// ============================LaTex==============================
// ===============================================================
//https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#placeholders
"latex-workshop.showContextMenu": true, // LaTeX右键菜单
"latex-workshop.bibtex-format.tab": "4 spaces",
"latex-workshop.intellisense.package.enabled": true, //补全代码
//错误和警告信息能够从终端中获取
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
//输出设置
"latex-workshop.latex.outDir": "%DIR%/output",
"latex-workshop.latex.clean.subfolder.enabled": false,
"latex-workshop.latex.autoClean.run": "onFailed", //清除辅助文件
"latex-workshop.synctex.afterBuild.enabled": true,
//文件清理。此属性必须是字符串数组
"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"
],
// preview
"latex-workshop.view.pdf.backgroundColor": "#000000",
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.internal.synctex.keybinding": "ctrl-click", //反向同步
// ==========================编译设置===================================
// 设置是否自动编译
"latex-workshop.latex.autoBuild.run": "never", //"onFileChange","never"
"latex-workshop.latex.recipe.default": "lastUsed", //
// 编译链 name为标签,command 编译方式
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-output-directory==%OUTDIR%",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOCFILE%"
]
},
{
"name": "biber",
"command": "biber",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
//编译链进行定义
//如果涉及到.bib文件,需要进行多次不同命令的转换编译,而编译链就解决了这个问题。
//name是标签,也就是出现在工具栏中的链名称;tool是name标签所对应的编译顺序
"latex-workshop.latex.recipes": [
{
"name": "LaTeXmk",
"tools": [
"latexmk"
]
},
{
"name": "XeLaTeX",
"tools": [
"xelatex"
]
},
{
"name": "PDFLaTeX",
"tools": [
"pdflatex"
]
},
{
"name": "BibTeX",
"tools": [
"biber"
]
},
{
"name": "xelatex -> bibtex -> xelatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
],
}
}