Installing LaTeX
First, you will probably want to install LaTeX in Gitpod. To do this, add a new file to your repository called .gitpod.Dockerfile, and add the following content to it:.gitpod.yml
and .gitpod.Dockerfile
.
Automatically compiling LaTeX files on save
One way to achieve this is to installinotify-tools
by modifying your earlier .gitpod.Dockerfile
like so:
.gitpod.yml
like so:
*.tex
files when they are changed. Note: The watcher process will start in a separate Terminal on every workspace start.
VS Code Extensions
TexLab
This extension provides rich editing support for the LaTeX typesetting system powered by the TexLab language server. To install it in Gitpod, simply download the corresponding*.vsix
file Open VSX, and then drag-and-drop it into Gitpod’s Extensions view (which can be found in the left vertical menu bar).
This will automatically append something like this to your .gitpod.yml
file:
.gitpod.yml
*.vsix
file.)
LaTeX Workshop
Another great LaTeX extension is LaTeX Workshop:Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.It is also available on Open VSX.
LaTeX Snippets
There is also LaTeX Snippets:This extension includes a variety of snippets for LaTeX including making environments and plotting images for functions, etc.