当前位置:网站首页>Introduction to latex

Introduction to latex

2020-11-08 16:57:00 _Open

Reference resources :
https://liam.page/2014/09/08/latex-introduction/#TeX_%E5%AE%B6%E6%97%8F
https://zhuanlan.zhihu.com/p/38178015
https://www.latexstudio.net/archives/12260.html
https://www.zhihu.com/question/23658979

1.TexLive It's a must tex engine ,VSCode The plug-in is only used to call texlive It's more convenient .

2.VSCode The default plug-in is pdflatex Build engine ,pdflatex I won't support it ctex perhaps xeCJK Compilation of ( chinese ), So it needs to be changed setting, use xelatex Compile :

    "latex-workshop.latex.tools": [
        {
            "name": "xelatex",
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "%DOCFILE%"
            ]
        },
        {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOCFILE%"
            ]
        },
        {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
                "%DOCFILE%"
            ]
        }
    ],
    "latex-workshop.latex.recipes": [
        {
          "name": "pdfLaTeX",
          "tools": [
            "pdflatex"
          ]
          },
        {
          "name": "xelatex",
          "tools": [
            "xelatex"
          ]
        },
        {
          "name": "latexmk",
          "tools": [
            "latexmk"
          ]
        },
        {
          "name": "bibteX",
          "tools": [
            "bibtex"
          ]
        },
        {
            "name": "xelatex -> bibtex -> xelatex × 2",
            "tools": [
              "xelatex",
              "bibtex",
              "xelatex",
              "xelatex"
            ]
        },
        {
            "name": "pdflatex -> bibtex -> pdflatex × 2",
            "tools": [
              "pdflatex",
              "bibtex",
              "pdflatex",
              "pdflatex"
            ]
        }
    ],

3. Chinese needs :

\usepausepackage[UTF8]{ctex}

If the computer defaults to UTF8 Can be removed .

4.bibtex It is used to index references , Reference resources :https://www.zhihu.com/question/30344123

版权声明
本文为[_Open]所创,转载请带上原文链接,感谢