# latex-writing

The latex-writing skill reviews LaTeX documents for best practices: correct list environments for key-value pairs, csquotes for quotation marks, cleveref for cross-references.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 2 installs · ★ 224 repo stars
- Author: NeverSight
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/dbosk/claude-skills/latex-writing/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/latex-writing

## What it does

The skill activates when editing .tex and .nw files or when LaTeX, BibTeX, or document formatting comes up. It focuses on three core practices: using `description` instead of `itemize` for label-definition pairs (API parameters, configuration options, glossaries), proper `\enquote{}` instead of straight quotes, and cross-references via `\cref{}` rather than `\ref{}` with manual prefixes.

For literate programming in .nw files, the skill recommends `[[code]]` notation instead of `\texttt{}` with manual underscore escaping—this handles special characters automatically and keeps source readable. It works alongside the literate-programming skill when both are active.

The skill catches common mistakes: mixing itemize and description, forgotten escapes in .nw, broken cross-references. It needs no dependencies—it's guidance for how the AI should write LaTeX.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/latex-writing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/latex-writing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/latex-writing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/latex-writing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install NeverSight/learn-skills.dev data/skills-md/dbosk/claude-skills/latex-writing
```

2. **Manually: put the files in place**
- File: `.github/skills/latex-writing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/NeverSight/learn-skills.dev --path data/skills-md/dbosk/claude-skills/latex-writing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/latex-writing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/dbosk/claude-skills/latex-writing/SKILL.md

## When to use it
- Choose the right list environment (description for labeled items, itemize for simple elements)
- Apply semantic markup instead of manual formatting
- Write identifiers in .nw files using `[[code]]` without manual escaping
- Create cross-references with proper prefixes via cleveref
- Audit LaTeX files for adherence to best practices

## Example prompts
- Fix this list — use description if items have labels instead of itemize
- Review my .nw file, especially identifiers with underscores
- Rewrite these cross-references using `\cref{}` instead of hardcoded prefixes

## Similar
- [latex-tables](https://affpapa.org/en/nevibecode/skills/latex-tables.md) — skill · 242 installs
- [MagicTeX](https://affpapa.org/en/nevibecode/mcp/magictex.md) — MCP server · ★ 5 repo stars
- [latex-paper-en](https://affpapa.org/en/nevibecode/skills/latex-paper-en.md) — skill · 6200 installs
- [latex-posters](https://affpapa.org/en/nevibecode/skills/k-dense-ai-latex-posters.md) — skill · 2300 installs
- [latex-formatting](https://affpapa.org/en/nevibecode/skills/latex-formatting.md) — skill · 2300 installs
- [latex-document-skill](https://affpapa.org/en/nevibecode/skills/latex-document-skill.md) — skill · 608 installs

From the same set: [neversight/learn-skills.dev](https://affpapa.org/en/nevibecode/by/neversight/learn-skills.dev.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
