Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

booktabsbooktabs 命令行

Agent Skill

booktabs 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

4

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:booktabs(booktabs 命令行)
来源仓库:https://github.com/igbuend/grimbard
仓库路径:skills/booktabs
安装命令:
npx skills add https://github.com/igbuend/grimbard --skill booktabs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/igbuend/grimbard --skill booktabs

简介

提供专业的 LaTeX 表格样式指南,包含 booktabs、tabularx、multirow 等宏包用法。

  • 支持创建美观、对齐规范的学术和专业文档表格。
  • 涵盖从基础语法到多页表格的完整排版方案。
  • 安装方式:通过 npx 从 GitHub 仓库添加,适用于 Codex、Claude、Cursor、Gemini CLI。
  • 注意:需配合 LaTeX 编译环境使用,建议先测试模板效果再应用于正式文档。

SKILL.md

booktabs + tabularx + multirow + longtable — Professional Tables

CTAN: https://ctan.org/pkg/booktabs | https://ctan.org/pkg/tabularx Manual: texdoc booktabs

Setup

\usepackage{booktabs}    % professional horizontal rules
\usepackage{tabularx}    % auto-width columns
\usepackage{multirow}    % cells spanning rows
\usepackage{longtable}   % multi-page tables
\usepackage{colortbl}    % colored rows/cells (optional)
\usepackage{siunitx}     % number alignment (optional)

Ugly vs Professional — Before/After

❌ Bad Table

\begin{tabular}{|l|c|r|}
\hline
Name & Score & Grade \\ \hline
Alice & 95 & A \\ \hline
Bob & 82 & B \\ \hline
Carol & 78 & C \\ \hline
\end{tabular}

✅ Good Table

\begin{tabular}{lcc}
\toprule
Name  & Score & Grade \\
\midrule
Alice & 95    & A \\
Bob   & 82    & B \\
Carol & 78    & C \\
\bottomrule
\end{tabular}

Rules: Never use vertical lines. Never use \hline. Use \toprule, \midrule, \bottomrule.

booktabs Rules

CommandUse
\topruleTop of table (thicker)
\midruleBetween header and body
\bottomruleBottom of table (thicker)
\cmidrule(lr){2-4}Partial rule spanning columns 2–4
\addlinespaceExtra vertical space (group separator)
\addlinespace[5pt]Custom extra space

cmidrule Trimming

\cmidrule(l){1-2}   % trim left
\cmidrule(r){3-4}   % trim right
\cmidrule(lr){2-3}  % trim both
\cmidrule{1-4}      % no trim

Grouped Rows Example

\begin{tabular}{llr}
\toprule
Category & Item   & Price \\
\midrule
Fruit    & Apple  & 1.20 \\
         & Banana & 0.80 \\
\addlinespace
Dairy    & Milk   & 2.50 \\
         & Cheese & 4.00 \\
\bottomrule
\end{tabular}

tabularx — Auto-Width Columns

% X columns expand to fill \textwidth
\begin{tabularx}{\textwidth}{lXr}
\toprule
ID & Description & Price \\
\midrule
1  & A very long description that will wrap automatically & \$10 \\
2  & Short & \$20 \\
\bottomrule
\end{tabularx}
Column typeBehavior
l, c, rFixed (natural width)
XExpands to fill remaining space (left-aligned)
>{\centering\arraybackslash}XCentered X column
>{\raggedleft\arraybackslash}XRight-aligned X column
p{3cm}Paragraph, fixed width

multirow

\usepackage{multirow}

\begin{tabular}{lcr}
\toprule
\multirow{2}{*}{Name} & \multicolumn{2}{c}{Scores} \\
\cmidrule(l){2-3}
 & Math & English \\
\midrule
Alice & 95 & 88 \\
Bob   & 72 & 91 \\
\bottomrule
\end{tabular}

Syntax: \multirow{nrows}{width}{content} — use * for auto width.

\multicolumn{ncols}{alignment}{content} — built into LaTeX.

Complex Header Example

\begin{tabular}{lcccccc}
\toprule
& \multicolumn{3}{c}{Treatment A} & \multicolumn{3}{c}{Treatment B} \\
\cmidrule(lr){2-4} \cmidrule(lr){5-7}
Subject & Pre & Post & $\Delta$ & Pre & Post & $\Delta$ \\
\midrule
1 & 5.2 & 3.1 & $-2.1$ & 4.8 & 4.5 & $-0.3$ \\
2 & 6.1 & 2.8 & $-3.3$ & 5.5 & 5.2 & $-0.3$ \\
\bottomrule
\end{tabular}

longtable — Multi-Page Tables

\usepackage{longtable}

\begin{longtable}{lcc}
% Header for first page
\toprule
Name & Value & Unit \\
\midrule
\endfirsthead

% Header for continuation pages
\multicolumn{3}{l}{\textit{Continued from previous page}} \\
\toprule
Name & Value & Unit \\
\midrule
\endhead

% Footer for all pages except last
\midrule
\multicolumn{3}{r}{\textit{Continued on next page}} \\
\endfoot

% Footer for last page
\bottomrule
\endlastfoot

% Data rows
Alpha   & 1.0 & m \\
Beta    & 2.5 & kg \\
% ... many more rows ...
Omega   & 9.9 & s \\

\caption{Long experimental data.}
\label{tab:longdata}
\end{longtable}

Note: longtable replaces tabular entirely (not inside table environment). Caption and label go inside.

colortbl — Row and Cell Coloring

\usepackage{colortbl}
\usepackage[table]{xcolor}  % or load xcolor with table option

% Colored row
\rowcolor{blue!10}
Alice & 95 & A \\

% Colored cell
Alice & \cellcolor{green!20} 95 & A \\

% Alternating row colors (xcolor table option)
\rowcolors{2}{gray!10}{white}  % start at row 2, alternate
\begin{tabular}{lcc}
\toprule
\rowcolor{white}  % override for header
Name & Score & Grade \\
\midrule
Alice & 95 & A \\  % gray
Bob & 82 & B \\    % white
Carol & 78 & C \\  % gray
\bottomrule
\end{tabular}

siunitx S Columns — Number Alignment

\usepackage{siunitx}

\begin{tabular}{l S[table-format=3.2] S[table-format=1.3]}
\toprule
{Material} & {Density} & {Error} \\
\midrule
Steel      & 785.00    & 0.050 \\
Aluminum   & 270.00    & 0.120 \\
Titanium   & 450.00    & 0.008 \\
Gold       & 1932.00   & 0.300 \\
\bottomrule
\end{tabular}

S column: Aligns numbers by decimal point. Wrap text headers in {...}.

S optionExampleMeaning
table-format3.23 digits. 2 decimals
table-format+2.1e3sign, digits, exponent
round-modeplacesRound to decimal places
round-precision2Number of decimal places

Full Example — Publication-Quality Table

\begin{table}[htbp]
  \centering
  \caption{Performance comparison of algorithms.}
  \label{tab:comparison}
  \begin{tabular}{l S[table-format=2.1] S[table-format=3.0] c}
    \toprule
    {Method} & {Accuracy (\%)} & {Time (ms)} & {Converged?} \\
    \midrule
    Baseline   & 72.3 & 150 & Yes \\
    Improved   & 85.1 & 230 & Yes \\
    Proposed   & 91.7 &  98 & Yes \\
    \addlinespace
    Oracle     & 99.2 &  45 & N/A \\
    \bottomrule
  \end{tabular}
\end{table}

Common Pitfalls

ProblemCauseFix
Vertical linesUsing `` in column spec
\hlineOld habitUse \toprule/\midrule/\bottomrule
Table too wideToo many columnsUse tabularx with X columns, or \resizebox
longtable in tableIncompatiblelongtable replaces table environment
\multirow misalignedRow height differencesAdd \rule{0pt}{2.5ex} or adjust manually
S column header errorText in S columnWrap header in {...}
Footnotes in table\footnote fails in tabularUse \tablefootnote (tablefootnote pkg) or threeparttable
booktabs + colortbl gapsRules have gaps with colorAdd \abovetopsep=0pt or use \arrayrulecolor

Tips

  • Three rules only: \toprule, \midrule, \bottomrule — almost never need more
  • Use \addlinespace to group rows visually instead of extra rules
  • Put \caption above the table (convention for tables, unlike figures)
  • \small or \footnotesize before tabular to shrink wide tables
  • threeparttable package for proper table footnotes
  • \arraystretch to adjust row height: \renewcommand{\arraystretch}{1.2}

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.14%
按下载量换算27

Claude

31.42%
按下载量换算23

Cursor

16.89%
按下载量换算12

Gemini CLI

8.98%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills