LaTeX公式
行内公式 -$公式$
行间公式 -$$公式$$
使用需要用到的包
\usepackage{mathrsfs}
\usepackage{amsmath}
\newcommand
\newcommand{\fr}{\frac} % 类似于宏定义,将\frac 用\fr 表示
\numberwithin
\numberwithin{equation}{section} % 公式按照节来编号。
mathtype上粘贴公式
mathtype必须有如下设置:
% 从mathtype上粘贴
\[\mathop {
\lim }\limits_{
x \to \infty } \sqrt {
{
a^2} + {
b^2}} \]
公式标号
\begin{equation}
\end{equation}
% 公式标号
\begin{equation}\label{label}
\mathop {\lim }\limits_{x \to \infty } \sqrt {
{a^2} + {b^2}} %从mathtype复制过来的公式要删点引导符号' \[ \]'
% 标号是从章节来确定。
\end{equation}
subequations更低一级的编号(a,b,c…)
% subequations更低一级的编号。
\begin{subequations}
\begin{equation}\label{label}
\mathop {\lim }\limits_{x \to \infty } \sqrt {
{a^2} + {b^2}}
%从mathtype复制过来的公式要删点引导符号' \[ \]'
% 标号是从章节来确定。
\end{equation}
\begin{equation}\label{label}
\mathop {\lim }\limits_{x \to \infty } \sqrt {
{a^2} + {b^2}} %从mathtype复制过来的公式要删点引导符号' \[ \]'
% 标号是从章节来确定。
\end{equation}
\end{subequations}
公式加框 \boxed{公式}
% 公式加框 \boxed{公式}
\begin{equation}\label{label}
\boxed{
\mathop {\lim }\limits_{x \to \infty } \sqrt {
{a^2} + {b^2}}
}%从mathtype复制过来的公式要删点引导符号' \[ \]'
% 标号是从章节来确定。
\end{equation}
公式两种表示
一 - $$
% 分数 \frac{
分子}{
分母}
$$\fr{
1}{
2}$$
二 - []
% 使用[]来表示公式
\[\fr{
1}{
6}\]
求和公式-\sum
% 求和公式
$$\sum^6_{i=1}i^2$$ % 需要导入mathrsfs包
其他的特殊公式 \mathop 置于顶端
%其他的特殊公式
$${\rm adb}^a_b$$
$$\mathop{
{\rm adb}}^a_b$$
重要公式极限
% 重要公式极限
$$\lim_{
n\to\infty}(1+\fr{
1}{
n})^n=e$$
美化
% 处理一下括号 变为大括号
$$\lim_{
n\to\infty}\left(1+\fr{
1}{
n}\right)^n=e$$
理解\left和\right
\left \right 成对出现,且前后不能调换。
% 深层次理解
$$\lim_{
n\to\infty}\left. (1+\fr{
1}{
n}\right)^n=e$$ % 左括号不变,右括号变大
微积分
% 微积分
$$ \frac{\partial y}{\partial x}|^{y_1=4}_{y_1=1}$$
使用\left\right后
% 微积分
$$\left. \frac{
\partial y}{
\partial x}\right|^{
y_1=4}_{
y_1=1}$$
array矩阵
% 矩阵 array (与表格用法相似) 只需在公式外边加上$$$$即可
$$\begin{array}{clr}
123&456&678\\
1&3&8\\
278&2&923\\
\end{array}
$$
带上括号的矩阵
% 加上大括号
$$
\left[\begin{
array}{
clr}
123&456&678\\
1&3&8\\
278&2&923\\
\end{
array}\right]
$$
五种形式矩阵–bmatrix,Bmatrix, pmatrix, vmatrix, Vmatrix
1.
$$
\begin{
bmatrix}
123&456&678\\
1&3&8\\
278&2&923\\
\end{
bmatrix}
$$
⎡⎣⎢123