latex-tables · terrylica — скилл для Claude Code: таблицы LaTeX на tabularray
Скилл latex-tables для Claude Code учит агента собирать таблицы LaTeX через tabularray с нуля и переписывать старые: задавать ширину колонок, выравнивание и линии.
MIT 242 установок ★ 3 обновлён 2026-10-25
npx skills add terrylica/cc-skills --skill latex-tables -a claude-codeЧто делает latex-tables
Скилл даёт агенту рабочий синтаксис tblr. Колонки фиксированной ширины задаются через Q[2cm], тянущиеся через X, жирная шапка через row{1}={font=\bfseries}, а линии включаются словами hlines и vlines прямо в colspec. Рядом с основной инструкцией лежат пять справочных файлов: шаблоны таблиц, описание колонок, линии и рамки, разбор ошибок и переезд с tabular и tabularx.
Пакет должен стоять в системе. Проверить это можно командой kpsewhich tabularray.sty, поставить пакет — sudo tlmgr install tabularray. Сам скилл ничего не устанавливает, он только называет нужные команды, поэтому в дереве TeX Live без tabularray.sty документ не скомпилируется, что бы агент ни написал в преамбуле.
Ещё скилл правит сам себя. Если инструкция оказалась неверной или пришлось искать обход, агент должен сразу обновить SKILL.md, а после выполнения задачи сверить файл с текущим поведением инструмента. Права на это у него есть: Read, Edit и Bash.
Какие задачи решает
- собрать таблицу с колонками фиксированной ширины
- перенести
longtableиtabularxнаtblr - починить таблицу, вылезающую за поля страницы
- включить перенос текста внутри ячеек
- найти причину ошибки в
colspec
Примеры запросов агенту
- Сверстай таблицу на
tblrс колонкамиQ[2cm]и линиями со всех сторон. - Перенеси
longtableизreport.texнаtabularray, ширины колонок оставь прежние. - Таблица уезжает за правое поле — поправь
colspecи включи перенос текста.
Как установить latex-tables
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill latex-tables -a claude-code2Вручную: положить файлы
~/.claude/skills/latex-tables/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/latex-tables/
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill latex-tables -a codex2Вручную: положить файлы
.agents/skills/latex-tables/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill latex-tables -a cursor2Вручную: положить файлы
.cursor/skills/latex-tables/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install terrylica/cc-skills plugins/doc-tools/skills/latex-tables2Вручную: положить файлы
.github/skills/latex-tables/SKILL.md1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill latex-tables -a gemini-cli2Командой платформы
gemini skills install https://github.com/terrylica/cc-skills --path plugins/doc-tools/skills/latex-tablesВручную: положить файлы
.devin/skills/latex-tables/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill latex-tables -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о latex-tables
Как установить latex-tables в Claude Code?
Выполните npx skills add terrylica/cc-skills --skill latex-tables -a claude-code. Файл скилла появится по пути ~/.claude/skills/latex-tables/SKILL.md.
Что делает latex-tables?
Подсказывает агенту синтаксис tabularray: ширины и выравнивание колонок, линии, стиль шапки. Отдельно разбирает типичные ошибки компиляции и переезд со старых пакетов.
Что нужно, чтобы таблицы собрались?
Установленный пакет tabularray. Проверка — kpsewhich tabularray.sty, установка — sudo tlmgr install tabularray.
Исходный текст
SKILL.md · MIT
---
name: latex-tables
description: LaTeX tables with tabularray package. TRIGGERS - LaTeX table, tabularray, fixed-width columns, table alignment.
allowed-tools: Read, Edit, Bash
---
# LaTeX Tables with tabularray
> **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:
- Creating tables with fixed-width columns
- Formatting complex table layouts
- Need precise column alignment
- Migrating from tabular/tabularx/longtable/booktabs
- Troubleshooting table overflow issues
## Quick Reference
## Why tabularray?
Modern LaTeX3 package (replaces old solutions):
- Fixed-width columns with proper alignment
- Clean, consistent syntax
- Replaces: `tabular`, `tabularx`, `longtable`, `booktabs`
- Better performance than legacy packages
- Part of TeX Live 2025
---
## Installation
```bash
# Check if installed
kpsewhich tabularray.sty
# If not found, install:
sudo tlmgr install tabularray
```
## Basic Usage
```latex
\documentclass{article}
\usepackage{tabularray} % Modern table package
\begin{document}
% Simple table
\begin{tblr}{colspec={ccc}, hlines, vlines}
Header 1 & Header 2 & Header 3 \\
Data 1 & Data 2 & Data 3 \\
\end{tblr}
\end{document}
```
---
## Quick Reference Card
```latex
% Minimal table
\begin{tblr}{colspec={ccc}}
A & B & C \\
\end{tblr}
% With all lines
\begin{tblr}{colspec={ccc}, hlines, vlines}
A & B & C \\
\end{tblr}
% Fixed widths
\begin{tblr}{colspec={Q[2cm] Q[3cm] Q[2cm]}, hlines}
A & B & C \\
\end{tblr}
% Bold header
\begin{tblr}{
colspec={ccc},
row{1}={font=\bfseries}
}
Header & Header & Header \\
Data & Data & Data \\
\end{tblr}
```
---
## Best Practices
1. Use Q[width] for fixed columns instead of p{width}
2. Specify widths explicitly when text might overflow
3. Use X for flexible columns that should expand
4. Style headers with row{1} instead of manual formatting
5. Use colspec for column properties, not inline commands
6. Check package version: `kpsewhich tabularray.sty` (should be recent)
---
## Reference Documentation
For detailed information, see:
- [Table Patterns](./references/table-patterns.md) - 5 common table patterns with examples
- [Column Specification](./references/column-spec.md) - Alignment options and width control
- [Lines and Borders](./references/lines-borders.md) - All lines, selective lines, thick lines
- [Troubleshooting](./references/troubleshooting.md) - Table too wide, text not wrapping, alignment issues
- [Migration](./references/migration.md) - Migrating from tabular and tabularx
**Official Docs**: Run `texdoc tabularray` for complete package documentation
**See Also**:
- Use `latex/setup` skill for installing tabularray package
- Use `latex/build` skill for compilation workflows
---
## Troubleshooting
| Issue | Cause | Solution |
| ------------------------ | ------------------------- | --------------------------------------------------- |
| Package not found | tabularray not installed | `sudo tlmgr install tabularray` |
| Table too wide | Fixed widths exceed page | Use smaller Q[width] values or X for flexible |
| Text not wrapping | Column spec missing width | Use Q[width] instead of c/l/r for wrapping |
| Alignment issues | Mixed column types | Ensure all columns have consistent spec |
| Compile error on colspec | Invalid syntax | Check for missing commas or typos in column spec |
| hlines not appearing | Missing from spec | Add `hlines` to the spec: `{colspec={...}, hlines}` |
| Row style not applied | Wrong row index | Remember row{1} is first row (1-indexed) |
| Package version too old | TeX Live outdated | `sudo tlmgr update --self --all` |
## 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.
© terrylica · MIT · terrylica/cc-skills
Похожие скиллы
Все скиллы по теме «Тексты и документация» →Сначала — latex-tables от других авторов.