当前位置:网站首页>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⎭⎬⎫
边栏推荐
- Vulnerability discovery - App application vulnerability probe type utilization and repair
- 【日常记录】——对BigDecimal除法运算时遇到的Bug
- Oracle-数据完整性
- MySQL storage engine
- $watch will not trigger data change - $watch not firing on data change
- Kubernetes ---- pod configuration container start command
- Thoughts on the future of data analysis in "miscellaneous talk"
- Get to know the drawing component of flutter - custompaint
- P4学习——p4runtime
- Luogu p1168 median
猜你喜欢

剑指 Offer 19. 正则表达式匹配

P4学习——p4runtime

CTF tool (1) -- archpr -- including installation / use process

Multi graph explanation of resource preemption in yarn capacity scheduling

写给 5000 粉丝的一封信!

Get to know the drawing component of flutter - custompaint

Date类的实现

Set different background colors for the border and text of the button

What should I do without 50W bride price

Line number of Jenkins pipeline script execution exception
随机推荐
Experiment 8 T-SQL, stored procedure
Basic data structure of redis
C # generates PPK files in putty format (supports passphrase)
Problem solving: how to manage thread_local pointer variables
ArrayList分析1-循环、扩容、版本
写给 5000 粉丝的一封信!
P4学习——Basic Tunneling
What is the fastest way to import data from HDFS to Clickhouse? Spark is imported through JDBC or HDFS
Oracle data integrity
Redis - understand the master-slave replication mechanism
Set different background colors for the border and text of the button
Redis - sentinel mode
20220215-ctf-misc-buuctf-ningen--binwalk analysis --dd command separation --archpr brute force cracking
What is product thinking
Simple application example of rhai script engine
Cmu15445 (fall 2019) project 1 - buffer pool details
NATs cluster deployment
Double linked list: initialize insert delete traversal
2022-2028 global rotary transmission system industry research and trend analysis report
ArrayList analysis 1-cycle, capacity expansion, version