MCPInstall

docs-latex

Convert Markdown to LaTeX with TikZ and compile to PDF. Use when wanting a presentation-quality PDF, a professional report with diagrams, or print-ready documentation.

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

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/laurigates/claude-plugins --skill docs-latex
  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 docs-latex 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.

Markdown to LaTeX Conversion

Convert Markdown documents to professional LaTeX with advanced typesetting, TikZ/PGFPlots visualizations, and PDF compilation.

When to Use This Skill

Use this skill when...Use another skill when...
Converting Markdown to presentation-quality PDFWriting Markdown documentation (/docs:generate)
Creating reports with diagrams and visualizationsSimple text formatting
Generating print-ready strategic documentsCreating HTML documentation
Building lifecycle reports with charts and timelinesSyncing existing docs (/docs:sync)

Context

  • Current directory: !pwd
  • Available .md files: !find . -maxdepth 2 -name '*.md' -not -name 'CHANGELOG.md' -not -name 'README.md'

Parameters

  • <file>: Path to the Markdown source file (required)
  • --no-compile: Generate .tex file only, skip PDF compilation
  • --visualizations: Include TikZ/PGFPlots diagrams (timelines, charts, risk matrices)
  • --report-type: Document structure preset
    • roadmap: Phase-based roadmap with timeline visualization
    • lifecycle: Project lifecycle with release charts and velocity graphs
    • general: Standard professional document (default)

Execution

Execute this Markdown-to-LaTeX conversion workflow:

Step 1: Analyze the Markdown source

Read the source Markdown file and extract:

  • Document title and metadata
  • Section hierarchy (map # levels to LaTeX chapters/sections)
  • Tables, lists, code blocks, callout blocks, and blockquotes
  • Priorities or status indicators for color-coded markers
  • Numerical data suitable for visualization

Step 2: Generate the LaTeX document

Create a .tex file adjacent to the source. Use the document preamble, color definitions, custom environments, and conversion rules from REFERENCE.md.

Apply the Markdown-to-LaTeX conversion rules:

MarkdownLaTeX
# Title\chapter{Title}
## Section\section{Section}
### Subsection\subsection{Subsection}
**bold**\textbf{bold}
*italic*\textit{italic}
`code`\texttt{code}
- item\begin{itemize}\item ...\end{itemize}
1. item\begin{enumerate}\item ...\end{enumerate}
> quote\begin{tcolorbox}...\end{tcolorbox}
[text](url)\href{url}{text}
Tablesbooktabs tables with \toprule, \midrule, \bottomrule
Code blocks\begin{lstlisting}...\end{lstlisting}
- [ ] / - [x]$\square$ / $\boxtimes$ (requires amssymb)

Step 3: Add visualizations (when --visualizations or data suggests it)

Choose appropriate TikZ/PGFPlots visualizations based on document content. Use the visualization templates from REFERENCE.md:

  • Timeline for roadmaps with phases
  • Bar/pie charts for release or metric data
  • Risk matrix for documents with risk/impact data
  • Test pyramid for QA/testing documents

Step 4: Compile to PDF

  1. Install LaTeX toolchain if not available:
    apt-get update && apt-get install -y texlive-latex-extra texlive-fonts-recommended \
      texlive-fonts-extra texlive-science latexmk
    
  2. Compile with two passes for cross-references:
    pdflatex -interaction=nonstopmode DOCUMENT.tex
    pdflatex -interaction=nonstopmode DOCUMENT.tex
    
  3. If compilation fails, check REFERENCE.md for common compilation fixes.

Step 5: Clean up repository artifacts

Add LaTeX build artifacts to .gitignore if not already present: *.aux, *.log, *.out, *.toc, *.lof, *.lot, *.fls, *.fdb_latexmk, *.synctex.gz, *.bbl, *.blg, *.nav, *.snm, *.vrb.

Post-actions

  1. Report the output PDF path, page count, and file size
  2. Summarize what visualizations were generated
  3. List any compilation warnings that may need attention
  4. Suggest the .gitignore additions if not already present

Agentic Optimizations

ContextCommand
Check LaTeX installedwhich pdflatex 2>/dev/null
Quick compilepdflatex -interaction=nonstopmode -halt-on-error FILE.tex
Full compile (with TOC)pdflatex -interaction=nonstopmode FILE.tex && pdflatex -interaction=nonstopmode FILE.tex
Check PDF page countpdfinfo FILE.pdf 2>/dev/null
Check PDF file sizestat -f %z FILE.pdf 2>/dev/null
Install toolchainapt-get install -y texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-science
Errors onlypdflatex -interaction=nonstopmode FILE.tex 2>&1

For detailed LaTeX patterns, TikZ templates, and package reference, see REFERENCE.md.

FAQ

What does the docs-latex skill do?

Convert Markdown to LaTeX with TikZ and compile to PDF. Use when wanting a presentation-quality PDF, a professional report with diagrams, or print-ready documentation.

How do I install docs-latex?

Run npx skills add https://github.com/laurigates/claude-plugins --skill docs-latex 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/docs-latex/ (personal) or .claude/skills/docs-latex/ (project).

Which AI agents can use docs-latex?

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 docs-latex 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 docs-latex?

It is published by laurigates in laurigates/claude-plugins. It has 89 recorded installs.

More from laurigates/claude-plugins

View all →

python-code-quality

laurigates/claude-plugins

Python code quality with ruff and ty. Use when the user mentions ruff, ty, linting, formatting, type checking, or Python code style.

1K installs

ruff-linting

laurigates/claude-plugins

Open the skill to read its SKILL.md instructions.

465 installs

python-testing

laurigates/claude-plugins

Python testing with pytest, coverage, fixtures, and mocking. Use when the user mentions pytest, unit tests, coverage, fixtures, mocking, or writing Python tests.

Testing & QA428 installs

pytest-advanced

laurigates/claude-plugins

Advanced pytest: fixtures, markers, parametrization, parallel execution. Use when implementing test infrastructure, writing fixtures, or running with coverage.

Testing & QA352 installs

uv-workspaces

laurigates/claude-plugins

Manage multi-package Python projects with uv workspaces. Use when the user mentions uv workspaces, Python monorepo, shared lockfiles, or member dependencies.

321 installs

uv-project-management

laurigates/claude-plugins

Python project setup, deps, and lockfiles with uv. Use when the user mentions uv, creating Python projects, managing dependencies, lockfiles, or pyproject.toml.

320 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs