pLaTeXを使ってみよう
卒論用にUbuntuとArchにTeX環境を用意した時にした事
全部installするだけ
今からならPrismでも良いかも
Ubuntu¶
Arch¶
sudo pacman -S texlive-latex texlive-latexextra texlive-langjapanese texlive-luatex evince
sudo pacman -S texlive-pictures texlive-science texlive-mathtools
VSCode互換用コンパイル設定¶
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.latex.tools": [
{
"name": "platex",
"command": "platex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-kanji=utf8",
"-guess-input-enc",
"%DOCFILE%.tex"
]
},
{
"name": "pbibtex",
"command": "pbibtex",
"args": [
"-kanji=utf8",
"%DOCFILE%"
]
},
{
"name": "dvipdfmx",
"command": "dvipdfmx",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
// platexとpbibtexを使ってTeXファイル→DVIファイル→PDFファイル生成
{
"name": "platex_bib",
"tools": [
"platex",
"pbibtex",
"platex",
"platex",
"dvipdfmx"
]
}
],
// 生成ファイルを削除するときに対象とするファイル
"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",
"*.snm",
"*.nav",
"*.dvi",
"*.synctex.gz"
],