저번에 texlive 설치 후 이번에는 vscode 환경 구성
기사 디렉토리
다운로드
1. VScode 내부 설정
플러그인 설치
VScode에는 여러 언어를 컴파일할 수 있는 풍부한 확장 패키지가 있어 정말 편리합니다.
먼저 VSCode에 Latex 플러그인을 설치합니다.
구성 환경
F1 키를 누르고 setjson을 입력하고 Preferences를 선택하여 작업 공간 설정(JSON)을 열고
클릭하여 입력하고
파일에서 {}를 삭제하고 다음 명령문을 직접 복사합니다.
{
"latex-workshop.latex.recipes": [{
"name": "xelatex",
"tools": [
"xelatex"
]
}, {
"name": "latexmk",
"tools": [
"latexmk"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}
],
"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.view.pdf.viewer": "tab",
"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"
],
}
2. 사용방법
저널에서 지정한 템플릿을 가져옵니다. 대부분의 저널은 TEX 템플릿을 제공합니다. 예를 들어 IEEE Template Selector 로 이동하여 직접 다운로드할 수 있습니다.
vscode를 다시 시작하고 vscode를 통해 다운로드 및 압축 해제된 폴더를 열고 .tex 파일 중 하나를 선택하면 코드가 표시되어 사용할 수 있음을 알 수 있습니다.
오른쪽 상단 모서리를 클릭하면 열에서 PDF 모드의 논문을 볼 수 있습니다.
이상으로 구성 작업이 완료되어 즐겁게 논문을 작성할 수 있습니다~