函数
三角函数
函数说明 | 语法 | 效果 |
---|---|---|
正弦函数 | $\sin\theta$ | sin θ \sin\theta sinθ |
余弦函数 | $\cos\theta$ | cos θ \cos\theta cosθ |
正切函数 | $\tan\theta$ | tan θ \tan\theta tanθ |
- | $\arcsin\frac{L}{r}$ | arcsin L r \arcsin\frac{L}{r} arcsinrL |
- | $\arccos\frac{T}{r}$ | arccos T r \arccos\frac{T}{r} arccosrT |
- | $\arctan\frac{L}{T}$ | arctan L T \arctan\frac{L}{T} arctanTL |
- | $\sinh g$ | sinh g \sinh g sinhg |
- | $\cosh h$ | cosh h \cosh h coshh |
- | $\tanh i$ | tanh i \tanh i tanhi |
其他函数
函数说明 | 语法 | 效果 |
---|---|---|
- | $\arg x$ | arg x \arg x argx |
- | $\deg x$ | deg x \deg x degx |
- | $\det x$ | det x \det x detx |
- | $\dim x$ | dim x \dim x dimx |
- | $\exp\!t$ | exp ​ t \exp\!t expt |
- | $\gcd(T,U,V,W,X)$ | gcd ( T , U , V , W , X ) \gcd(T,U,V,W,X) gcd(T,U,V,W,X) |
- | $\hom x$ | hom x \hom x homx |
- | $\inf s$ | inf s \inf s infs |
- | $\ker x$ | ker x \ker x kerx |
- | $\lg X$ | lg X \lg X lgX |
- | $\liminf I$ | lim inf I \liminf I liminfI |
- | $\limsup S$ | lim sup S \limsup S limsupS |
- | $\lim_{t\to n}T$ | lim t → n T \lim_{t\to n}T limt→nT |
- | $\ln X$ | ln X \ln X lnX |
- | $\log_\alpha X$ | log α X \log_\alpha X logαX |
- | $\log X$ | log X \log X logX |
- | $\max H$ | max H \max H maxH |
- | $\min L$ | min L \min L minL |
- | $\Pr x$ | Pr x \Pr x Prx |
- | $\sup t$ | sup t \sup t supt |
- | $\operatorname{argsh}k$ | argsh k \operatorname{argsh}k argshk |
- | $\operatorname{argch}l$ | argch l \operatorname{argch}l argchl |
- | $\operatorname{argth}m$ | argth m \operatorname{argth}m argthm |
- | $\operatorname{sh}j$ | sh j \operatorname{sh}j shj |
- | $\operatorname{ch}h$ | ch h \operatorname{ch}h chh |
- | $\operatorname{th}i$ | th i \operatorname{th}i thi |
说明
也许你会注意到很多函数名称,LaTex语法不能直接转义得到,此时可以使用
\operatorname{}
的方法。
这里总结两种思路
- 使用
\operatorname{函数名称}
,这种比较简单- 使用两个支持的函数名称拼接起来,比如 arg max \arg\max argmax, 其LaxTex代码为
$\arg\max$
,
当然也可使用$\operatorname{argmax}$
,这两种具体的区别可以参见下表
Latex代码 | 效果 | 说明 |
---|---|---|
$\operatorname{argmax}$ | argmax \operatorname{argmax} argmax | 连接紧密中间无空隙 |
$\arg\max$ | arg max \arg\max argmax | 中间有点空隙 |
$\arg\!\max$ | arg ​ max \arg\!\max argmax | 可以使用锁紧空格的方式消除空格 |
数学公式
上下标
$\sum_{i=1}^{n}$
,行内公式 显示为: ∑ i = 1 n \sum_{i=1}^{n} ∑i=1n$$\sum_{i=1}^{n}$$
,行间公式 显示为: ∑ i = 1 n \sum_{i=1}^{n} i=1∑n$\sum_\limits{i=1}^{n}$
,行内公式强制显示多行: ∑ i = 1 n \sum\limits_{i=1}^{n} i=1∑n$$\sum_\nolimits{i=1}^{n}$$
,行间公式强制显示一行: ∑ i = 1 n \sum\nolimits_{i=1}^{n} ∑i=1n