当前位置:网站首页>CSDN common complex formula template record
CSDN common complex formula template record
2022-07-01 00:55:00 【subtitle_】
introduction
I usually write CSDN Blog uses MarkDown, Sometimes I will strike a long formula , The formula supports LaTex Input , The display of the formula is very beautiful . But sometimes you may forget the specific formula template . For the convenience of future writing , Make a record , Don't remember to come back directly copy.
1. The formula is centered
To make the formula look good , Generally before and after Use two $, As an interline formula , So the formula is centered . And if you use one before and after $ It's an in-line formula .
The formula between lines
$$x=y+1$$
According to the effect Centered :
x = y + 1 x=y+1 x=y+1
In line formula
$x=y+1$
According to the effect Left aligned :
x = y + 1 x=y+1 x=y+1
In contrast , The inter line formula display is quite elegant ~ Two... Are recommended $!
2. Representation of matrix
Matrix should be a very common formula , The following points should be paid attention to when using :
<1> Before and after use environment
\begin{bmatrix}\end{bmatrix}
<2> stay Second in each line - The last matrix element Before using & alignment
<3> stay After the last matrix element in each row Use \\ Line break , Of course, the last row of the matrix does not need
Take the following example , You can copy the following code directly and modify your formula ~
$$\begin{
bmatrix}
a & b & c \\
d & ee &f \\
gx & h & i1
\end{
bmatrix}$$
According to the effect by :
[ a b c d e e f g x h i 1 ] \begin{bmatrix}a&b&c \\ d & ee &f \\ gx &h &i1\end{bmatrix} ⎣⎡adgxbeehcfi1⎦⎤
3. Left alignment of formula equal sign
Sometimes formula derivation has a continuous equal sign , At this time, if the equations are written in one line, it will be very long , You can consider writing a formula in a branch , The following points should be paid attention to when using :
<1> Before and after use environment
\begin{aligned}\end{aligned}
<2> stay Every line of the equation is preceded by an equal sign Use & alignment
<3> stay At the end of each line of the equation Use \\ Line break , Of course, the last line of the equation doesn't need
Take the following example , You can copy the following code directly and modify your formula ~
$$\begin{
aligned}
a&=b+1\\
&=c+2\\
&=dx-e
\end{
aligned}$$
According to the effect by :
a = b + 1 = c + 2 = d x − e \begin{aligned} a&=b+1\\ &=c+2\\ &=dx-e \end{aligned} a=b+1=c+2=dx−e
【 Notice the difference MarkDown Maybe the environment is different , For example, I use VScode Write Markdown The left alignment of the formula equal sign is used in \begin{align*} and \end{align*}.】
4. Braces combine multiple formulas
Sometimes a formula is solved by several conditions , In this case, you need to combine multiple formulas with curly braces , The following points should be paid attention to when using :
<1> How to write braces ( Note that
\{and.The combination of )
Left brace How to write it :\left\}\right.
Right brace How to write it :\left.\right\}
<2> stay Before the first symbol on each line of the formula Use & Align equal sign
<3> stay At the end of each line of the formula Use \\ Line break , Of course, the last line of the equation doesn't need
Take the following example , You can copy the following code directly and modify your formula ~
Left brace :
$$\left\{
\begin{
array}{
l}
&a=b+1 \\
&a=c+2 \\
&ad=dx-e
\end{
array}\right.$$
According to the effect by :
{ a = b + 1 a = c + 2 a d = d x − e \left\{\begin{array}{l} &a=b+1 \\ &a=c+2 \\ &ad=dx-e \end{array}\right. ⎩⎨⎧a=b+1a=c+2ad=dx−e
Right brace :
$$\left.\begin{
array}{
l}
&a=b+1 \\
&a=c+2 \\
&ad=dx-e
\end{
array}\right\}$$
According to the effect by :
a = b + 1 a = c + 2 a d = d x − e } \left.\begin{array}{l} &a=b+1 \\ &a=c+2 \\ &ad=dx-e \end{array}\right\} a=b+1a=c+2ad=dx−e⎭⎬⎫
边栏推荐
- CSDN常用复杂公式模板记录
- [DaVinci developer topic] -37- detail IRV: introduction to inter runnable variable + configuration
- Interface documentation system - Yapi
- Redis - how to understand publishing and subscribing
- Experiment 8 T-SQL, stored procedure
- leetcode 474. Ones and Zeroes 一和零(中等)
- The principle of journal node
- 【原创】 PLSQL 索引排序优化
- 2022-2028 global public address fire alarm system industry research and trend analysis report
- Vulnerability discovery - App application vulnerability probe type utilization and repair
猜你喜欢

Multi graph explanation of resource preemption in yarn capacity scheduling

The quantity and quality of the devil's cold rice 101; Employee management; College entrance examination voluntary filling; Game architecture design

Oracle-数据完整性

优质的水泵 SolidWorks模型素材推荐,不容错过

C language file operation for conquering C language

P4 learning - p4runtime

2022-2028 global rampant travel industry research and trend analysis report

Oracle-表的创建与管理

Confirm() method of window

NE555波形发生器手把手教程之NE555内部结构(一)
随机推荐
[DaVinci developer topic] -37- detail IRV: introduction to inter runnable variable + configuration
The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
Length of the longest integrable subarray
运动与健康
Authentication principle of Ranger plug-in
What should I do without 50W bride price
File reading and writing for rust file system processing - rust Practice Guide
leetcode 474. Ones and Zeroes 一和零(中等)
CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解
剑指 Offer 19. 正则表达式匹配
NE555波形发生器手把手教程之NE555内部结构(一)
Tibetan poem PTA
How to specify the number of cycles in JSTL- How to loop over something a specified number of times in JSTL?
History of deep learning
2022-2028 global public address fire alarm system industry research and trend analysis report
NATs cluster deployment
2022-2028 global electric yacht industry research and trend analysis report
Thoughts on the future of data analysis in "miscellaneous talk"
Integer to hexadecimal string PTA
The principle of journal node