This guide explains how to set up and use LaTeX in Cursor.
์ด ๊ฐ์ด๋๋ Cursor ์๋ํฐ์์ LaTeX ํ๊ฒฝ์ ์ค์ ํ๊ณ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค.
- Install the
LaTeX Workshop
extension
โ Provides useful LaTeX editing features
Choose one:
- Open
Preferences: Open Settings (JSON)
(Shift+Command+P
) - Add the following:
{
"latex.linter.enabled": false,
"[latex]": {
"editor.formatOnPaste": false,
"editor.suggestSelection": "recentlyUsedByPrefix"
},
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
]
}
]
}
- Create a new
.tex
file
\documentclass{article}
\usepackage{xeCJK} % For Korean or CJK fonts
\begin{document}
Hello, LaTeX!
\end{document}
Use a Makefile to automate:
Instead of configuring BibTeX inside Cursor, use a Makefile to manage everything.
.PHONY: all clean
all: manuscript.pdf
manuscript.pdf: manuscript.tex references.bib
xelatex manuscript.tex
bibtex manuscript
xelatex manuscript.tex
xelatex manuscript.tex
clean:
rm -f *.aux *.bbl *.blg *.log *.out *.toc *.synctex.gz *.pdf
- Build PDF:
make
- Clean files:
make clean
- Install
Task Explorer
extension - Open the Task Explorer from the sidebar
- Run
make
ormake clean
with one click
LaTeX Workshop
ํ์ฅ ํ๋ก๊ทธ๋จ ์ค์น
โ LaTeX ๋ฌธ์ ์์ฑ์ ์ํ ๊ธฐ๋ฅ ์ ๊ณต
์๋ ์ค ํ๋ ์ค์น:
Shift+Command+P
โPreferences: Open Settings (JSON)
์ ํ- ์๋ ๋ด์ฉ ์ฝ์ :
{
"latex.linter.enabled": false,
"[latex]": {
"editor.formatOnPaste": false,
"editor.suggestSelection": "recentlyUsedByPrefix"
},
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
]
}
]
}
.tex
ํ์ฅ์๋ก ํ์ผ ์์ฑ
\documentclass{article}
\usepackage{xeCJK} % ํ๊ธ ๋๋ CJK ํฐํธ ์ฌ์ฉ
\begin{document}
์๋
ํ์ธ์, LaTeX!
\end{document}
- Makefile์ ์ฌ์ฉํ๋ฉด ์๋ํ ๊ฐ๋ฅ
- Cursor์์ ์ง์ ์คํํ๊ธฐ๋ณด๋ค Makefile๋ก ๊ด๋ฆฌํ๋ ๊ฒ์ ์ถ์ฒ
.PHONY: all clean
all: manuscript.pdf
manuscript.pdf: manuscript.tex references.bib
xelatex manuscript.tex
bibtex manuscript
xelatex manuscript.tex
xelatex manuscript.tex
clean:
rm -f *.aux *.bbl *.blg *.log *.out *.toc *.synctex.gz *.pdf
- PDF ์์ฑ:
make
- ํ์ผ ์ญ์ :
make clean
Task Explorer
ํ์ฅ ํ๋ก๊ทธ๋จ ์ค์น- ์ฌ์ด๋๋ฐ์์ Task Explorer ์์ด์ฝ ํด๋ฆญ
make
,make clean
ํ์คํฌ๋ฅผ ํด๋ฆญํ์ฌ ์คํ
This guide includes the use of AI tools such as Copilot and Cursor.
These tools are intended to assist in formatting, writing, and document preparation.
All scientific content, citations, and conclusions must be verified and validated by the human author.
์ด ๊ฐ์ด๋๋ Copilot, Cursor์ ๊ฐ์ AI ๋๊ตฌ์ ์ฌ์ฉ์ ํฌํจํฉ๋๋ค.
์ด๋ฌํ ๋๊ตฌ๋ ๋ฌธ์ ์์ฑ ๋ฐ ํ์์ ์ง์ํ๊ธฐ ์ํ ๋ณด์กฐ ์๋จ์ ๋๋ค.
๋ชจ๋ ํ์ ์ ๋ด์ฉ, ์ธ์ฉ, ๊ฒฐ๋ก ์ ๋ํ ์ต์ข ๊ฒํ ์ ์ฑ ์์ ์ธ๊ฐ ์ ์์๊ฒ ์์ต๋๋ค.
If you have any questions, feel free to reach out!
๋ฌธ์์ฌํญ์ด ์์ผ์๋ฉด ์ธ์ ๋ ์ง ์ฐ๋ฝ ์ฃผ์ธ์!