f(x)=∫−∞∞f(^ξ),e2πiξxdξa=b+c=e+f[1a2b3c]EψEf(x)=Hψ=−2mℏ2∂x2∂2ψ+21mωx2ψ=−2mℏ2[4k2x2f(x)+2(−2kx)f′(x)+f′′(x)]e−kx2+21mωx2f(x)e−kx2⇓=−2mℏ2[4k2x2f(x)−4kxf′(x)+f′′(x)]+21mωx2f(x)=−2mℏ2[−4kxf′(x)+f′′(x)]Expanding the Hamiltonian OperatorUsing the ansatz ψ(x)=e−kx2f(x), hoping to cancel the x2 termRemoving the e−kx2 term from both sidesChoosing k=2imℏω to cancel the x2 term, via −2mℏ24k2=21mω
Warn
Due to limitations in the underlying parsing library, block math in Quartz requires the $$ delimiters to be on newlines like above.
Inline Math
Similarly, inline math can be rendered by delimiting math expression with a single $. For example, $e^{i\pi} = -1$ produces eiπ=−1
Escaping symbols
There will be cases where you may have more than one $ in a paragraph at once which may accidentally trigger MathJax/Katex.
To get around this, you can escape the dollar sign by doing \$ instead.
For example:
Incorrect: I have $1 and you have $2 produces I have 1andyouhave2
Correct: I have \$1 and you have \$2 produces I have $1 and you have $2
Using mhchem
Add the following import to the top of quartz/plugins/transformers/latex.ts (before all the other
imports):
Customization
Latex parsing is a functionality of the Latex plugin. See the plugin page for customization options.