当前位置:网站首页>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⎭⎬⎫
边栏推荐
- P4学习——p4runtime
- 20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking
- $watch will not trigger data change - $watch not firing on data change
- The principle and related problems of acid in MySQL
- 魔王冷饭||#101 魔王解惑数量多与质量;员工管理;高考志愿填报;游戏架构设计
- MySQL storage engine
- 给按钮的边框和文字设置不同的背景色
- Exercise and health
- 实验八 T-sql,存储过程
- Can JDBC based on openjdk connect to MySQL?
猜你喜欢

NE555波形发生器手把手教程之NE555内部结构(一)

Line number of Jenkins pipeline script execution exception

2022-2028 global capsule shell industry research and trend analysis report

Redis - understand the master-slave replication mechanism

2022-2028 global weight loss ginger tea industry research and trend analysis report

2022-2028 global ICT test probe industry research and trend analysis report

P4 learning - p4runtime

Multi graph explanation of resource preemption in yarn capacity scheduling

P4学习——Basic Tunneling

Redis - cache penetration, cache breakdown, cache avalanche
随机推荐
[untitled]
The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
From January 11, 2007 to January 11, 2022, I have been in SAP Chengdu Research Institute for 15 years
2022-2028 global mobile scanning radiology room industry survey and trend analysis report
Stack frame
20220215-ctf-misc-buuctf-einstein-binwalk analyze picture-dd command separate zip file -- look for password in picture attribute
[original] PLSQL index sorting optimization
2022-2028 global weight loss ginger tea industry research and trend analysis report
A detailed explanation of the implementation principle of go Distributed Link Tracking
2022-2028 global herbal diet tea industry research and trend analysis report
20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)
The programmer's girlfriend gave me a fatigue driving test
Some views on libco
MySQL storage engine
On the application of cluster analysis in work
Can JDBC based on openjdk connect to MySQL?
C#生成putty格式的ppk文件(支持passphrase)
2022-2028 global encrypted external hard disk industry research and trend analysis report
20220216 misc buuctf another world WinHex, ASCII conversion flag zip file extraction and repair if you give me three days of brightness zip to rar, Morse code waveform conversion mysterious tornado br
C WinForm program interface optimization example