Windows Local LaTeX Setup

Use this guide for Week 12+ to write reports/papers in Overleaf and compile locally with VS Code + LaTeX Workshop.

1) Install Required Tools

VS Code Extension: Install LaTeX Workshop by James Yu.
MiKTeX: miktex.org/download (enable install missing packages on-the-fly)
Strawberry Perl (Windows only): strawberryperl.com (add Perl to PATH). On macOS, Perl is already included by default.
Homebrew (macOS if needed): Install Homebrew first if your Mac does not have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After Homebrew was installed. Paste and run this command in terminal: brew install --cask basictex

2) Verify Installation

In PowerShell, run:

pdflatex --version perl --version
If both commands return version info, your local LaTeX environment is ready.

3) Configure LaTeX Workshop (Workspace)

Open your LaTeX project folder in VS Code, then open Workspace Settings (JSON) and paste:

{ "latex-workshop.latex.tools": [ { "name": "pdflatex", "command": "pdflatex", "args": ["-interaction=nonstopmode", "-synctex=1", "%DOC%"] }, { "name": "latexmk", "command": "latexmk", "args": ["-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOC%"] } ], "latex-workshop.latex.recipes": [ { "name": "pdflatex", "tools": ["pdflatex"] }, { "name": "latexmk", "tools": ["latexmk"] } ] }

4) Compile

Open your main .tex file, run LaTeX Workshop: Build with recipe, then choose:

5) Overleaf + Local Workflow

Troubleshooting