当前位置:网站首页>How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary

How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary

2022-07-08 00:12:00 chengwei1128

Preface

CSDN Of Markdown The editor does not have the function of directly inserting formulas .

So when we want to insert mathematical formulas into our blog , Can use LaTex To achieve .

CSDN It's supporting LaTeX Of mathematical formulas , But it does not support native LaTeX The mathematical formula , You need to convert . For example, enter directly in the editor LaTex The formula \prod \frac{a}{b}, It will not be displayed successfully , You need to add $ To display successfully .

Reference material

  1. https://blog.csdn.net/piupiu78/article/details/115867386
  2. https://blog.csdn.net/ygdxt/article/details/82288735

1. The basic format

1.1 The formula between lines

The formula between lines : That is, the formula is not on the same line as the current text .
Format :

$$ The formula $$

1.2 In line formula

In line formula : The formula is on the same line as the current text .
Format :

$ The formula $

2. The actual use LaTex Ways and means

2.1 With the help of LaTex Online editor

We can start at LaTeX Write the mathematical formula in the mathematical formula editor , And then CSDN Just make a conversion in the blog OK 了 .

common LaTex Online editor :LaTex Online editor 1
 Insert picture description here

2.2 stay Markdown Enter directly in the editor LaTex Formula grammar

This method needs to be remembered LaTex Formula grammar .

Recommended tutorials :Cmd Markdown Formula guide

Here is a summary of commonly used :

2.2.1 arithmetic

 Insert picture description here

2.2.2 Power exponential pair

 Insert picture description here
Superscript with ’^’, Subscript with ’_’;
If there is more than one symbol in the superscript or the following table , Please use ’{}’ Cover up .

原网站

版权声明
本文为[chengwei1128]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130552084891.html