6miu-Markdown语法汇总

xiaoxiao2021-02-28  94

01 数学公式(MathJax)

字母语法字母语法AAα\alhpaBBβ\betaΓ\Gammaγ\gammaΔ\Deltaδ\deltaEEϵ\epsilonZZζ\zetaHHη\etaΘ\Thetaθ\thetaIIι\iotaKKκ\kappaΛ\Lambdaλ\lambdaMMμ\muNNν\nuΞ\Xiξ\xiOOο\omicronΠ\Piπ\piPPρ\rhoΣ\Sigmaσ\sigmaTTτ\tauΥ\Upsilonυ\upsilonΦ\Phiϕ\phiXXχ\chiΨ\Psiψ\psiΩOmegaω\omega

02 数学符号

运算符说明实例代码($$内)+加 x+y  x + y-减 xy  x - y\times乘 x×y  x \times y\cdot乘 xy  x \cdot y\ast乘 xy  x \ast y\div除 x÷y  x \div y\frac分数 xy   \frac{x}{y}^上标 x y   x ^ y_下标 x y   x _ y\sqrt开二次方 x     \sqrt x\sqrt开方 y 4 +3y1 − − − − − − − − −   x   \sqrt[x]{y^4+3y-1}\lceil和\rceil上取整 12   \lceil\frac12\rceil\lfloor 和 \rfloor下取整 12   \lfloor\frac12\rfloor\pm加减 x±y  x \pm y\mp减加 xy  x \mp y=等于 x=y  x = y\leq小于等于 xy  x \leq y\geq大于等于 xy  x \geq y\ngeq不大于等于 xy  x\ngeq y\not\geq不大于等于 xy  x \not\geq y\neq不等于 xy  x \neq y\approx约等于 xy  x \approx y\equiv恒等于 xy  x \equiv y\bigodot定义运算符 xy=x+y 2   xy=x+y 2   \bigotimes定义运算符 xy=x+y 2   x \bigotimes y=x+y^2\in属于 xy  x \in y\notin不属于 xy  x \notin y\subset子集 xy  x \subset y\not\subset非子集x \not\subset y $x \not\subset y\subseteq子集 xy  x \subseteq y\supset超集 xy  x \supset y\supseteq超集 xy  x \supseteq y\cup并 xy  x \cup y\cap交 xy  x \cap y\log对数 log(x)  \log(x)\overline平均数 x ¯   \overline{x}\overline连线符号 a+b+c+d ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯    \overline{a+b+c+d}\underline下划线 a+b+c+d − − − − − − − − − −    \underline{a+b+c+d}\overbrace上大括号 a+b+c        1.0 +d                  2.0   \overbrace{a+\underbrace{b+c}_{1.0}+d}^{2.0}\underbrace下大括号 a+d        3   \underbrace{a+d}_3\partial部分 xy   \frac{\partial x}{\partial y}\lim极限limx→∞\lim_{x\to\infty}\displaystyle块公式格式limx→∞\displaystyle \lim_{x\to\infty}\sum求和  n i=1   \sum_{i=1}^n\infty极限   i=0 i 2   \sum_{i=0}^\infty i^2\int积分  1 0 x 2 dx  \int_0^1 x^2 {\rm d}x\iint二重积分  D f(x,y)dσ  \iint_D f(x,y)d\sigma\oint曲面积分 e x+y ds  \oint e^{x+y} ds\ldots底端对齐的省略号 1,2,,n  1,2,\ldots,n\cdots中线对齐的省略号 x 2 1 +x 2 2 ++x 2 n   x_1^2 + x_2^2 + \cdots + x_n^2\uparrow上箭头   \uparrow\Uparrow上箭头   \Uparrow\vec向量 a    \vec{a}\hat拟合值 Y ^ =β ^  0 +β ^  1 X  \hat Y = \hat \beta_0 + \hat \beta_1X\bot垂直 AB  A \bot B\circ度 45    45^\circ

03 使用方法

在$…$中插入MathJax语法(只能在行内输入,不能换行):$S = \pi r^2$在$$…$$中插入MathJax语法(可以换行): $$ \Gamma(z) = \int_0^\infty t^{z-1} e^{-t} dt $$

效果: 1.在$…$中插入MathJax语法(只能在行内输入,不能换行):S=πr2 2.在$$…$$中插入MathJax语法(可以换行): Γ(z)=∫∞0tz−1e−tdt

附加内容:   1 2  3 4   ==>code:$\sideset{^1_2}{^3_4}\bigotimes$ 加空格:可以加 \空格,\quad 与 \qquad 的空格更大。 a bcdefghijk  ==>$a\ bcd\quad efghij\qquad k$ 换行:\ 1234567  ==>$1234\\567$ 括号自适应大小: (12 )  ==>$(\frac12)$ (12 )  ==>$ \left(\frac12\right)$ 方程组: ⎧ ⎩ ⎨ ⎪ ⎪ y=2x 2 +1y=4x;yz=x;   $\left\{\begin{array}\\y=2x^2+1\\{y=4x;}\\y-z=x; \end{array}\right.$

04 字体

语法字体例子效果\rm罗马体$\rm {你好,World,123}$ World123  \bf黑体$\bf {你好,World,123}$ World123  \Bbb黑板粗体字$\Bbb {你好,World,123}$ World123  \mit数学斜体$\mit {你好,World,123}$ World123  \scr小体大写字母$\scr {你好,World,123}$ World123  \it意大利体$\it {你好,World,123}$ World123  \cal花体$\cal {你好,World,123}$\cal {你好,World,123}\sf等线体$\sf {你好,World,123}$ World123  \tt打字机字体$\tt {你好,World,123}$ World123  \frakFraktur字母(一种德国字体)$\frak {你好,World,123}$ World123 

05 颜色

颜色代码效果black$\color{black}{你好,World!}$ World!  gray$\color{gray}{你好,World!}$ World!  silver$\color{silver}{你好,World!}$ World!  white$\color{white}{你好,World!}$ World!  maroon$\color{maroon}{你好,World!}$ World!  red$\color{red}{你好,World!}$ World!  yellow$\color{yellow}{你好,World!}$ World!  lime$\color{lime}{你好,World!}$ World!  olive$\color{olive}{你好,World!}$ World!  green$\color{green}{你好,World!}$ World!  teal$\color{teal}{你好,World!}$ World!  aqua$\color{aqua}{你好,World!}$ World!  blue$\color{blue}{你好,World!}$ World!  navy$\color{navy}{你好,World!}$ World!  purple$\color{purple}{你好,World!}$ World!  fuchsia$\color{fuchsia}{你好,World!}$$\color{fuchsia}{你好,World!}

06 矩阵

$|\left[ \begin{matrix} a & 0 & 5\\ 1 & 1 & 6\\ 2 & 3 & 7 \end{matrix} \right] \tag{tag}$ ⎡ ⎣ ⎢ a12 013 567 ⎤ ⎦ ⎥  (tag) 

转载请注明原文地址: https://www.6miu.com/read-70010.html

最新回复(0)