当前位置:网站首页>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⎭⎬⎫
边栏推荐
- C#生成putty格式的ppk文件(支持passphrase)
- Ranger plug-in development (Part 2)
- Random ball size, random motion collision
- A proper job is a good job
- Luogu p1144 shortest circuit count
- Techo youth 2022 academic year college open class: behind the live broadcast of Lianmai, explore how to apply audio and video technology
- Error msb8031: building an MFC project for a non Unicode character set is deprecated
- 【原创】 PLSQL 索引排序优化
- MySQL variables, stored procedures and functions
- Multi graph explanation of resource preemption in yarn capacity scheduling
猜你喜欢
Error 2059 when Navicat connects to MySQL
CentOS installation starts redis
2022-2028 global ICT test probe industry research and trend analysis report
From January 11, 2007 to January 11, 2022, I have been in SAP Chengdu Research Institute for 15 years
Stack frame
Ranger plug-in development (Part 2)
剑指 Offer 18. 删除链表的节点
What should I do without 50W bride price
【原创】 PLSQL 索引排序优化
Cmu15445 (fall 2019) project 1 - buffer pool details
随机推荐
Using Excel to quickly generate SQL statements
C # Generate PPK files in Putty format (passthrough support)
left join左连接匹配数据为NULL时显示指定值
实验八 T-sql,存储过程
2022-2028 global elevator emergency communication system industry research and trend analysis report
Bugku CTF daily one question dark cloud invitation code
MySQL storage engine
Some views on libco
NATs cluster deployment
2022-2028 global electric yacht industry research and trend analysis report
2022-2028 global ICT test probe industry research and trend analysis report
How to specify the number of cycles in JSTL- How to loop over something a specified number of times in JSTL?
ArrayList analysis 1-cycle, capacity expansion, version
2022-2028 global single travel industry research and trend analysis report
深度学习的历史
Deployment of mini version message queue based on redis6.0
HDU 2488 A Knight's Journey(DFS)
2022-2028 global weight loss ginger tea industry research and trend analysis report
Mindjet mindmanager2022 mind map decompression installer tutorial
Plot size and resolution with R markdown, knitr, pandoc, beamer