学逆向论坛

找回密码
立即注册

只需一步,快速开始

发新帖

2万

积分

41

好友

1157

主题
发表于 2019-4-6 18:57:52 | 查看: 12945| 回复: 9

使用方法

点击编辑器工具栏的按钮,下拉列表中选择帖子类型,之后输入相应代码

[md]put your markdown code here[ /md]   #实际写作时 [ /md]没有空格

标题

atx 形式

# h1
## h2
### h3
#### h4
....

效果如下

h1

h2

h3

h4

....

类 Setext 形式

h1
========

h2
------------

h1

h2

表格

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

代码

行内代码

如果只想高亮正文中某个词,可以用两个反引号包裹起来

`行内代码`

输出:行内代码

如果行内代码包含反引号,可以用多个反引号包裹

包含``反引号(`) `` 的行内代码

输出:包含反引号() 的行内代码`

如果行内代码开头就有反引号,需要起始端和结束端各一个空格

`` `反引号` ``

输出:反引号

普通代码

反引号包裹

用3个或以上的反引号包裹起来

LoadModule rewrite_module  modules/mod_rewrite.so RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [NC,L]

波浪线包裹

使用3个及以上的波浪线包裹代码

~~~
LoadModule rewrite_module  modules/mod_rewrite.so
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]
~~~~

缩进

4个空格或者一个制表符
LoadModule rewrite_module  modules/mod_rewrite.so
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]
效果如下:

    LoadModule rewrite_module  modules/mod_rewrite.so
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [NC,L]

特殊字符

当代码中有这些特殊字符时,可以缩进、波浪线、反引号嵌套使用,例如

~~~

LoadModule rewrite_module  modules/mod_rewrite.so
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]

~~~~

效果如下:

~~~

LoadModule rewrite_module  modules/mod_rewrite.so
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]

~~~

数学公式

行内公式

$ax^2+bx+c=55$
or
\\(ax^2+bx+c=55\\)

效果如下所示:

$ax^2+bx+c=55$
or
\(ax^2+bx+c=55\)

跨行公式

$$\int_1^{+\infty}\left[\ln\left(1+\frac1x\right)-\sin{\frac1x}\right]\,\mathrm dx$$
or
\\[\int_1^{+\infty}\left[\ln\left(1+\frac1x\right)-\sin{\frac1x}\right]\,\mathrm dx\\]

效果如下:

$$\int_1^{+\infty}\left[\ln\left(1+\frac1x\right)-\sin{\frac1x}\right]\,\mathrm dx$$

or
\[\int_1^{+\infty}\left[\ln\left(1+\frac1x\right)-\sin{\frac1x}\right]\,\mathrm dx\]

流程图and时序图and甘特图

学逆向论坛使用mermaid支持流程图,时序图以及甘特图,语法如下:

```mermaid
sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail...
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
sequenceDiagram     participant Alice     participant Bob     Alice->>John: Hello John, how are you?     loop Healthcheck         John->>John: Fight against hypochondria     end     Note right of John: Rational thoughts <br/>prevail...     John-->>Alice: Great!     John->>Bob: How about you?     Bob-->>John: Jolly good!

粗斜体

*斜体文本*    _斜体文本_
**粗体文本**    __粗体文本__
***粗斜体文本***    ___粗斜体文本___

斜体文本    斜体文本
粗体文本    粗体文本
粗斜体文本    粗斜体文本

链接

常用链接方法

文字链接 [链接名称](http://链接网址)

网址链接 <http://链接网址>

文字链接 链接名称

网址链接 http://链接网址

高级链接技巧

这个链接用 1 作为网址变量 [Google][1].
这个链接用 yahoo 作为网址变量 [Yahoo!][yahoo].
然后在文档的结尾为变量赋值(网址)

  [1]: http://www.google.com/
  [yahoo]: http://www.yahoo.com/

这个链接用 1 作为网址变量 Google.
这个链接用 yahoo 作为网址变量 Yahoo!.
然后在文档的结尾为变量赋值(网址)

列表

普通无序列表

- 列表文本前使用 [减号+空格]
+ 列表文本前使用 [加号+空格]
* 列表文本前使用 [星号+空格]
  • 列表文本前使用 [减号+空格]
  • 列表文本前使用 [加号+空格]
  • 列表文本前使用 [星号+空格]

普通有序列表

1. 列表前使用 [数字+空格]
2. 我们会自动帮你添加数字
7. 不用担心数字不对,显示的时候我们会自动把这行的 7 纠正为 3
  1. 列表前使用 [数字+空格]
  2. 我们会自动帮你添加数字
  3. 不用担心数字不对,显示的时候我们会自动把这行的 7 纠正为 3

列表嵌套

1. 列出所有元素:
    - 无序列表元素 A
        1. 元素 A 的有序子列表
    - 前面加四个空格
2. 列表里的多段换行:
    前面必须加四个空格,
    这样换行,整体的格式不会乱
3. 列表里引用:

    > 前面空一行  
    > 需要缩进,顶格将打断列表  
    > 换行需要加两个以上空格并回车

4. 列表里代码段:

    ```
    前面四个空格,之后按代码语法 ``` 书写
    ```

        或者直接八个空格,引入代码块
  1. 列出所有元素:

    • 无序列表元素 A
      1. 元素 A 的有序子列表
    • 前面加四个空格
  2. 列表里的多段换行:
    前面必须加四个空格,
    这样换行,整体的格式不会乱

  3. 列表里引用:

    前面空一行
    需要缩进,顶格将打断列表
    换行需要加两个以上空格并回车

  4. 列表里代码段:

    前面四个空格,之后按代码语法 ``` 书写
    或者直接八个空格,引入代码块

引用

普通引用

> 引用文本前使用 [大于号+空格]  
> 折行可以不加,新起一行都要加上哦

引用文本前使用 [大于号+空格]
折行可以不加,新起一行都要加上哦

引用里嵌套引用

> 最外层引用
>> 多一个 > 嵌套一层引用
>>> 可以嵌套很多层

最外层引用

多一个 > 嵌套一层引用

可以嵌套很多层

引用里嵌套代码块

>     同样的,在前面加四个空格形成代码块
>  
> ```
> 或者使用 ``` 形成代码块
> ```
同样的,在前面加四个空格形成代码块
或者使用 ``` 形成代码块

图片

跟链接的方法区别在于前面加了个感叹号 !,这样是不是觉得好记多了呢?

![图片名称](http://图片网址)


当然,你也可以像网址那样对图片网址使用变量

这个链接用 1 作为网址变量  ![Google][1].  
然后在文档的结尾位变量赋值(网址)

 [1]: https://www.baidu.com/img/bdlogo.png

这个链接用 1 作为网址变量

然后在文档的结尾位变量赋值(网址)

换行

如果另起一行,只需在当前行结尾加 2 个空格

在当前行的结尾加 2 个空格
这行就会新起一行
如果是要起一个新段落,只需要空出一行即可。

分隔符

如果你有写分割线的习惯,可以新起一行输入三个减号 -:

---

效果如下面这条横线

符号转义

如果你的描述中需要用到 markdown 的符号,比如 _ # *等,但又不想它被转义,这时候可以在这些符号前加反斜杠,如·\_ \# \*进行避免。

\_不想这里的文本变斜体\_
\*\*不想这里的文本被加粗\*\*

_不想这里的文本变斜体_
**不想这里的文本被加粗**

温馨提示:
1.如果您喜欢这篇帖子,请给作者点赞评分,点赞会增加帖子的热度,评分会给作者加学币。(评分不会扣掉您的积分,系统每天都会重置您的评分额度)。
2.回复帖子不仅是对作者的认可,还可以获得学币奖励,请尊重他人的劳动成果,拒绝做伸手党!
3.发广告、灌水回复等违规行为一经发现直接禁言,如果本帖内容涉嫌违规,请点击论坛底部的举报反馈按钮,也可以在【投诉建议】板块发帖举报。
论坛交流群:672619046
发表于 2019-4-7 14:43:47

MathJax公式总结

基本用法

行内公式

$math$或 \(math\)
$f(x) = 3x + 7$ 和 \(f(x) = 3x + 7\) 效果是一样的  

跨行公式

\[math\] 或  $$math$$

字符

普通字符在数学公式中含义一样,除了 # $ \% \& \~ \^ { };
若要在数学环境中表示这些符号,需要分别表示为# $ \% \& \
{ },即在个字符前加上\。

上标和下标

用 ^ 来表示上标,用 _ 来表示下标,看一简单例子:

$$\sum_{i=1}^n a_i=0$$  
$$f(x)=x^{x^x}$$

效果:

$$\sum_{i=1}^n a_i=0$$

$$f(x)=x^{x^x}$$

希腊字母

$$\alpha A \beta B \gamma \Gamma \delta \Delta \epsilon E \\\\
\varepsilon  \zeta Z \eta H \theta \Theta \vartheta \\\\
\iota I \kappa K \lambda \Lambda \mu M \nu N \\\\
\xi \Xi o O \pi \Pi \varpi  \rho P \\\\
\varrho  \sigma \Sigma \varsigma  \tau T \upsilon \Upsilon \\\\
\phi \Phi \varphi  \chi X \psi \Psi \omega \Omega $$

效果:

$$\alpha A \beta B \gamma \Gamma \delta \Delta \epsilon E \\\\ \varepsilon  \zeta Z \eta H \theta \Theta \vartheta \\\\ \iota I \kappa K \lambda \Lambda \mu M \nu N \\\\ \xi \Xi o O \pi \Pi \varpi  \rho P \\\\ \varrho  \sigma \Sigma \varsigma  \tau T \upsilon \Upsilon \\\\ \phi \Phi \varphi  \chi X \psi \Psi \omega \Omega$$

分数及开方

$$\frac{1}{4}$$
表示开平方:$$\sqrt{x^4}$$
表示开 n 次方: $$\sqrt[4]{(a+b)^4}$$

效果:

$$\frac{1}{4}$$

表示开平方:
$$\sqrt{x^4}$$

表示开 n 次方:
$$\sqrt[4]{(a+b)^4}$$

矢量

$$\vec{a} \cdot \vec{b}=0$$

效果:

$$\vec{a} \cdot \vec{b}=0$$

累乘

$$\prod_{i=0}^n \frac{1}{i^2}$$

效果:

省略号(3个点)

\ldots 表示跟文本底线对齐的省略号;\cdots表示跟文本中线对齐的省略号,比如:

$$f(x\_1,x\_x,\ldots,x\_n) = x\_1^2 + x\_2^2 + \cdots + x\_n^2$$

效果:

$$f(x\_1,x\_x,\ldots,x\_n) = x\_1^2 + x\_2^2 + \cdots + x\_n^2$$

括号和分隔符

() 和 [ ] 和 | 对应于自己;
{} 对应于 { };
|| 对应于 |。
当要显示大号的括号或分隔符时,要对应用 \left 和 \right如:

$$\[f(x,y,z) = 3y^2 z \left( 3 + \frac{7x+5}{1 + y^2}\right).\]$$

效果:

$$\[f(x,y,z) = 3y^2 z \left( 3 + \frac{7x+5}{1 + y^2}\right).\]$$

注意:\left. 和 \right. 只用与匹配,本身是不显示的

多行的数学公式

$$
\begin{eqnarray*}
\cos 2\theta & = & \cos^2 \theta - \sin^2 \theta \\\\
& = & 2 \cos^2 \theta - 1.
\end{eqnarray*}
$$

效果:

\begin{eqnarray} \cos 2\theta & = & \cos^2 \theta - \sin^2 \theta \\ & = & 2 \cos^2 \theta - 1. \end{eqnarray}

其中&是对其点,表示在此对齐。
使latex不自动显示序号,如果想让latex自动标上序号,则把去掉

矩阵

The characteristic polynomial $\chi(\lambda)$ of the $3 \times 3$~matrix  
$$ 
\left( \begin{array}{ccc}  
a & b & c \\\\
d & e & f \\\\
g & h & i \end{array} \right)
$$
is given by the formula
$$
\chi(\lambda) = \left| \begin{array}{ccc}  
\lambda - a & -b & -c \\\\
-d & \lambda - e & -f \\\\
-g & -h & \lambda - i \end{array} \right|.
$$

效果:
The characteristic polynomial $\chi(\lambda)$ of the $3 \times 3$~matrix  

\left( \begin{array}{ccc}   a & b & c \\\\ d & e & f \\\\ g & h & i \end{array} \right)

is given by the formula

\chi(\lambda) = \left| \begin{array}{ccc}   \lambda - a & -b & -c \\\\ -d & \lambda - e & -f \\\\ -g & -h & \lambda - i \end{array} \right|.

导数(Derivatives)

$\frac{du}{dt} $ and $\frac{d^2 u}{dx^2}$

效果:
$\frac{du}{dt}$ and $\frac{d^2 u}{dx^2}$

极限(Limits)

$$\lim_{x \to +\infty}, \inf_{x > s} , \sup_K$$
$$ \lim_{x \to 0} \frac{3x^2 +7x^3}{x^2 +5x^4} = 3.$$

效果:

$$\lim_{x \to +\infty}, \inf_{x &gt; s} , \sup_K$$

$$\lim_{x \to 0} \frac{3x^2 +7x^3}{x^2 +5x^4} = 3.$$

求和(Sum)

$$\sum_{i=1}^{2n}.$$
$$\sum_{k=1}^n k^2 = \frac{1}{2} n (n+1).$$

效果:

$$\sum_{i=1}^{2n}.$$

$$\sum_{k=1}^n k^2 = \frac{1}{2} n (n+1).$$

积分(Integrals)

$$\int_a^b f(x)\,dx.$$

效果:

$$\int_a^b f(x)\,dx.$$

The integral sign is typeset using the control sequence \int, and the
limits of integration (in this case a and b are treated as a subscript and a superscript on the integral sign.  

Most integrals occurring in mathematical documents begin with an
integral sign and contain one or more instances of d followed by another (Latin or Greek) letter, as in dx, dy and dt. To obtain the correct appearance one should put extra space before the d, using \,.

$$ \int_0^{+\infty} x^n e^{_x} \,dx = n!.$$  
$$ \int \cos \theta \,d\theta = \sin \theta.$$  
$$ \int_0^R \frac{2x\,dx}{1+x^2} = \log(1+R^2).$$

效果:

$$\int_0^{+\infty} x^n e^{_x} \,dx = n!.$$
  

$$\int \cos \theta \,d\theta = \sin \theta.$$
  

$$\int_0^R \frac{2x\,dx}{1+x^2} = \log(1+R^2).$$

特殊字符

关系运算符

±± :\pm

××:\times

÷÷:\div

∣∣:\mid

∤∤:\nmid

⋅⋅:\cdot

∘∘:\circ

∗∗:\ast

⨀⨀:\bigodot

⨂⨂:\bigotimes

⨁⨁:\bigoplus

≤≤:\leq

≥≥:\geq

≠≠:\neq

≈≈:\approx

≡≡:\equiv

∑∑:\sum

∏∏:\prod

∐∐:\coprod

集合运算符

∅∅:\emptyset

∈∈:\in

∉∉:\notin

⊂⊂:\subset

⊃⊃:\supset

⊆⊆:\subseteq

⊇⊇:\supseteq

⋂⋂:\bigcap

⋃⋃:\bigcup

⋁⋁:\bigvee

⋀⋀:\bigwedge

⨄⨄:\biguplus

⨆⨆:\bigsqcup

对数运算符

loglog:\log

lglg:\lg

lnln:\ln

三角运算符

⊥⊥:\bot

∠∠:\angle

30°:30^∘∘:\circ

sinsin:\sin

coscos:\cos

tantan:\tan

cotcot:\cot

secsec:\sec

csccsc:\csc

微积分运算符

′′:\prime

∫∫:\int

∬∬:\iint

∭∭:\iiint

∬∬⨌:\iiiint

∮∮:\oint

limlim:\lim

∞∞:\infty

∇∇:\nabla

逻辑运算符

∵∵:\because

∴∴:\therefore

∀∀:\forall

∃∃:\exists

≠≠:\not=

≯≯:\not>

⊄⊄:\not\subset

戴帽符号

y^y^:\hat{y}

yˇyˇ:\check{y}

y˘y˘:\breve{y}

连线符号

a+b+c+d¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯a+b+c+d¯:\overline{a+b+c+d}

a+b+c+d−−−−−−−−−−a+b+c+d_:\underline{a+b+c+d}

$\overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0}$:\overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0}

箭头符号

↑↑:\uparrow

↓↓:\downarrow

⇑⇑:\Uparrow

⇓⇓:\Downarrow

→→:\rightarrow

←←:\leftarrow

⇒⇒:\Rightarrow

⇐⇐:\Leftarrow

⟶⟶:\longrightarrow

⟵⟵:\longleftarrow

⟹⟹:\Longrightarrow

⟸⟸:\Longleftarrow



    发表于 2019-10-12 17:30:57
    啥也不说了,楼主就是给力!

      发表于 2020-3-1 22:24:24
      我的个天哪,这个教程做得如此细致,谢谢分享

        发表于 2020-3-31 10:28:49
        支持该论坛,希望越做越好
        发表于 2020-3-31 14:32:36
        丶樱木村 发表于 2020-3-31 10:28
        支持该论坛,希望越做越好

        感谢支持
        发表于 2020-7-8 09:53:33
        支持该论坛,希望越做越好
        发表于 2020-7-8 12:11:25
        Abuei 发表于 2020-7-8 09:53
        支持该论坛,希望越做越好

        感谢支持

          发表于 2020-7-16 10:45:29
          吃水不忘挖井人,我也去发帖分享好的资源。

            发表于 2021-9-3 05:57:13
            学习一下

            小黑屋|手机版|站务邮箱|学逆向论坛 ( 粤ICP备2021023307号 )|网站地图

            GMT+8, 2024-4-23 19:59 , Processed in 0.111157 second(s), 79 queries .

            Powered by Discuz! X3.4

            Copyright © 2001-2021, Tencent Cloud.

            快速回复 返回顶部 返回列表