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

amsmathamsmath 命令行

Agent Skill

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

总安装

214

周安装

9

GitHub Stars

4

下载量

75
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

amsmath 提供 LaTeX 数学排版所需的核心宏包,包含方程环境、符号扩展及定理环境支持。

  • 适用于生成编号/无编号公式、多行对齐表达式及特殊数学符号渲染等文档编写需求。
  • 推荐组合使用 amssymb 和 mathtools 以获得完整符号集与增强功能,简化导入流程。
  • 安装方式为 GitHub 仓库克隆,实际使用需在 TeX 发行版中加载相应宏包即可生效。
  • amsmath 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

amsmath + amssymb + mathtools — Math Typesetting

CTAN: https://ctan.org/pkg/amsmath | https://ctan.org/pkg/mathtools Manual: texdoc amsmath, texdoc mathtools

Setup

\usepackage{amsmath}    % core math environments
\usepackage{amssymb}    % extra symbols (loads amsfonts)
\usepackage{mathtools}  % fixes + extensions for amsmath (loads amsmath)
\usepackage{amsthm}     % theorem environments

% mathtools loads amsmath, so you can just use:
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsthm}

Equation Environments

Single Equations

% Numbered
\begin{equation}
  E = mc^2
  \label{eq:einstein}
\end{equation}

% Unnumbered
\begin{equation*}
  E = mc^2
\end{equation*}
% or: \[ E = mc^2 \]

align — Multiple Aligned Equations

\begin{align}
  f(x) &= x^2 + 2x + 1 \label{eq:f} \\
       &= (x+1)^2       \label{eq:f2}
\end{align}

% Unnumbered: align*
% Suppress single number: \nonumber or \notag before \\

gather — Centered, No Alignment

\begin{gather}
  x + y = 1 \\
  x - y = 3
\end{gather}

multline — Long Single Equation

\begin{multline}
  f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 \\
    + a_4 x^4 + a_5 x^5 + a_6 x^6
\end{multline}

First line left-aligned, last line right-aligned, middle centered.

split — Sub-alignment Inside equation

\begin{equation}
\begin{split}
  f(x) &= a + b + c \\
       &\quad + d + e
\end{split}
\end{equation}

Single equation number for the group.

cases

\begin{equation}
  |x| = \begin{cases}
    x  & \text{if } x \geq 0 \\
    -x & \text{if } x < 0
  \end{cases}
\end{equation}

% mathtools: dcases (displaystyle), rcases (right brace)
\begin{dcases}
  \frac{x}{2} & x > 0 \\
  0            & x = 0
\end{dcases}

aligned / gathered — Inline Sub-environments

% Use inside equation or \[ \] for sub-alignment
\begin{equation}
  \left\{
  \begin{aligned}
    2x + 3y &= 7 \\
    x - y   &= 1
  \end{aligned}
  \right.
\end{equation}

subequations

\begin{subequations} \label{eq:system}
\begin{align}
  x + y &= 1 \label{eq:system_a} \\
  x - y &= 3 \label{eq:system_b}
\end{align}
\end{subequations}
% Produces (1a), (1b)

Environment Summary

EnvironmentAlignmentNumberingUse for
equationcenteredone numbersingle equation
align& columnsper linealigned equations
gathercenteredper lineunrelated equations
multlinefirst L, last Rone numberlong equation
split& columnsone number (parent)sub-align in equation
cases& columnsnone (in equation)piecewise functions
aligned& columnsnone (in equation)inline sub-alignment
flalign& columnsper linefull-width alignment

Add * for unnumbered variants (except split, aligned, gathered).

Text in Math

\text{if }           % normal text (respects surrounding font)
\mathrm{const}       % upright roman
\textit{word}        % italic text
\mathit{diff}        % math italic (different spacing than default)
\mathbf{v}           % bold (not for Greek — use \boldsymbol)
\boldsymbol{\alpha}  % bold Greek
\mathbb{R}           % blackboard bold: ℝ (amssymb)
\mathcal{L}          % calligraphic: ℒ
\mathfrak{g}         % Fraktur (amssymb)
\mathsf{X}           % sans-serif
\mathtt{code}        % monospace
\operatorname{span}  % upright operator (one-off)

Spacing in Math

CommandWidthExample
\,3/18 em (thin)\int f(x)\, dx
\: or \>4/18 em (medium)
\;5/18 em (thick)
\!−3/18 em (negative thin)\!\! to tighten
\quad1 emx \quad y
\qquad2 em
\phantom{x}space of "x"alignment trick
\hphantom{x}horizontal only
\vphantom{x}vertical only

Operators

% Built-in: \sin, \cos, \tan, \log, \ln, \exp, \min, \max,
%   \sup, \inf, \lim, \det, \dim, \ker, \gcd, \Pr, \hom, ...

% Custom operator (preamble)
\DeclareMathOperator{\tr}{tr}       % like \sin
\DeclareMathOperator*{\argmax}{arg\,max}  % limits below in display

% Usage
\tr(A) = \sum_i a_{ii} \qquad x^* = \argmax_x f(x)

Matrices

\begin{pmatrix} a & b \\ c & d \end{pmatrix}   % ( )
\begin{bmatrix} a & b \\ c & d \end{bmatrix}   % [ ]
\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}   % { }
\begin{vmatrix} a & b \\ c & d \end{vmatrix}   % | |  (determinant)
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}   % ‖ ‖
\begin{matrix}  a & b \\ c & d \end{matrix}    % no delimiters

% Small inline matrix
$\bigl(\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\bigr)$

Max columns default = 10. For more: \setcounter{MaxMatrixCols}{20}

Delimiters

% Auto-sizing (use sparingly — can oversize)
\left( \frac{a}{b} \right)
\left[ \sum_i x_i \right]
\left\{ x \in \mathbb{R} \mid x > 0 \right\}
\left. \frac{df}{dx} \right|_{x=0}   % \left. = invisible delimiter

% Manual sizing (preferred for control)
\bigl(  \bigr)    % slightly bigger
\Bigl(  \Bigr)    % bigger
\biggl( \biggr)   % even bigger
\Biggl( \Biggr)   % biggest

% mathtools paired delimiters (best approach)
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\DeclarePairedDelimiter\norm{\lVert}{\rVert}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\DeclarePairedDelimiter\set{\{}{\}}

% Usage:
\abs{x}       % |x|  (no sizing)
\abs*{x}      % \left|x\right|  (auto-sizing)
\abs[\big]{x} % \bigl|x\bigr|  (manual)

mathtools Additions

% Colon equals
\coloneqq   % :=
\eqqcolon   % =:

% dcases (displaystyle fractions in cases)
\begin{dcases} ... \end{dcases}

% rcases (right brace)
\begin{rcases} ... \end{rcases}

% Short intertext (less vertical space than \intertext)
\begin{align}
  f(x) &= x^2 \\
  \shortintertext{where}
  x &> 0
\end{align}

% Prescript (left sub/superscript)
\prescript{14}{6}{\mathrm{C}}   % ¹⁴₆C

% Cramped styles
\cramped{x^{x^x}}  % reduces height

% Smashed operator limits
\smashoperator{\sum_{i=1}^{n}}

Symbol Reference

Greek Letters

LowerUpperLowerUpper
\alpha α\nu ν
\beta β\xi ξ\Xi Ξ
\gamma γ\Gamma Γ\pi π\Pi Π
\delta δ\Delta Δ\rho ρ
\epsilon ε\sigma σ\Sigma Σ
\varepsilon ε\tau τ
\zeta ζ\upsilon υ\Upsilon Υ
\eta η\phi ϕ\Phi Φ
\theta θ\Theta Θ\varphi φ
\iota ι\chi χ
\kappa κ\psi ψ\Psi Ψ
\lambda λ\Lambda Λ\omega ω\Omega Ω
\mu μ

Variants: \varepsilon, \vartheta, \varphi, \varrho, \varsigma

Relations

SymbolCommandSymbolCommand
\leq\geq
\ll\gg
\neq\approx
\sim\simeq
\equiv\cong
\propto\in
\notin\subset
\subseteq\supset
\supseteq\not\subset
\prec\succ
\perp\parallel
\vdash\dashv
\models

Binary Operators

SymbolCommandSymbolCommand
±\pm\mp
×\times÷\div
·\cdot\ast
\oplus\otimes
\cup\cap
\vee\wedge
\circ\bullet
\dagger\ddagger

Arrows

SymbolCommandSymbolCommand
\to / \rightarrow\leftarrow
\Rightarrow\Leftarrow
\leftrightarrow\Leftrightarrow
\mapsto\longrightarrow
\uparrow\downarrow
\Uparrow\Downarrow
\nearrow\searrow
\implies\impliedby
\iff
\hookrightarrow\twoheadrightarrow

Big Operators

SymbolCommandSymbolCommand
\sum\prod
\int\oint
\iint\iiint
\bigcup\bigcap
\bigoplus\bigotimes
\bigvee\bigwedge
\coprod

Dots

CommandOutputUse
\cdotsbetween operators: $a + \cdots + z$
\ldotsin lists: $a_1, \ldots, a_n$
\vdotsvertical
\ddotsdiagonal (matrices)

Misc Symbols (amssymb)

SymbolCommandSymbolCommand
\mathbb{R}\mathbb{C}
\mathbb{Z}\mathbb{N}
\mathbb{Q}\emptyset / \varnothing
\infty\partial
\nabla\ell
\hbar\forall
\exists¬\neg
\sqrt{x}ⁿ√\sqrt[n]{x}
\angle\triangle
\top\bot
\spadesuit\clubsuit

Accents

CommandResultUse
\hat{a}âunit vectors
\bar{a}āaverages, conjugates
\vec{a}a⃗vectors
\dot{a}ȧtime derivative
\ddot{a}äsecond derivative
\tilde{a}ãapproximations
\widehat{abc}wide hatspanning
\widetilde{abc}wide tildespanning
\overline{abc}overlinesets, conjugates
\underline{abc}underline
\overbrace{a+b}^{n}over-bracegrouping
\underbrace{a+b}_{n}under-bracegrouping

Theorem Environments (amsthm)

\usepackage{amsthm}

% Define theorem types (preamble)
\newtheorem{theorem}{Theorem}[section]     % numbered by section
\newtheorem{lemma}[theorem]{Lemma}         % shares theorem counter
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}[theorem]{Proposition}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

% Usage
\begin{theorem}[Pythagoras]
  For a right triangle: $a^2 + b^2 = c^2$.
\end{theorem}

\begin{proof}
  Obvious. % ends with □ automatically
  % Use \qedhere to place □ at end of equation:
  % \[ a^2 + b^2 = c^2 \qedhere \]
\end{proof}

Theorem Styles

StyleBody fontHeaderUse for
plain (default)italicboldtheorems, lemmas
definitionuprightbolddefinitions, examples
remarkuprightitalicremarks, notes

Common Pitfalls

ProblemCauseFix
$$...$$TeX primitive, bad spacingUse \[...\] or equation*
eqnarrayBad spacing around =Use align instead (always)
Equation number on wrong line\\ after last lineRemove trailing \\
\left...\right across linesCan't span \\Use \bigl...\bigr manually
Bold Greek\mathbf doesn't workUse \boldsymbol{\alpha}
Missing \displaystyleFractions small inlineUse \dfrac (or \displaystyle\frac)
:= spacing wrongColon treated as relationUse \coloneqq (mathtools)
\mid vs `\ vs `Different spacing
Overfull hbox in equationEquation too wideUse multline, split, or manual breaks
Proof box missing\qed inside environmentUse \qedhere at the end

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.73%
按下载量换算28

Claude

29.74%
按下载量换算22

Cursor

20.31%
按下载量换算15

Gemini CLI

9.94%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills