首先下载并安装latex:https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/

然后安装vscode

在vscode中安装latex workshop插件

在vscode的setting.json中写入以下内容

{
	"latex-workshop.latex.tools": [ //用于配置各基本命令
    {
        "name": "latexmk", // 后续使用的名称
        "command": "latexmk", // shell 命令
        "args": [ // 命令参数
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "-pdf",
        "%DOC%"
        ]
    },
    {
        "name": "xelatex",
        "command": "xelatex",
        "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
        ]
    },
    {
        "name": "xelatex_no_out",
        "command": "xelatex",
        "args": [
        "-no-pdf",
        "-quiet",
        "-time-statistics",
        "main.tex"
        ]
    },
    {
        "name": "xelatex_out",
        "command": "xelatex",
        "args": [
        "-quiet",
        "-time-statistics",
        "main.tex"
        ]
    },          
    {
        "name": "pdflatex",
        "command": "pdflatex",
        "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
        ]
    },
    {
        "name": "bibtex",
        "command": "bibtex",
        "args": [
        "main.aux"
        ]
    },
    {
        "name": "t1",
        "command": "xelatex",
        "args": [
            "-no-pdf",
            "--interaction=nonstopmode",
            "%DOC%"
        ]
    },
    {
        "name": "t2",
        "command": "bibtex",
        "args": [
            "main.aux"
        ]
    },
    {
        "name": "t3",
        "command": "xelatex",
        "args": [
            "--interaction=nonstopmode",
            "%DOC%"
        ]
    }
    ],
    "latex-workshop.latex.recipes": [ // 工作流配置
        {
            "name": "xelatex", // 不含参考文献的工作流
            "tools": [
            "xelatex"
            ]
        },
        {
            "name": "thesis", // 含参考文献的工作流(为毕业论文编写调优)
            "tools": [
                "t1",
                "t2",
                "t1",
                "t3"
            ]
        }
        ],
        "latex-workshop.view.pdf.viewer": "tab",
}

然后在vscode工作区写个latex的hello world文件:hello.tex

\document{artical}
\begin{document}
hello world
\end{document}

然后点击运行,就可以得到pdf啦

想要支持latex支持中文,可以

\usepackage{xeCJK}

想要插入图片,可以

\usepackage{graphicx}

想要插入代码,可以

\usepackage{listings}

想要插入算法,可以

\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{algorithmicx}

使用usepackage命令导入包以后,在vscode中,将鼠标移到包名(如listings)上,会出现一个view document的按钮,点击可以打开对应包的pdf文档。通过这个文档可以学这个包的用法。

latex有个不错的教程,http://dralpha.altervista.org/zh/tech/lnotes2.pdf,可以参考下

1 对 “Win10+vscode配置latex环境”的想法;

  1. Does breast success resally workPisss mich vopl duCherokee
    coick suckMichekle ttucker bioo pornMy girlffriend fucked a dog2008 amateur extra
    stdy guidesLyac breasted rollerCosta rica slut picturesFemwle erottica moviesMaadison porn videoMilff augustVintage floeece zipp hoodieSacramento
    nud hillary playboyHitch hiker’s thumbXxxx geiler mundfickWomjen grroup masturbation videos

    Also vusit myy weeb sife … vem gozar gostoso dela

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注