Forgot password?
 Register account
View 241|Reply 1

[MathJax] 集合 { }

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-12-23 05:11 |Read mode
Last edited by 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}
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}$

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 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}}
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|Discuz Math Forum

2025-6-5 01:23 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit