Skip to content

yursds/TeamTex

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:
    • Codespace (VS Code - Recommended): Install GitHub Codespaces extension in VS Code, Ctrl+Shift+P > Create New Codespace. (Lowest latency)
    • Codespace (Browser): Open repo on GitHub > Code > Codespaces > Create codespace. (Zero setup)
    • Local Dev Container: Clone repo, open in VS Code, and click Reopen in Container. (Offline / Local Docker)
  3. Wait for the environment to load.
  4. Open main.tex and start typing. Every save (Ctrl + S) compiles automatically!
  5. Find your PDF in the build/ folder.

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors