nuric/vscode-latex-docker-template
关于
A minimal VS Code latex template using Docker
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文vscode-latex-docker-template
Update 2026-11-16: Updated workflow action versions and confirmed things are still cooking.
Update 2025-01-29: Confirming that this template is still working with the latest versions and default Github Codespaces.
A minimal VS Code LaTex template using Docker containers to compile. It contains the configuration to get VS Code up and running for LaTex with Docker. Some of the configured features include:
- GitHub Action to compile on push and have the PDF ready as an artifact.
- Install the essential extensions using
.vscode/extensions.jsonfor LaTex and spell checking. - Adjust settings of LaTex to utilise a Docker container for compiling the project.
- Uses the same Docker container locally and for CI to ensure consistency.
- Format and compile on file save.
- Invert PDF colours using the extension settings,
.vscode/settings.json.
The main motivation behind this setup is the extremely tedious and unhelpful native LaTex installation process. Using a Docker container to wrap pdflatex and more allows for a cleaner and more reproducible workspace.
Getting started
Use the "Use this template" button to create a new repository with this template. Clone the repository and open it in VS Code. The first time you open the project, you will be prompted to install the recommended extensions. Click "Install All" to install them.
To compile the latex project:
- Open the main.tex file and find TEX extension in the left sidebar. It appears only when you have the LaTex Workshop extension installed and have a Tex file open.
- Click the "Build LaTeX project" button to compile the project. The PDF will be generated using the Docker container.
- After the compilation, click the "View LaTeX PDF" option button to view the generated PDF!
When you push, the same compilation process will be run on GitHub Actions. The PDF will be available as an artifact in the actions tab.
Contributing
The objective is to keep this template as minimal as possible. For issues, suggestions, or improvements, please open an issue or a pull request.
Built using
- latex-docker is the Docker container that provides a full LaTex environment
- latex-action for the GitHub Action that compiles the project using the Docker container above
- LaTeX Workshop LaTex extension for VS Code
- Code Spell Checker for checking all spelling in the project
探索相关项目
加载中…