TeamTex is a lightweight and customizable LaTeX environment built for Dev Containers, GitHub Codespaces, and robust local usage.
-
Click "Use this template" on GitHub to create your own repository.
-
Open the environment:
System requirements — You need a modern LaTeX distribution (TeX Live 2020+ or MiKTeX) with:
Component Minimum version Notes TeX Live 2020 Any recent LaTeX distribution latexmk 4.70 Automates compilation passes biber 2.17 Required for bibliography processing with biblatexbiblatex 3.15 numericcitation stylecsquotes — Recommended by biblatexQuick install per platform:
Platform Command Ubuntu/Debian sudo apt install texlive-full biber latexmkFedora sudo dnf install texlive-scheme-medium texlive-biblatex texlive-csquotes biber latexmkmacOS brew install --cask mactex(orbrew install --cask basictex+tlmgr installeverything)Windows Install MiKTeX or TeX Live VS Code Extensions (system-wide):
Extension ID Purpose LaTeX Workshop James-Yu.latex-workshopAuto compilation, PDF preview, SyncTeX Live Share ms-vsliveshare.vsliveshareReal-time collaboration with multiple people Then:
git clone <repository-url> code <project-folder>
Open
main.texand start writing. Every save (Ctrl + S) compiles automatically!- From VS Code: Install the GitHub Codespaces extension,
Ctrl+Shift+P> Create New Codespace. (Low latency) - From browser: Open the repo on GitHub >
Code>Codespaces> Create codespace. (Zero setup)
- From VS Code: Install the GitHub Codespaces extension,
-
Wait for the environment to load.
-
Find the PDF in the
build/folder.
TeamTex supports collaborative writing through Live Share (ms-vsliveshare.vsliveshare), pre-configured in the container.
- Open the project in VS Code.
- Click the Live Share icon in the sidebar (or
Ctrl+Shift+P> Live Share: Start Collaboration Session). - Share the link with your collaborators — they can edit the
.texfiles and see the compilation in real time.
PDF Sync: All participants see the same compiled PDF by opening
build/main.pdfwith the built-in LaTeX Workshop viewer.
Whether you are using GitHub Codespaces or Local Dev Containers, your entire repository is automatically mapped inside the container to the /workspace directory.
Any files, scripts, images, or custom sub-folders (e.g., src/, chapters/, assets/) you add to your project folder alongside main.tex are instantly loaded, fully accessible by LaTeX during compilation, and synced with your local machine/GitHub.
Important
Check the More Usage Details guide for essential information on Templates, Copilot, Troubleshooting, and Custom Extensions. This is where you'll find everything you need for a professional setup.
The project is specifically configured to keep the root directory clean by routing all files into the build/ directory.
- Open
main.tex. - Saving (Ctrl + S) triggers automatic compilation.
- Use the TeX sidebar icon for manual builds or to view the PDF.
If you prefer the command line, use latexmk directly:
# Full Compile (handles bibliography, multiple passes automatically)
latexmk -pdf -outdir=build main.tex
# Clean
latexmk -C -outdir=build
rm -rf build/- Codespaces / Remote: Right-click
main.pdfin thebuild/folder > Download. - Local Dev Container: The PDF is already in your local
build/folder.
To get a clean archive of your source code (excluding build files and Git history):
- Run
./export_source.shin the terminal. - Based on your environment:
- Codespaces / Remote: Right-click the generated
teamtex_source.zip> Download. - Local Dev Container: The ZIP is already in your project folder.
- Codespaces / Remote: Right-click the generated
| Guide | Description |
|---|---|
| Work Environments | How to setup Codespaces, Local Docker, or Native LaTeX. |
| Git Workflow | Divergent branches, Codespace persistence, and branching. |
| More Usage Details | Templates, Copilot, Troubleshooting, and custom extensions. |
Tip
Don't stop at the Quick Start! We highly recommend reading through all the detailed guides above to fully master the TeamTex environment and its collaborative features.
