Article Directory
Typora basic syntax
It is less used, so always check it every time you use it, and record it for easy reference.
1. Code block
// ```(即键盘上ESC按键的下面那个符号)后面跟上你的程序语言后缀,就能实现代码块的插入
// 例如:```c ```cpp ```java ```py
2. Titles at all levels
// #后面空一格,再加上标题内容就可以实现一级标题
// ##后面空一格,再加上标题内容就可以实现二级标题
// ###后面空一格,再加上标题内容就可以实现三级标题
// ####后面空一格,再加上标题内容就可以实现四级标题 (后面依此类推)
// 例如:# 一级标题
// 例如:## 二级标题
// 例如:### 三级标题
// 例如:#### 四级标题
// 例如:##### 五级标题
3. Font settings
// 加粗: **这里是加粗的文字**
// 代码高亮显示: ==while(我会年入百万吗);==
// 文字删除线条: ~~这里是你不想要的文字~~
// 斜体: *这里是斜体内容*
// 特别说明: 高亮显示要在 菜单栏-->文件-->偏好设置-->Markdown-->Markdown扩展语法-->勾选高亮功能,并且重启Typora软件
4. Reference function
// >填你想要写的内容
// >>填你想要写的内容
// >>>填你想要写的内容
// 有几个追引符号就会显示几条竖线,具体效果可以自己尝试
5. Dividing line
// ---
// ***
// 三个连字符 或者 三个*号 都会产生分割线,具体效果可以自己尝试
6. Insert picture
// ![填入你给图片取的名字](填入该图片的路径)
// 例如:![Windows桌面背景图](D:\我的图片库\背景图.png)
7. Insert the table
// 鼠标右键点击插入表格即可(快捷键ctrl + T)
8. Insert a hyperlink
// [填入超链接的提示文字](填入具体的链接地址)
// 例如:[我的博客](https://juejin.cn/user/4244547267205688)
9. Unordered Lists
// - 输入你想创建的列表标题的名字
// 注意:连字符-后面有一个空格
10. Ordered list
// 数字后面跟一个点,再空一格,然后写列表的标题名称
// 例如:3. 第三章
After editing the content of the article, press "ctrl + slash" to display the source code input of the entire article
11. Mathematical formula
-
Open Typora and select the math module.
There are three ways to open it:Click "Paragraph" --> "Formula Block"
shortcut key ctrl + shift +m
"$$" + Enter -
Add Mathematical Formulas
To output beautiful mathematical formulas, you need to know their formats and codes!
ps: Sometimes formula blocks cannot be deleted in Typora, it may be a software bug, Ctrl + / opens the source code mode, where you can delete
ei π + 1 = 2 e^{i\pi + 1} = 2eiπ+1=2
3. Commonly used functions:
$$
1、x^2 //上下标
2、1/2 //分式1
3、\frac{1}{2} //分式2
4、\cdots //省略号
5、\sqrt{4} //开根号
6、\vec{a} //矢量
7、\int{x}dx //积分1
8、\int_{1}^{2}dx //积分2
9、\lim{a + b} //极限1
10、\lim_{n\rightarrow + \infty} //极限2
11、\sum_{n=1}^{100}{a_n} //累加
12、\prod_{n=1}^{199}{x_n} //累乘
13、\sin{(x + y)} //三角函数
14、\ln2 //对数函数1
15、\log_28 //对数函数2
$$
12. Shortcut keys
Commonly used shortcut keys
to insert tables : option
+ command
+T
No serial number : -
or*
Ordinal number : add .
"space" after the Arabic numerals
Exit serial number status : "Press Enter twice", or press command
+[
Insert hyperlink : command
+K
Bold text : command
+B
Text italics : command
+I
Underline text : command
+U
Strikethrough : control
+ shift
+ ` (the key above the tab key)
Text bold, text italic, text underline, strikethrough , can be combined and superimposed at will
Title : command
+ 1
; command
+ 2
...; command
+7
Paragraph (text) : command
+0
Horizontal dividing line : 3 or more-
Code modules : option
+ command
+C
Formula Module : option
+ command
+B
Single code : control
+ ` (the key above the tab key)
Insert image : control
+ command
+I
Comments : control
+-
The effect of blocks and vertical bars, such as the description of quoted articles : >
+ space