Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamTex (TMT)

Version Docker Build LaTeX Build License: MIT Repo Size Open in GitHub Codespaces

TeamTex is a lightweight and customizable LaTeX environment built for Dev Containers, GitHub Codespaces, and robust local usage.


TeamTex Meme

TL;DR (Quick Start)

  1. Click "Use this template" on GitHub to create your own repository.

  2. Open the environment:

    Local Setup (Standard)

    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 biblatex
    biblatex 3.15 numeric citation style
    csquotes Recommended by biblatex

    Quick install per platform:

    Platform Command
    Ubuntu/Debian sudo apt install texlive-full biber latexmk
    Fedora sudo dnf install texlive-scheme-medium texlive-biblatex texlive-csquotes biber latexmk
    macOS brew install --cask mactex (or brew install --cask basictex + tlmgr install everything)
    Windows Install MiKTeX or TeX Live

    VS Code Extensions (system-wide):

    Extension ID Purpose
    LaTeX Workshop James-Yu.latex-workshop Auto compilation, PDF preview, SyncTeX
    Live Share ms-vsliveshare.vsliveshare Real-time collaboration with multiple people

    Then:

    git clone <repository-url>
    code <project-folder>

    Open main.tex and start writing. Every save (Ctrl + S) compiles automatically!

    Or use GitHub Codespace

    • 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)
  3. Wait for the environment to load.

  4. Find the PDF in the build/ folder.


Working Together (Real-Time Collaboration)

TeamTex supports collaborative writing through Live Share (ms-vsliveshare.vsliveshare), pre-configured in the container.

  1. Open the project in VS Code.
  2. Click the Live Share icon in the sidebar (or Ctrl+Shift+P > Live Share: Start Collaboration Session).
  3. Share the link with your collaborators — they can edit the .tex files and see the compilation in real time.

PDF Sync: All participants see the same compiled PDF by opening build/main.pdf with the built-in LaTeX Workshop viewer.


Workspace Directory Handling

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.


More Usage Details

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.


Table of Contents

  1. Compiling the Project
  2. Exporting (ZIP & PDF)
  3. Detailed Guides

Compiling the Project

The project is specifically configured to keep the root directory clean by routing all files into the build/ directory.

Option A: VS Code / Codespace (Recommended)

  1. Open main.tex.
  2. Saving (Ctrl + S) triggers automatic compilation.
  3. Use the TeX sidebar icon for manual builds or to view the PDF.

Option B: Terminal

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/

Exporting (ZIP & PDF)

Download PDF

  • Codespaces / Remote: Right-click main.pdf in the build/ folder > Download.
  • Local Dev Container: The PDF is already in your local build/ folder.

Download Source (ZIP)

To get a clean archive of your source code (excluding build files and Git history):

  • Run ./export_source.sh in 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.

Detailed Guides

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.


About

TeamTex is a lightweight and customizable LaTeX environment built for Dev Containers, GitHub Codespaces, and robust local usage.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages