700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > LaTeX公式语法大全

LaTeX公式语法大全

时间:2019-10-23 03:21:07

相关推荐

LaTeX公式语法大全

Typora插入公式

行内公式:$$

块间公式:快捷键 Ctrl+Shift+M 或 $$ 回车

希腊字母

粗体字母

可用于矢量加粗

$\boldsymbol{\alpha}$α\boldsymbol{\alpha}α

花体字母

\mathbb{R}R\mathbb{R}R

$\mathcal{R}R\mathcal{R}R

$\mathscr{R}R\mathscr{R}R

其他字体

清除字母斜体,即使用罗马字体{\rm text}

其他的字体还有:

\rm罗马体

\it意大利体

\bf黑体

\cal花体

\sl倾斜体

\sf等线体

\mit数学斜体

\tt打字机字体

\sc小体大写字母

基本运算符

± :\pm

× :\times

÷:\div

∣:\mid

∼\sim∼:\sim

⋅:\cdot

KaTeX parse error: Undefined control sequence: \bigdot at position 1: \̲b̲i̲g̲d̲o̲t̲:\bigdot(注:LaTeX中需导入宏包\usepackage{graphicx}

∙\bullet∙:\bullet

∘:\circ

∗:\ast

⨀:\bigodot

⨂:\bigotimes

⨁:\bigoplus

≤:\leq

≥:\geq

≠:\neq

≈:\approx

≡:\equiv

∑:\sum

∏:\prod

∐:\coprod

上下标

xa+bx^{a+b}xa+bx^{a+b}

y2k+1y_{2k+1}y2k+1​y_{2k+1}

分式

12\frac{1}{2}21​\frac{1}{2}

根式

2\sqrt{2}2​\sqrt{2}

23\sqrt[3]{2}32​\sqrt[3]{2}

矢量

a⃗\vec{a}a\vec{a}

集合运算符

∅:\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

微积分运算符

y′y^\primey′:y^\prime

∫:\int

∬ :\iint

∭ :\iiint

⨌:\iiiint

∮ :\oint

lim :\lim

∞ :\infty

∇:\nabla

逻辑运算符

∵:\because

∴ :\therefore

∀ :\forall

∃ :\exists

≠ :\not=

≯:\not>

⊄:\not\subset

戴帽符号

y^\hat{y}y^​ :\hat{y}

yˇ\check{y}yˇ​:\check{y}

y˘\breve{y}y˘​:\breve{y}

连线符号

a+b+c+d‾\overline{a+b+c+d}a+b+c+d​\overline{a+b+c+d}

a+b+c+d‾\underline{a+b+c+d}a+b+c+d​\underline{a+b+c+d}

a+b+c⏟1.0+d⏞2.0\overbrace{a+\underbrace{b+c}_{1.0}+d}^{2.0}a+1.0b+c​​+d​2.0​\overbrace{a+\underbrace{b+c}_{1.0}+d}^{2.0}

箭头符号

↑:\uparrow

↓:\downarrow

⇑ :\Uparrow

⇓:\Downarrow

→:\rightarrow

← :\leftarrow

⇒ :\Rightarrow

⇐ :\Leftarrow

⟶\longrightarrow⟶ :\longrightarrow

⟵\longleftarrow⟵:\longleftarrow

⟹\Longrightarrow⟹:\Longrightarrow

⟸\Longleftarrow⟸:\Longleftarrow

需要转义的字符

要输出字符空格#$%&_{}

用命令 \空格\#\$%\&\_\{\}

在符号下面加符号

ai\mathop{a}\limits_{i}ia​\mathop{a}\limits_{i}

矩阵

\left[ \matrix{ 1 & x & x^2\\ 1 & y & y^2\\ 1 & z & z^2 } \right]

KaTeX parse error: Undefined control sequence: \matrix at position 8: \left[ \̲m̲a̲t̲r̲i̲x̲{ 1 & x & x^2…

行列式

X=\left| \begin{matrix} x_{11} & x_{12} & \cdots & x_{1d}\\ x_{21} & x_{22} & \cdots & x_{2d}\\ \vdots & \vdots & \ddots & \vdots \\ x_{11} & x_{12} & \cdots & x_{1d}\\ \end{matrix} \right|

X=∣x11x12⋯x1dx21x22⋯x2d⋮⋮⋱⋮x11x12⋯x1d∣X=\left| \begin{matrix} x_{11} & x_{12} & \cdots & x_{1d}\\ x_{21} & x_{22} & \cdots & x_{2d}\\ \vdots & \vdots & \ddots & \vdots \\ x_{11} & x_{12} & \cdots & x_{1d}\\ \end{matrix} \right|X=∣∣∣∣∣∣∣∣∣​x11​x21​⋮x11​​x12​x22​⋮x12​​⋯⋯⋱⋯​x1d​x2d​⋮x1d​​∣∣∣∣∣∣∣∣∣​

等于号上面写东西

a\xlongequal[abc]{def}ba=abcdefba\xlongequal[abc]{def}badefabc​b

长括号

\bigg [[\bigg [[

\Bigg [[\Bigg [[

公式对齐

\begin{align*}

&= * \\

&= * \\

&= *

\end{align*}

示例:

KaTeX parse error: No such environment: align* at position 7: \begin{̲a̲l̲i̲g̲n̲*̲}̲ \int^\pi_0f(x)…

分段函数

f(n)=

\begin{cases}

n/2, & \text{if n is even}\\

3n+1,& \text{if n is odd}

\end{cases}

f(n)=

\left\{

n/2, & if n is even\\

3n+1,& if n is odd

\right.

f(n)={n/2,ifniseven3n+1,ifnisoddf(n)= \begin{cases} n/2, & \text{if $n$ is even}\\ 3n+1,& \text{if $n$ is odd} \end{cases} f(n)={n/2,3n+1,​ifnisevenifnisodd​

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。