Easy Docker LaTeX Setup with vscode and Grammarly

LaTeX is a document preparation system, which enables to produce .pdf documents from text and commands for formatting. I use it to write academic research papers and other documents, like my résumé.

I wanted an easy setup for an powerful LaTeX environment using an extensible IDE with Grammar.ly integration, running in Docker so my system stays clean.

Photo by ron dyar on Unsplash

Requirements

So the requirements for the setup were:

  • Works on Windows and Linux
  • Uses Visual Studio Code (vscode) as editor
  • Grammar.ly integration
  • Uses texlive-full together with biber and latexmk
  • … but without installing them to my system
  • Should not require more than a few clicks (or commands) to set up

Setup

Thanks to the awesome vscode extension latex-workshop, which recently added Docker support, this was quite easy to achieve.

Requirements:

  • Docker
  • vscode

Here are the steps:

  1. Install these two vscode extensions: latex-workshop, Grammarly
  2. Set “latex-workshop.docker.enabled”: true in your vscode settings
  3. Build your project with latex workshop

Additional Setup

If you have a Grammarly account, log in by specifying

"grammarly.username": "your grammarly email",
"grammarly.password": "your grammarly password",

I also like to add the following configuration values:

// Grammarly acadmic writing style
"grammarly.domain": "academic",
// always open pdf preview in new vscode tab
"latex-workshop.view.pdf.viewer": "tab",

I also use the vscode Material Icon Theme plugin in my LaTeX projects.

Which vscode plugins do you use in your LaTeX projects?

Have fun!

--

--

--

M. Sc Informatics Student in Munich, Germany. Full-stack software engineer and solutions architect.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

CS371p Fall 2021: Xuefei Zhao

Next-Gen Data Storage And Analytics With Elasticsearch

AWS State Machines — Decouple and Orchestrate Lambda Functions

How to connect to AWS RDS running in the internal network.

Make (Useful) Custom Tools and Capitalize on the Benefits

Setting frontend page by Bootstrap 5

CS 371p Spring 2022: Blog #4

OSD600 — Start

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael L.

Michael L.

M. Sc Informatics Student in Munich, Germany. Full-stack software engineer and solutions architect.

More from Medium

Setting up Python Interpreter onto a DOCKER CONTAINER.

How to Create a Python Plugin System with Stevedore

Powershell Scripting Guide to Python

Python Environment Variables: A Primer