当前位置:网站首页>Vscode installation, latex environment, parameter configuration, common problem solving
Vscode installation, latex environment, parameter configuration, common problem solving
2022-07-02 06:41:00 【Dull as dull】
1 Get ready Texlive Installation package
You can download it from the following website texlive The image file of :
The approximate document composition in the website

The file composition we need after downloading ( I am a 2020 Downloaded in , Don't download again this time )

Unzip the image file
2 install Texlive
Right click install-tl-windows.bat, Click Run as administrator , Enter the installation interface .

Click on the bottom left corner “Advanced” Go to advanced installation to cancel macro packages that you don't need to install .

Click on “Customize” To uncheck unnecessary macro packages .

Just unchecking the non Chinese and English language packs can eliminate 1G Space , If it's too troublesome to install it all .

At the bottom right corner of the installation interface, you can choose whether to install TeXworks Editor , I think now that I have read this article , Then this should be ok . After setting the installation path and other options, click “ install ”, Then sit still 20 minute - 3 Wait for hours for the installation to complete .


3 install VSCODE plug-in unit
Search in the expansion bar Latex workshop Installation

After installation , Open any one tex Source file , You can see , The code has been highlighted , At the same time, there are tex Mark of

4 Add settings file
Press down F1 Select this to open the settings file

"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
]
},
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "bibtex",
"command": "bibtex",
// "command": "biber",
"args": [
// "%DOC%"
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": ["xelatex"]
},
{
"name": "latexmk",
"tools": ["latexmk"]
},
{
"name": "pdflatex -> bibtex",
"tools": ["pdflatex","bibtex"]
},
// {
// "name": "pdflatex -> bibtex -> pdflatex*2",
// "tools": [
// "pdflatex",
// "bibtex",
// "pdflatex",
// "pdflatex"
// ]
// },
{
"name": "xelatex -> bibtex -> xelatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}
],
// Set the file format to be deleted after compilation
"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"
],
// Cancel annoying bubbles when compilation errors
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
"latex-workshop.showContextMenu": true, // add to LaTex Workshop Right-click menu .
"latex-workshop.intellisense.package.enabled": true, // According to the loaded package , Autocomplete command or package .
"latex-workshop.latex.autoBuild.run": "onSave", // Automatically when saving files build( in other words , Click save file or press shortcut key Ctrl+S When , In addition to preserving Tex file , It will also help you compile LaTex by Pdf.
Pay attention to the original {} middle
4.1 Explain the function of the menu bar and these parameters
| Parameters | meaning |
|---|---|
"latex-workshop.latex.tools" | Compile tool options , That is, we are above Build LaTex project From the drop-down menu , As long as you configure tools , It will be added to the drop-down menu for us to choose . |
"latex-workshop.latex.recipes" | Configure each compiled microenvironment , Have use xelatex Of , They have also used pdflatex Of , or xe->bib->xe->xe Compiled multiple times in succession ( The purpose of multiple compilation is to generate references , This is a bibtex It's decided by the nature of ).( You can take bib Of Recipe Put it first , Can be used as the default Recipe Compile the , It's OK, but because of the number of compilations , The speed will be slow ;) |
"latex-workshop.latex.clean.fileType" | Set the file format to be deleted after compilation |
"latex-workshop.view.pdf.viewer“ | Set default pdf reader |
In the compilation tool latexmk and xelatex These are both latex compiler , The latter can be compiled in Chinese .

5 The effect after compilation
restart vscode Compile after , The effect of placing in the browser

6 List of some problems
6.1 It still cannot be compiled successfully after the above settings
Report errors Recipe terminated with fatal error: spawn xelatex ENOENT
6.2 The problem of compiling Chinese The problem of compiling under the Chinese path
6.3 The font size command \normalsize is not defined
6.4 I found no \citation & \bibstyle & \bibdata commands &
Latex Compiler error I found no \bibstyle command_ Dull like dull blog -CSDN Blog
6.5 LaTeX Warning: Citation “*****” on page y undefined on input line *
6.6 Some advanced settings
- Shortcut keys and external PDF browser
To configure VS Code For you LaTex Editor - You know
- External location PDF Reverse search forward search
Use VSCode To write LaTeX - You know
- Common shortcut key
LaTeX+VSCode Environment configuration | sirlis
reference
边栏推荐
- 计算属性普通函数写法 和 set get 写法
- Loops in tensorrt
- Codeforces Round #797 (Div. 3) A—E
- Idea announced a new default UI, which is too refreshing (including the application link)
- 由於不正常斷電導致的unexpected inconsistency;RUN fsck MANUALLY問題已解决
- Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
- ModuleNotFoundError: No module named ‘jieba.analyse‘; ‘jieba‘ is not a package
- 底层机制Mvcc
- 记录一次RDS故障排除--RDS容量徒增
- CTF three count
猜你喜欢

The intern left a big hole when he ran away and made two online problems, which made me miserable

js中map和forEach的用法

代码技巧——Controller参数注解@RequestParam

Pytest (2) mark function

Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件

Introduce two automatic code generators to help improve work efficiency

蚂蚁集团g6初探

Warp shuffle in CUDA

Solution to the black screen of win computer screenshot

阿里云MFA绑定Chrome浏览器
随机推荐
如何调试微信内置浏览器应用(企业号、公众号、订阅号)
Nodejs - Express middleware modification header: typeerror [err_invalid_char]: invalid character in header content
PIP install
Kotlin - verify whether the time format is yyyy MM DD hh:mm:ss
Selenium+msedgedriver+edge browser installation driver pit
底层机制Mvcc
JS modification element attribute flipping commonly used in selenium's Web Automation
[self cultivation of programmers] - Reflection on job hunting Part II
Distributed transactions: the final consistency scheme of reliable messages
Redis——大Key问题
kali最新更新指南
默认google浏览器打不开链接(点击超链接没有反应)
MySql索引
Solution to the black screen of win computer screenshot
Self cultivation of programmers - Reflection on job hunting
VSCODE 安装LATEX环境,参数配置,常见问题解决
ModuleNotFoundError: No module named ‘jieba. analyse‘; ‘ jieba‘ is not a package
Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
Virtualenv and pipenv installation
Alibaba cloud MFA binding Chrome browser