一、Texlive安装
1、打开D:\百度网盘下载\texlive2019-20190410.iso,点击install-tl-windows.bat,开始安装,大概需要消耗两个小时,最后出现“欢迎进入Latex世界”字样,表示安装成功。 2、还可以通过命令行的方式验证是否按照成功——Win+R,输入cmd,输入tex -v或者latex -v,看是否出现版本信息。
二、编辑器Winedt安装(目前没使用)
三、编辑器Visual Studio Code安装(目前使用这个)
打开D:\软件安装包\VSCodeUserSetup-x64-1.41.1.exe,进入安装。 安装结束后,直接打开Code,在左侧“Extensions”中,选择以下几个插件进行安装:
Chinese ( Simplified) Language Pack for Visual Studio Code(汉化)
Code Runner
LaTeX language support
LaTeX Workshop
latex-formatter
Markdown All in One(查看MarkDown文件)
Matlab
Matlab Code Run
添加结束后,退出软件重新进入。 -左下角“首选项”打开命令面板,搜索“settings.json”,将这个文件中的设置进行替换为如下:
{
"matlab.mlintpath": "/Applications/MATLAB_R2018a.app/bin/maci64/mlint",
"matlab.linterEncoding": "gb2312",
"matlab.matlabpath": "/Applications/MATLAB_R2018a.app/bin/maci64/MATLAB",
"files.associations": {
"*.m" : "matlab"
} ,
"latex-workshop.latex.tools": [
{
"name" : "latexmk-escape" ,
"command" : "latexmk" ,
"args" : [
"-synctex=1" ,
"-interaction=nonstopmode" ,
"--shell-escape" ,
"-file-line-error" ,
"-pdf" ,
"-xelatex" ,
"%DOC%"
]
} ,
{
"name" : "latexmk" ,
"command" : "latexmk" ,
"args" : [
"-synctex=1" ,
"-interaction=nonstopmode" ,
"-file-line-error" ,
"-pdf" ,
"-xelatex" ,
"%DOC%"
]
} ,
{
"name" : "xelatex" ,
"command" : "xelatex" ,
"args" : [
"-synctex=1" ,
"-interaction=nonstopmode" ,
"-file-line-error" ,
"-pdf" ,
"%DOC%"
]
} ,
{
"name" : "xelatex-escape" ,
"command" : "xelatex" ,
"args" : [
"-synctex=1" ,
"-interaction=nonstopmode" ,
"--shell-escape" ,
"-file-line-error" ,
"-pdf" ,
"%DOC%"
]
} ,
{
"name" : "pdflatex" ,
"command" : "pdflatex" ,
"args" : [
"-synctex=1" ,
"-interaction=nonstopmode" ,
"-file-line-error" ,
"%DOC%"
]
} ,
{
"name" : "bibtex" ,
"command" : "bibtex" ,
"args" : [
"%DOCFILE%"
]
} ,
],
"latex-workshop.latex.recipes": [
{
"name" : "latexmk-escape" ,
"tools" : [
"latexmk-escape"
]
} ,
{
"name" : "latexmk" ,
"tools" : [
"latexmk"
]
} ,
{
"name" : "xelatex" ,
"tools" : [
"xelatex"
]
} ,
{
"name" : "xelatex-escape" ,
"tools" : [
"xelatex-escape"
]
} ,
{
"name" : "pdflatex" ,
"tools" : [
"pdflatex"
]
} ,
{
"name" : "bibtex" ,
"tools" : [
"bibtex"
]
} ,
{
"name" : "pdflatex -> bibtex -> pdflatex*2" ,
"tools" : [
"pdflatex" ,
"bibtex" ,
"pdflatex" ,
"pdflatex"
]
} ,
{
"name" : "xelatex -> bibtex -> xelatex*2" ,
"tools" : [
"xelatex" ,
"bibtex" ,
"xelatex" ,
"xelatex"
]
} ,
{
"name" : "xelatex - bibtex for CODE" ,
"tools" : [
"xelatex-escape" ,
"bibtex" ,
"xelatex-escape" ,
"xelatex-escape"
]
} ,
],
"latex-workshop.view.pdf.viewer" : "tab" ,
"latex-workshop.latex.clean.fileTypes" : [
"*.synctex.gz" ,
"*.aux" ,
"*.bbl" ,
"*.blg" ,
"*.idx" ,
"*.ind" ,
"*.lof" ,
"*.lot" ,
"*.out" ,
"*.toc" ,
"*.acn" ,
"*.acr" ,
"*.alg" ,
"*.glg" ,
"*.glo" ,
"*.gls" ,
"*.ist" ,
"*.fls" ,
"*.log" ,
"*.fdb_latexmk"
],
"workbench.colorTheme" : "Default Light+" ,
"editor.minimap.enabled" : true,
"window.zoomLevel" : 0,
}