- 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 Containerfrom 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
/workspacejust as themain.tex. - Once you save a
.texfile, it will automatically be built with Latexmk which seamlessly integrates BibTeX bibliography in the compilation. - The GitHub Action
latex-buildruns 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.githubfolder. You may need to adapt thelatex-build.envsection to fit your requirements.LATEX_FILE_PATH: path of the used LaTeX file, relative to/workspaceOUTPUT_DIR_PATH: path of the output directory, relative to/workspaceOUTPUT_BASE_FILENAME: name of the created artifact archive and containing PDF fileTZ: timezone of the timestamp that is appended toOUTPUT_BASE_FILENAMEto make files uniquely identfiable