陳宥廷 DextinSat, Mar 3, 2021
筆記
LaTeX
先到TeX Live官網下載安裝包(它的官網都是字,看得讓人眼花@@)
使用管理員權限安裝,可以選擇安裝位置,點選進階Advanced選項
點選自訂Customize選項,Disk space required是預估空間大小
去掉不需要的語言,筆者使用中文、漢字和英文。TeXworks editor是Tex Live附的編輯器,可以取消勾選
回到前一畫面,如果有更動語言或模組,要確認字體/巨集包是否有勾選
經過慢常的等待(我大概跑2個多小時),終於載好了。
確認加入環境參數PATH
在cmd中測試
tex -v
latex -v
xelatex -v
pdflatex -v
如果已經安裝好Tex Live,在VS Code的Extensions中安裝LaTeX Workshop,安裝後Ctrl+Shift+P開啟setting.json
{
// 編譯LaTeX的工具設定
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "xelatex-with-shell-escape",
"command": "xelatex",
"args": [
"--shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex-with-shell-escape",
"command": "pdflatex",
"args": [
"--shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
]
}
//{
// "name": "bibtex",
// "command": "bibtex",
// "args": [
// "%DOCFILE%"
// ]
//},
//{
// "name": "makeindex",
// "command": "makeindex",
// "args": [
// "%DOCFILE%"
// ]
//}
],
// 選擇LaTeX編譯工具的指令,以及工具的順序
"latex-workshop.latex.recipes": [
// 目前只使用xelatex和bibtex
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "xelatex with shell escape",
"tools": [
"xelatex-with-shell-escape"
]
},
{
"name": "xelatex -> bibtex -> xelatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "bibtex",
"tools": [
"bibtex",
]
}
],
// 選擇pdf瀏覽器,可選browser/tab/external
"latex-workshop.view.pdf.viewer": "tab",
// 每次編譯前,刪除之前的output檔
"latex-workshop.latex.clean.enableed": 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"
],
}
(研究中)
http://tul.blog.ntu.edu.tw/archives/5764
以下是筆者所碰到的問題,
I can't find the format file `xelatex.fmt'!
字體沒安裝到,重新安裝
有些只支援TeX Live或MikTex的package
丟到目標tex的資料夾
安裝方法研究中
研究中,筆者只使用XeTeX和BibTexz。https://www.itread01.com/content/1546318083.html