Forgot password
 Register account
View 156|Reply 1

[MathJax] 集合 { }

[Copy link]

3211

Threads

7832

Posts

52

Reputation

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}$

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster 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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:49 GMT+8

Powered by Discuz!

Processed in 0.011163 seconds, 23 queries