MathJax 基础教程

  1. Greek letters

    FormulaSymbolFormulaSymbolFormulaSymbolFormulaSymbol
    \alphaα\AlphaA\nuν\NuN
    \betaβ\BetaB\xiξ\XiΞ
    \gammaγ\GammaΓ\omicronο\OmicronO
    \deltaδ\DeltaΔ\piπ\PiΠ
    \epsilon
    \varepsilon
    ϵ
    ε
    \EpsilonE\rho
    \varrho
    ρ
    ϱ
    \RhoR
    \zetaζ\ZetaZ\sigma
    \varsigma
    σ
    ς
    \SigmaΣ
    \etaη\etaH\tauτ\TauT
    \theta
    \vartheta
    θ
    ϑ
    \ThetaΘ\upsilonυ\UpsilonΥ
    \iotaι\IotaI\phi
    \varphi
    ϕ
    φ
    \PhiΦ
    \kappaκ\KappaK\chiχ\ChiX
    \lambdaλ\LambdaΛ\psiψ\PsiΨ
    \muμ\MuM\omegaω\OmegaΩ



    Some capital Greek letters are the same as the Roman equivalents, so they are not separated in LATEX. For a capital beta, one must use something like \mathrm{B}: B.

  2. Superscripts & Subscripts
    use ^ for superscripts and _ for subscripts.
    x_i^2 is x2i

  3. Groups
    use { and }.
    10^10 is 1010, 10^{10} is 1010

  4. Parentheses

    FormulaSymbolFormulaSymbol
    (( ) )
    [[ ] ]
    \{{\{}
    || | |
    \langle\rangle
    \lceil\rceil
    \lfloor\rfloor



    These do not scale with the formula in between, so if you write (\frac12) the parentheses will be too small:(12). Using \left(\right) will make the sizes adjust automatically to the formula they enclose: \left(\frac12\right) is (12).
    There are also invisible parentheses, denoted by.: \left.\frac12\right\rbrace is 12}.

  5. Fractions
    \frac ab applies to the next two groups, and produces ab.And \frac{a+1}{b+1} is a+1b+1.
    For more complicated, use \over, {a+1\over b+1} is a+1b+1.

  6. Sums and integrals

    FormulaSymbolFormulaSymbol
    \int\iint
    \prod\sum
    \bigcup\bigcap



    The subscript is the lower limit and the superscript is the upper limit, so for example \sum_1^n is n1; \sum_{i=0}^\infty i^2 is i=0i2.

  7. Radical signs
    Use sqrt, which adjusts to the size of its argument: \sqrt{x^3} is x3;\sqrt[3]{\frac xy} is xy3.
    For complicated expressions, consider using {...}^{1/2} instead, for example {\left(\frac 13\right)}^{\frac 12} is (ab)12.

  8. Special functions
    Such as “lim”, “sin”, “max”, “ln”, and so on are normally set in roman font instead of italic font. Use \lim, \sin, etc. to make these: \sin x sinx, not sin x sinx. Use subscripts to attach a notation to \lim: \lim_{x\to 0}

    limx0
  9. Special symbols and Notations
    Some of the most common include:

    • \lt < \gt > \le \ge \neq . \not\lt (not recommended).
    • \times × \div ÷ \pm ± \mp . \cdot is a centered dot: xy
    • \cup \cap \setminus \subset \subseteq \subsetneq \supset \in \notin \emptyset \varnothing
    • {n+1 \choose 2k} or \binom{n+1}{2k} (n+12k)
    • \to \rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto
    • \land \lor \lnot ¬ \forall \exists \top \bot \vdash \vDash
    • \star \ast \oplus \circ \bullet
    • \approx \sim \simeq \cong \equiv \prec
    • \infty \aleph_0 \nabla \partial \Im I`\Re` R
    • For modular equivalence, use \pmod like this: a\equiv b\pmod n ab(modn)
    • a_1, a_2, \ldots ,a_n a1,a2,,an; a_1+a_2+\cdots+a_n a1+a2++an
    • Script lowercase l is \ell
  10. Spaces
    a␣b and a␣␣␣␣b are both ab. To add more space, use \,, for a thin space ab \; for a wider space ab. \quad and \qquad are large spaces: ab, ab.

  11. Text
    Use \text{…}, \{x\in s\mid x\text{ is extra large}\} is {xsx is extra large}

  12. Accents and diacritical marks
    \hat x x^, \widehat{xy} xyˆ,
    \bar x x¯, \overline{xyz} xyz¯¯¯¯¯,
    \vec, x⃗ , \overrightarrow xy \overleftrightarrow xyz,
    \frac d{dx}x\dot x = \dot x^2 + x\ddot x ddxxx˙=x˙2+xx¨

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值