- Install VSCode
- Install the VSCode Remote Development plugin
- Install Docker and Docker Compose
- Clone this repository
- Open the folder in VSCode
- Execute
Remote-Containers: Reopen in Container
from the VSCode command palette - VSCode automatically downloads the dependencies and starts up the LaTeX container.
- You will be left with a VSCode window to write your LaTeX project in. Every integrated terminal is running inside the LaTeX container.
Simply close VSCode.
- This project relies on tianon/latex and LaTeX Workshop.
- Put your LaTeX files in
/workspace
just as themain.tex
. - Once you save a
.tex
file, it will automatically be built with Latexmk which seamlessly integrates BibTeX bibliography in the compilation. - The GitHub Action
latex-build
runs on each push to build your project with Latexmk and upload the PDF as an artifact of the run. If you don't want to use the action, it is safe to delete the.github
folder. You may need to adapt thelatex-build.env
section to fit your requirements.LATEX_FILE_PATH
: path of the used LaTeX file, relative to/workspace
OUTPUT_DIR_PATH
: path of the output directory, relative to/workspace
OUTPUT_BASE_FILENAME
: name of the created artifact archive and containing PDF fileTZ
: timezone of the timestamp that is appended toOUTPUT_BASE_FILENAME
to make files uniquely identfiable