MathJax公式总结基本用法行内公式
跨行公式
字符普通字符在数学公式中含义一样,除了 # \$ \% \& \~ _ \^ { }; 若要在数学环境中表示这些符号,需要分别表示为\# \$ \% \& \_ \{ \},即在个字符前加上\。 上标和下标用 ^ 来表示上标,用 _ 来表示下标,看一简单例子:
效果: n∑i=1ai=0
f(x)=xxx 这里有更多的LaTeX上标下标的设置 希腊字母
效果: α A β B γ Γ δ Δ ϵ Eε ζ Z η H θ Θ ϑι I κ K λ Λ μ M ν Nξ Ξ o O π Π ϖ ρ Pϱ σ Σ ς τ T υ Υϕ Φ φ χ X ψ Ψ ω Ω 分数及开方
效果: 14
表示开平方:√x4
表示开 n 次方: zxsq−anti−bbcode−4√(a+b)4 矢量
效果: →a⋅→b=0 累乘
n∏i=01i2 省略号(3个点)\ldots 表示跟文本底线对齐的省略号;\cdots表示跟文本中线对齐的省略号, 比如:
效果: f(x1,xx,…,xn)=x21+x22+⋯+x2n 括号和分隔符() 和 [zxsq-anti-bbcode- ] 和 | 对应于自己; {} 对应于 { }; || 对应于 |。 当要显示大号的括号或分隔符时,要对应用 \left 和 \right,如:
效果: f(x,y,z)=3y2z(3+7x+51+y2) \left. 和 \right. 只用与匹配,本身是不显示的,比如,要输出: 则用 dudx|x=0 多行的数学公式
效果: $$ \begin{eqnarray} \cos 2\theta & = & \cos^2 \theta - \sin^2 \theta \\ & = & 2 \cos^2 \theta - 1. \end{eqnarray} $$ 其中&是对其点,表示在此对齐。 *使latex不自动显示序号,如果想让latex自动标上序号,则把*去掉 矩阵
The characteristic polynomial χ(λ) of the 3×3~matrix (abcdefghi)
is given by the formula
χ(λ)=|λ−a−b−c−dλ−e−f−g−hλ−i|. c表示向中对齐,l表示向左对齐,r表示向右对齐。 导数(Derivatives)
效果:dudt and d2udx2 respectively. The mathematical symbol ∂ is produced using \partial.
效果: $$\frac{\partial u}{\partial t} = h^2 \left( \frac{\partial^2 u}{\partial x^2}
极限(Limits)
效果: $$\lim{x \to +\infty}, \inf{x > s} , \supK 求和(Sum)
效果:
$$\sum{i=1}^{2n}. 积分(Integrals)
效果: ∫baf(x)dx. The integral sign is typeset using the control sequence \int, and the limits of integration (in this case a and b are treated as a subscript and a superscript on the integral sign. Most integrals occurring in mathematical documents begin with an integral sign and contain one or more instances of d followed by another (Latin or Greek) letter, as in dx, dy and dt. To obtain the correct appearance one should put extra space before the d, using \,.
效果: ∫+∞0xnexdx=n!. ∫cosθdθ=sinθ. $$ \int{x^2 + y^2 \leq R^2} f(x,y)\,dx\,dy = \int{\theta=0}^{2\pi} \int_{r=0}^R f(r\cos\theta,r\sin\theta) r\,dr\,d\theta.$$ ∫R02xdx1+x2=log(1+R2). In some multiple integrals (i.e., integrals containing more than one integral sign) one finds that LaTeX puts too much space between the integral signs. The way to improve the appearance of of the integral is to use the control sequence \! to remove a thin strip of unwanted space. 特殊字符关系运算符±:\pm ×:\times ÷:\div ∣:\mid ∤:\nmid ⋅:\cdot ∘:\circ ∗:\ast ⨀:\bigodot ⨂:\bigotimes ⨁:\bigoplus ≤:\leq ≥:\geq ≠:\neq ≈:\approx ≡:\equiv ∑:\sum ∏:\prod ∐:\coprod 集合运算符∅:\emptyset ∈:\in ∉:\notin ⊂:\subset ⊃:\supset ⊆:\subseteq ⊇:\supseteq ⋂:\bigcap ⋃:\bigcup ⋁:\bigvee ⋀:\bigwedge ⨄:\biguplus ⨆:\bigsqcup 对数运算符log:\log lg:\lg ln:\ln 三角运算符⊥:\bot ∠:\angle 30°:30^∘:\circ sin:\sin cos:\cos tan:\tan cot:\cot sec:\sec csc:\csc 微积分运算符′:\prime ∫:\int ∬:\iint ∭:\iiint ⨌:\iiiint ∮:\oint lim:\lim ∞:\infty ∇:\nabla 逻辑运算符∵:\because ∴:\therefore ∀:\forall ∃:\exists ≠:\not= ≯:\not> ⊄:\not\subset 戴帽符号ˆy:\hat{y} ˇy:\check{y} ˘y:\breve{y} 连线符号¯a+b+c+d:\overline{a+b+c+d} a+b+c+d_:\underline{a+b+c+d} $\overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0}$:\overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0} 箭头符号↑:\uparrow ↓:\downarrow ⇑:\Uparrow ⇓:\Downarrow →:\rightarrow ←:\leftarrow ⇒:\Rightarrow ⇐:\Leftarrow ⟶:\longrightarrow ⟵:\longleftarrow ⟹:\Longrightarrow ⟸:\Longleftarrow |
|小黑屋|手机版|知行技术社区
( 湘ICP备11020288号-1 )
GMT+8, 2022-5-31 14:44 , Processed in 0.046855 second(s), 12 queries , Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.