MCPInstall

latex-setup

LaTeX environment setup on macOS. TRIGGERS - install LaTeX, MacTeX, Skim viewer, SyncTeX setup.

Installs
145
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/terrylica/cc-skills --skill latex-setup
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads latex-setup automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

LaTeX Environment Setup

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Installing LaTeX on a new machine
  • Setting up MacTeX distribution
  • Configuring Skim PDF viewer with SyncTeX
  • Verifying LaTeX installation
  • Troubleshooting missing packages

Quick Reference

Recommended Stack

ComponentPurposeStatus
MacTeX 2025Full LaTeX distribution (TeX Live 2025)✅ Recommended
Skim 1.7.11PDF viewer with SyncTeX support✅ macOS only
TeXShop 5.57Integrated LaTeX IDE (optional)✅ Native macOS

Quick Start

Install MacTeX

brew install --cask mactex
# Size: ~4.5 GB (includes everything)

Verify Installation

tex --version
# Expected: TeX 3.141592653 (TeX Live 2025)

pdflatex --version
latexmk --version

Test Compilation

echo '\documentclass{article}\begin{document}Hello World!\end{document}' > test.tex
pdflatex test.tex
ls test.pdf  # Verify PDF created

Post-Installation Checklist

  • Verify tex --version shows TeX Live 2025
  • Verify latexmk --version shows 4.86a+
  • Verify pdflatex test.tex creates PDF
  • Install Skim if using mactex-no-gui
  • Test SyncTeX: compile with -synctex=1 flag
  • Configure Skim preferences for editor integration
  • Add /Library/TeX/texbin to PATH if needed
  • Test package installation: sudo tlmgr install <package>

Reference Documentation

For detailed information, see:

  • Installation - Full MacTeX vs lightweight options, Skim installation
  • Verification - Check installation, verify PATH, test compilation
  • Package Management - Check, install, search for packages with tlmgr
  • Skim Configuration - Enable SyncTeX, configure preferences for editor integration
  • Troubleshooting - PATH issues, tlmgr problems, permissions

See Also:

  • Build Workflows: Use latex/build skill for latexmk automation
  • Table Creation: Use latex/tables skill for tabularray usage

Troubleshooting

IssueCauseSolution
tex command not foundPATH not configuredAdd /Library/TeX/texbin to PATH in shell profile
Permission denied (tlmgr)Need sudo for system packagesUse sudo tlmgr install <package>
Package not foundMissing from TeX LiveRun tlmgr search <package> to find correct name
Skim not showing PDFSyncTeX not enabledCompile with -synctex=1 flag
Outdated TeX LiveOld MacTeX versionRun sudo tlmgr update --self --all
Compilation hangsInfinite loop in documentCheck for circular includes or missing \end{}
Missing font errorFont not in TeX distributionInstall with tlmgr install <font-package>
Disk space errorFull TeX Live too largeConsider BasicTeX (smaller) if space limited

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

FAQ

What does the latex-setup skill do?

LaTeX environment setup on macOS. TRIGGERS - install LaTeX, MacTeX, Skim viewer, SyncTeX setup.

How do I install latex-setup?

Run npx skills add https://github.com/terrylica/cc-skills --skill latex-setup in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/latex-setup/ (personal) or .claude/skills/latex-setup/ (project).

Which AI agents can use latex-setup?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is latex-setup safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains latex-setup?

It is published by terrylica in terrylica/cc-skills. It has 145 recorded installs.

More from terrylica/cc-skills

View all →

mise-tasks

terrylica/cc-skills

Orchestrate multi-step project workflows using mise task definitions with dependency management and argument handling. Use whenever the user.

pandoc-pdf-generation

terrylica/cc-skills

PDF generation from markdown via Pandoc/XeLaTeX. TRIGGERS - markdown for PDF, print document, pandoc

Docs & Writing547 installs

mql5-indicator-patterns

terrylica/cc-skills

MQL5 indicator development patterns. TRIGGERS - MQL5 indicator, OnCalculate, indicator buffers, MetaTrader 5.

501 installs

Python logging with loguru, structlog, and orjson. TRIGGERS - loguru, structlog, structured logging

DevOps & Cloud402 installs

gdrive-access

terrylica/cc-skills

Access Google Drive via CLI with 1Password OAuth: list files, download, and sync folders. TRIGGERS - google drive, gdrive, drive folder, download drive, sync drive.

Backend & APIs356 installs

chezmoi-workflows

terrylica/cc-skills

Open the skill to read its SKILL.md instructions.

297 installs

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs