生活随笔
收集整理的這篇文章主要介紹了
Latex安装流程(图文)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 一、Latex安裝包的下載
- 二、軟件安裝
- 三、VScode環境配置
一、Latex安裝包的下載
輸入網址:https://www.tug.org/texlive/
點擊on DVD
點擊downloading the TeX Live ISO image and burning your own DVD
點擊download from a nearby CTAN mirror
現在相應的版本文件(參考:可點擊texlive2022.iso)
ps:文件較大,耐心等待。
二、軟件安裝
解壓文件
以管理員身份運行install-tl-windows.bat文件
修改安裝路徑
點擊確定,點擊安裝就開始安裝了。
以管理員身份運行命令提示符,并輸入:
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texliv/tlnet
三、VScode環境配置
在VScode中添加擴展Latex Workshop
下載Sumatra PDF
https
:
在vscode中找到settings.json文件輸入以下代碼進行配置即可。
{"latex-workshop.view.pdf.ref.viewer":"auto","latex-workshop.view.pdf.external.viewer.command": "C:/SumatraPDF/SumatraPDF.exe", "latex-workshop.view.pdf.external.viewer.args": ["%PDF%"],"latex-workshop.view.pdf.external.synctex.command": "C:/SumatraPDF/SumatraPDF.exe", "latex-workshop.view.pdf.external.synctex.args": ["-forward-search","%TEX%","%LINE%","-reuse-instance","-inverse-search","\"C:/Microsoft VS Code/Code.exe\"\" \"C:/Microsoft VS Code/resources/app/out/cli.js\" -r -g \"%f:%l\"", "%PDF%"],"editor.minimap.enabled": true
, "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","args": ["%DOCFILE%"]}],"latex-workshop.latex.recipes": [{"name": "xelatex","tools": ["xelatex"]},{"name": "latexmk","tools": ["latexmk"]},{"name": "pdflatex -> bibtex -> pdflatex*2","tools": ["pdflatex","bibtex","pdflatex","pdflatex"]}],"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"],"latex-workshop.latex.autoClean.run": "onFailed","latex-workshop.latex.recipe.default": "lastUsed","latex-workshop.view.pdf.internal.synctex.keybinding": "double-click","latex-workshop.showContextMenu":true
,"latex-workshop.intellisense.package.enabled": true
,"workbench.editorAssociations": {"*.ipynb": "jupyter-notebook"},"kite.showWelcomeNotificationOnStartup": false
, "python.defaultInterpreterPath": "E:\\Python\\python.exe", "notebook.cellToolbarLocation": {"default": "right","jupyter-notebook": "left"},"git.autofetch": true
,"security.workspace.trust.untrustedFiles": "open","vsicons.dontShowNewVersionMessage": true
,"[latex]": {"editor.formatOnPaste": false
,"editor.suggestSelection": "recentlyUsedByPrefix" },"code-runner.clearPreviousOutput": true
,"code-runner.saveAllFilesBeforeRun": true
,"code-runner.runInTerminal": true
,"workbench.colorTheme": "Solarized Dark",
}
總結
以上是生活随笔為你收集整理的Latex安装流程(图文)的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。