LaTeX ExamplesΒΆ
Make a folder named
tutorialanywhere on your computerOpen VS Code
Go to File - Open Folder and select the
tutorialfolder you just createdCreate a new file named
document.texin the folder (see figure below).
Copy and paste the following code into document.tex:
\documentclass{article}
\title{Put Title Here}
\author{Put Your Name Here}
\begin{document}
\maketitle
\end{document}
Click the Build LaTeX project button in the top right corner of VS Code (shown with the red arrow in the figure below). This will compile your LaTeX document and generate a PDF file named document.pdf in the same folder.
Notice the PDF and other files generated in the folder in the figure below.
Click the View LaTeX PDF button (shown with the red arrow in the figure below) that appears after building the project to view the generated PDF file.