Using LaTeX in Visual Studio Code on Windows
Combine the best text editor with the best document preparation system: edit in LaTeX with VSCode!
Here is a quick reminder how to install and use LaTex with VSCode.
- First you need TexLive: go to https://www.tug.org/texlive/acquire-netinstall.html and click on the .exe download for Windows:
2. Once download is finished, click on the .exe and follow the steps:
3. Make sure the installation has set your environnement variables correctly (you can have a slightly different path then mine):
4. Reboot you system to force all environnement variables to be reloaded:
5. Open VSCode est install both “LaTeX Workshop” and “LaTex Utilities”:
6. Create a folder and create a text file named “yourLaTeXArticle.tex”:
7. Paste the following content into it and click on the magnifying glass icon at the top right:
— — — — COPY & PASTE SECTION — — — —
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\title{My LaTeX Title}
\author{Guillaume Blanchet}
\date{2020–01–13}
\begin{document}
\maketitle
\section{Introduction}
Blah Blah Blah
\begin{itemize}
\item Hey
\item Oh!
\item Let’s
\item Go!
\end{itemize}
\end{document}
— — — —END OF COPY & PASTE SECTION— — — —
8. If it doesn’t work displaying the LaTeX document, try going here and clicking on “View LaTeX PDF”
You should see your web browser start with the test article:
Hope it helps!