vscode + texlive2019 installation
- Download and install vscode, the official website to directly download and install.
- Download and install texlive2019, the mirror file is still a bit large, considering the network speed, here directly to the Tsinghua mirror website to download.
- Download it and double-click directly
to install it with one click . The advantage of the earlier version of texlive2019 is that with one-click installation, there is nothing to choose from. - Enter vscode and install two support plugins, LaTeX Workshop and LaTeX language support.
- Open vscode, enter: File-Preferences-Settings , enter LaTeX in the search box, click the first option to enter the edit settings file.
Since the LaTeX file will generate a lot of files that we do not need when it is compiled, it will result in a lot of strange files under the local directory. Therefore, OCD recommends that these files be deleted automatically after compilation. Add directly in the setting.json file:
"latex-workshop.view.pdf.viewer": "tab",
// "latex-workshop.latex.clean.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",
"*.gz"
],
"latex-workshop.latex.autoClean.run": "onBuilt"
Then the temporary files generated when compiling LaTeX can be cleared directly.
- Next, test the LaTeX environment. After completing the above steps, we create a new LaTeX file, save it, and enter:
\documentclass[UTF8]{ctexart}
\title{title}
\author{author}
\date{\today}
\begin{document}
\maketitle
天行健君子以自强不息……
我觉得还OK!
$y_k=x_{ij}$
\end{document}
At this point, you're done!