Ultimate Latex development container for Visual Studio Code
amd64 and aarch64kbuley/latexdevcontainer:latest (default) which uses the TexLive basic scheme and has an uncompressed image size of 467MBkbuley/latexdevcontainer:latest-full which uses the TexLive full scheme and has an uncompressed image size of 4.2GB - most packages you would need are already installed.tlmgr to install more LaTex packages as needed~/.ssh and the directory of your project with Docker DesktopWith style 💯
docker run -it --rm -v "/yourrepopath:/repository" kbuley/devtainr:v0.4.0 -dev latex -path /repository -name projectname
Or use the built binary
Or manually: download this repository and put the .devcontainer directory in your project.
Remote-Containers: Open Folder in Container... and choose your project directoryIf you need for example the package lastpage, open the integrated terminal in VS Code, select zsh and enter:
tlmgr install lastpage
texhash
Pull the docker image
docker pull kbuley/latexdevcontainer
Open the command palette in Visual Studio Code (CTRL+SHIFT+P) and select Remote-Containers: Rebuild and Reopen in Container.... ⚠️ this will erase your container shell history and custom latex packages you added on top of the base image.
You can change the "postCreateCommand" to be relevant to your situation. For example:
"postCreateCommand": "tlmgr install acronym pgf && texhash",
You can change the extensions installed in the Docker image within the "extensions" array
Other Latex settings can be changed or added in the "settings" object.
You can build the development image yourself:
docker build -t kbuley/latexdevcontainer -f Dockerfile https://github.com/kbuley/latexdevcontainer.git
You can extend the Docker image kbuley/latexdevcontainer with your own instructions.
Create a file .devcontainer/Dockerfile with FROM kbuley/latexdevcontainer
Append instructions to the Dockerfile created. For example:
FROM kbuley/latexdevcontainer
RUN tlmgr install lastpage
Modify .devcontainer/docker-compose.yml and add build: . in the vscode service.
Open the VS code command palette and choose Remote-Containers: Rebuild container
You can bind mount a shell script to /home/vscode/.welcome.sh to replace the current welcome script
This repository is under an MIT license unless indicated otherwise.
Content type
Image
Digest
sha256:8bac350be…
Size
268.3 MB
Last updated
over 3 years ago
docker pull kbuley/latexdevcontainer