3
|
1 ## How to build tex
|
|
2
|
|
3 1. Create an environment in which `ptex2pdf` and `pbibtex` can run.
|
|
4 2. Add the following to the VSCode configuration JSON.
|
|
5
|
|
6 ```
|
|
7 {
|
|
8 "[tex]": {
|
|
9 "editor.suggest.snippetsPreventQuickSuggestions": false,
|
|
10 "editor.tabSize": 2
|
|
11 },
|
|
12 "[latex]": {
|
|
13 "editor.suggest.snippetsPreventQuickSuggestions": false,
|
|
14 "editor.tabSize": 2,
|
|
15 "editor.formatOnSave": false
|
|
16 },
|
|
17 "[bibtex]": {
|
|
18 "editor.tabSize": 2
|
|
19 },
|
|
20 "latex-workshop.intellisense.package.enabled": true,
|
|
21 "latex-workshop.latex.autoBuild.cleanAndRetry.enabled": true,
|
|
22 "latex-workshop.latex.clean.fileTypes": [
|
|
23 "*.aux",
|
|
24 "*.bbl",
|
|
25 "*.blg",
|
|
26 "*.idx",
|
|
27 "*.ind",
|
|
28 "*.lof",
|
|
29 "*.lot",
|
|
30 "*.out",
|
|
31 "*.toc",
|
|
32 "*.acn",
|
|
33 "*.acr",
|
|
34 "*.alg",
|
|
35 "*.glg",
|
|
36 "*.glo",
|
|
37 "*.gls",
|
|
38 "*.ist",
|
|
39 "*.fls",
|
|
40 "*.log",
|
|
41 "*.fdb_latexmk",
|
|
42 "*.snm",
|
|
43 "*.nav",
|
|
44 "*.dvi",
|
|
45 "*.synctex.gz"
|
|
46 ],
|
|
47 "latex-workshop.latex.outDir": ".",
|
|
48 "latex-workshop.latex.tools": [
|
|
49 {
|
|
50 "command": "ptex2pdf",
|
|
51 "args": [
|
|
52 "-l",
|
|
53 "-ot",
|
|
54 "-kanji=utf8 -synctex=1",
|
|
55 "%DOC%"
|
|
56 ],
|
|
57 "name": "Step 1: ptex2pdf"
|
|
58 },
|
|
59 {
|
|
60 "command": "pbibtex",
|
|
61 "args": [
|
|
62 "%DOCFILE%",
|
|
63 "-kanji=utf8"
|
|
64 ],
|
|
65 "name": "Step 2: pbibtex"
|
|
66 },
|
|
67 {
|
|
68 "command": "ptex2pdf",
|
|
69 "args": [
|
|
70 "-l",
|
|
71 "-ot",
|
|
72 "-kanji=utf8 -synctex=1",
|
|
73 "%DOC%"
|
|
74 ],
|
|
75 "name": "Step 3: ptex2pdf"
|
|
76 },
|
|
77 {
|
|
78 "command": "ptex2pdf",
|
|
79 "args": [
|
|
80 "-l",
|
|
81 "-ot",
|
|
82 "-kanji=utf8 -synctex=1",
|
|
83 "%DOC%"
|
|
84 ],
|
|
85 "name": "Step 4: ptex2pdf"
|
|
86 }
|
|
87 ],
|
|
88 "latex-workshop.latex.recipes": [
|
|
89 {
|
|
90 "name": "toolchain",
|
|
91 "tools": [
|
|
92 "Step 1: ptex2pdf",
|
|
93 "Step 2: pbibtex",
|
|
94 "Step 3: ptex2pdf",
|
|
95 "Step 4: ptex2pdf"
|
|
96 ]
|
|
97 }
|
|
98 ],
|
|
99 "latex-workshop.view.pdf.viewer": "tab",
|
|
100 }
|
|
101 ```
|
|
102
|