以下内容均只在Typora编辑器中使用测试过。
文章目录
1. 在markdown文件内跳转
目标点插入:
<a name="跳转目标标签">跳转到这里</a>
起始点插入:
目标点插入:<a name="跳转目标标签">跳转到这里</a>
[点击这里跳转](#跳转目标名称)
显示效果如下:
目标点插入:跳转到这里
起始点插入:点击这里跳转
此时Ctrl + 点击后者可以跳转到前者
2. 字体颜色
<p style="font-family:Times New Roman; color:Blue; font-size: 20px;">This text has the font Courier, is Blue, and 20px.</p>
效果:
This text has the font Courier, is Blue, and 20px.
CSDN似乎不支持。 完整方法来自;
Latex字体颜色:
\frac{d}{d x}\left( \textcolor{red}{k \frac{d T}{d x} }\right)+S=0
详细颜色设置见: Latex中如何设置字体颜色(3种方式) - Tsingke - 博客园
d
d
x
(
k
d
T
d
x
)
+
S
=
0
\frac{d}{d x}\left( \textcolor{red}{k \frac{d T}{d x} }\right)+S=0
dxd(kdxdT)+S=0
3. 分页
<div style="page-break-after: always; break-after: page;"></div>
插入以上代码后,之后的内容将从新的一页开始。
4. 自动插入目录
[TOC]
5. MarkDown中的有序列表和无序列表
无序列表 un-ordered list
可以使用“-”或者“*”均可:
* Red
* Green
* Blue
效果如下:
- Red
- Green
- Blue
有序列表 ordered list
1. Red
2. Green
3. Blue
效果如下:
- Red
- Green
- Blue
待办任务列表
- [ ] a task list item
- [ ] list syntax required
- [ ] normal **formatting**, @mentions, #1234 refs
- [ ] incomplete
- [x] completed
- [ ] Sublist 1
- [ ] Sublist 2
效果如下:
- a task list item
- list syntax required
- normal formatting, @mentions, #1234 refs
- incomplete
- completed
- Sublist 1
- Sublist 2
【Typora中也同样支持上面的子列表。】
6. 块注释 “>”
此处为块注释
第二行注释… …
7. 鼠标悬停显示注释
首先对方程(2)中的[时间项进行对速度U关于时间t的欧拉全隐离散](## "fvm::ddt(U)")有......
效果- 当鼠标悬停在[ ]中的内容之上时显示文字注释(## “注释内容”)内容:
首先对方程(2)中的时间项进行对速度U关于时间t的欧拉全隐离散有…
8. 在markdown中画流程图
查看链接:flowchart.js
9. 表格
MarkDown表格
| | |
|--|--|
| <span style="display:inline-block;width:100px">文本</span> | |
定义单元格的宽度可以使用:
<span style="display:inline-block;width:100px">文本</span>
latex表格
latex表格在Typora中似乎不支持合并行和列,看到这篇笔记的同学如果有答案欢迎留言,多谢!
以下代码效果如下图:
$$
\begin{array}{c|c|c|c}% 通过添加 | 来表示是否需要绘制竖线
\hline % 在表格最上方绘制横线
我& moi& 我们& nous\
\hline
你& toi& 你们/您& vous\
\hline
他& lui &他们& eux\
\hline
她& elle& 她们& elles\
\hline
泛指& soi\
\hline
\end{array} \nonumber
$$