Customized TeX Live Docker image for VSCode LaTeX Workshop.
This Docker image ensures that you can compile LaTeX documents locally even when you cannot connect to Overleaf. It provides a consistent and reproducible environment for LaTeX compilation, including all necessary packages and tools.
lualatex
, latexmk
, and other essential LaTeX tools.ucetd
class, natbib
, graphicx
, etc.).Add the following settings to your settings.json
in VSCode to use the Docker image for LaTeX compilation:
"latex-workshop.docker.enabled": true,
"latex-workshop.docker.image.latex": "oaklight/texlive:latest-science",
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"latexmk"
]
}
],
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
}
],
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.latex.clean.method": "glob"
docker pull oaklight/texlive:latest-science
settings.json
with the above configuration..tex
file and start editing. The LaTeX Workshop extension will automatically use the Docker image for compilation.If you want to build the Docker image locally, use the provided Makefile
:
make build
This will build the image with the tags oaklight/texlive:latest
and oaklight/texlive:latest-science
.
If you want to push the image to a Docker registry:
make push
To remove the Docker image:
make clean
lualatex
and latexmk
.ucetd
document class (University of Chicago Electronic Theses and Dissertations).natbib
, graphicx
, amsmath
, and more.Dockerfile
to include additional packages.main.log
file for detailed error messages during compilation.This project is licensed under the MIT License. See the LICENSE
file for details.