当前位置:网站首页>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
边栏推荐
- ModuleNotFoundError: No module named ‘jieba.analyse‘; ‘jieba‘ is not a package
- Three suggestions for all students who have graduated and will graduate
- web自动中利用win32上传附件
- Sublime Text 配置php编译环境
- apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
- ZZQ的博客目录--更新于20210601
- Golang -- map capacity expansion mechanism (including source code)
- VSCODE 安装LATEX环境,参数配置,常见问题解决
- 默认google浏览器打不开链接(点击超链接没有反应)
- Error "list" object is not callable in Web automatic switching window
猜你喜欢

VSCODE 安装LATEX环境,参数配置,常见问题解决

广告业务Bug复盘总结

Idea announced a new default UI, which is too refreshing (including the application link)

Linux MySQL 5.6.51 Community Generic 安装教程

qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)

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

Sparse array (nonlinear structure)

Sentinel rules persist to Nacos

Pytest (2) mark function

Find the highest value of the current element Z-index of the page
随机推荐
Sentinel 阿里开源流量防护组件
Functions of tensorrt
Flask migrate cannot detect db String() equal length change
实现strStr() II
AWD learning
unittest.TextTestRunner不生成txt测试报告
Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
Kotlin - verify whether the time format is yyyy MM DD hh:mm:ss
PgSQL学习笔记
[daily question 1] write a function to judge whether a string is the string after the rotation of another string.
一口气说出 6 种实现延时消息的方案
Detailed definition of tensorrt data format
Redis - hot key issues
Solution to the black screen of win computer screenshot
After reading useful blogs
记录一次RDS故障排除--RDS容量徒增
Three suggestions for all students who have graduated and will graduate
js中正则表达式的使用
蚂蚁集团g6初探
Redis——Cluster数据分布算法&哈希槽