淡水鱼写于18/5/2020
一些常用的Latex数学符号,每次在写markdown用到这些数学符号的时候,总是要百度搜,以后可以翻阅我的简书啦。







在slide中空一行
\\ \hspace*{\fill} \\
无穷
\infty
此部分内容摘自:https://blog.csdn.net/sinat_38816924/article/details/84347665


上面有些公式的排版,看上那种,直接在下面找代码就好。
如果没有的话,这篇文章的公式类型很多:LaTeX技巧207:使用align环境输入多行公式的技巧
导言区要加上,amsmath宏包
如果想有编号,可以用gather,align

\documentclass{article}
\usepackage{ctex}
\usepackage{amsmath}
\usepackage{amssymb}%花体字符
\begin{document}
\begin{gather}%会产生编号
a+b=b+a\\
ab=ba
\end{gather}
\begin{gather*}%不会产生编号
a \times b=b \times a\\
ab=ba
\end{gather*}
\begin{gather}%会编号
a+b=b+a \notag \\%\notag阻止编号
ab=ba \notag %\notag阻止编号
\end{gather}
%align和align*环境(用\$对齐)
\begin{align}
x &= t + \cos t + 1\\
y &= 2\sin t
\end{align}
%split环境(用$对齐)(一个公式分为多行排版)
\begin{equation}
\begin{split}
\cos 2x &= \cos^2 x - \sin^2 x\\
&= 2\cos^2 x - 1
\end{split}
\end{equation}
%case环境
%每行公式使用&分割成两部分
%通常表示值和后面的条件
\begin{equation}
D(x) = \begin{cases}
1, &\text{如果} x \in \mathbb{Q}\\%mathbb花体字符
0, &\text{如果} x \in \mathbb{R}\setminus\mathbb{Q}
\end{cases}%\text是为了在数学公式中处理中文
\end{equation}
\end{document}
此部分摘自:https://blog.csdn.net/weixin_43748786/article/details/100851307
latex如何输出花体字母
引用包
\usepackage{amsthm,amsmath,amssymb}
\usepackage{mathrsfs}
命令语句
$\mathbb{R}$
$\mathcal{R}$
$\mathscr{R}$
以下是不同效果

网友评论