Forgot password?
 Create new account
View 129|Reply 1

[MathJax] 集合 { }

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2022-12-23 05:11:15 |Read mode
Last edited by hbghlyj at 2023-2-16 13:40:00在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}
Copy the Code

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}$.
Copy the Code

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2022-12-23 05:17: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}}
Copy the Code

可以用来写集合\(\set{U_\lambda}{\lambda \in \Lambda}\)、数列\(\seq a n\)
  1. 集合\(\set{U_\lambda}{\lambda \in \Lambda}\)、数列\(\seq a n\)
Copy the Code

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

手机版Mobile version|Leisure Math Forum

2025-4-20 22:14 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list