找回密码
 快速注册
搜索
查看: 47|回复: 1

[MathJax] 集合 { }

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-12-23 05:11 |阅读模式
本帖最后由 hbghlyj 于 2023-2-16 13:40 编辑 在TeXSE @gented的回答中:
LaTeX puts at your disposal the package braket that helps you creating beautiful sets, kets and bras for the Dirac notation. In particular
  1. \set{U_\lambda}
  2. \ket{\psi}
  3. \bra{\phi}
复制代码

do the job as simple as that as shown below:
Let $A=\set{x\mid \psi(x)>0}$; also, given
$\ket{\psi}\in\mathcal{H}$, then $\psi(x)\coloneqq\braket{x|\psi}$.
  1. Let $A=\set{x\mid \psi(x)>0}$; also, given
  2. $\ket{\psi}\in\mathcal{H}$, then $\psi(x)\coloneqq\braket{x|\psi}$.
复制代码

刚发现MathJax也支持\set \ket \bra
例如
$\set{U_\lambda}$
$\ket{\psi}$
$\bra{\phi}$
\Set
$\Set{1\over2}$

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-12-23 05:17
这里定义了$\newcommand{\set}[2]{\left\{ #1 : #2 \right\}}\newcommand{\seq}[2]{(#1_{#2})_{#2\inℕ}}$
  1. \newcommand{\set}[2]{\left\{ #1 : #2 \right\}}
  2. \newcommand{\seq}[2]{(#1_{#2})_{#2\in\N}}
复制代码

可以用来写集合\(\set{U_\lambda}{\lambda \in \Lambda}\)、数列\(\seq a n\)
  1. 集合\(\set{U_\lambda}{\lambda \in \Lambda}\)、数列\(\seq a n\)
复制代码

但是这样就不能再使用一元的\set (报错missing argument for \set)
相当是定义了二元的\set覆盖了原来的一元的\set

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:30

Powered by Discuz!

× 快速回复 返回顶部 返回列表