Markdown入门7

8、甘特图

甘特图内在思想简单。基本是一条线条图,横轴表示时间,纵轴表示活动(项目),线条表示在整个期间上计划和实际的活动完成情况。它直观地表明任务计划在什么时候进行,及实际进展与计划要求的对比。
先上代码:

```gantt
dateFormat  YYYY-MM-DD
title Shop项目交付计划

section 里程碑 0.1 
数据库设计          :active,    p1, 2016-08-15, 3d
详细设计            :           p2, after p1, 2d

section 里程碑 0.2
后端开发            :           p3, 2016-08-22, 20d
前端开发            :           p4, 2016-08-22, 15d

section 里程碑 0.3
功能测试            :       p6, after p3, 5d
上线               :       p7, after p6, 2d
交付               :       p8, afterp7, 2d
```

这里写图片描述
图中红色竖线代表今天。

9、标签分类

在编辑区任意行的列首位置输入以下代码:

标签: 数学 英语 Markdown

或者

Tags: 数学 英语 Markdown

这里写图片描述

10、脚注

脚注不是标准 MarkDown 的范畴。
脚注语法:”:”后面有个空格

正文[^1]文字
[^1]: 脚注1内容  

正文[^2]文字
[^2]: 脚注2内容

这里写图片描述

11、LaTeX 公式

LaTeX 是大神Leslie Lamport 的杰作,该神是2013年图灵奖的获得者,LaTeX是一种基于ΤΕΧ的排版系统,对于生成复杂表格和数学公式表现得尤为突出。LaTeX也是当今世界上最流行和使用最为广泛的TeX格式。它构筑在 PlainTeX的基础之上,并加进了很多功能以利用TeX的强大功能,更多内容可以参考一下《LaTeX Cookbook》或者国内的《LaTeX 入门》等书籍.
1)角标 和 开方:

$c = \sqrt{a^{2}+b_{xy}^{2} +e^{x}}$

c = a 2 + b x y 2 + e x
2)分数表达:

$\frac{x^{2}y^{2}}{x+y}$

x 2 y 2 x + y
3)求和与联乘:

$$\sum_{i=0}^{n}$  \prod_\epsilon$$

i = 0 n $ ϵ

4)微分与积分

$\int_{a}^{\pi} f(x) \,dx$ 

a π f ( x ) d x
5)极限 与 偏导数

$$ \lim_{x \to +\infty}\frac{1}{x}$$

lim x + 1 x

 $$\frac{\partial^2 u}{\partial z^2}$$

2 u z 2

6)三角函数与矩阵

$$\cos2\theta = cos^2\theta - \sin^2 \theta \\ =
	2\cos^2\theta -1$$
    $$\begin{equation}
	A=\left[
	\begin{matrix}
	1&2&3&\\
	2&2&3&\\
	3&2&3&
	\end{matrix}
	\right]
	\end{equation}$$

cos 2 θ = c o s 2 θ sin 2 θ = 2 cos 2 θ 1

(19) A = [ 1 2 3 2 2 3 3 2 3 ]

7)数学符号与运算符
用法参见 《一份不太简短的LaTex 介绍》

12、加强的代码块

    ```java

    package com.qyf404.learn.maven;

    import org.junit.After;

    import org.junit.Assert;

    import org.junit.Before;

    import org.junit.Test;

    public class AppTest {

    private App app;

    @Before

    public void setUp() {app = new App();}

    @Test

    public void testAdd() throws InterruptedException {

    int a = 1;

    int b = 2;

    int result = app.add(a, b);

    Assert.assertEquals(a + b, result);

    }

    @After

    public void tearDown() throws Exception {

    }

    }
    ```

效果如下:


package com.qyf404.learn.maven;

import org.junit.After;

import org.junit.Assert;

import org.junit.Before;

import org.junit.Test;

public class AppTest {

private App app;

@Before

public void setUp() {app = new App();}

@Test

public void testAdd() throws InterruptedException {

int a = 1;

int b = 2;

int result = app.add(a, b);

Assert.assertEquals(a + b, result);

}

@After

public void tearDown() throws Exception {

}

}

支持高亮显示的语言有:

名称 关键字 调用的js 说明
AppleScript applescript shBrushAppleScript.js
ActionScript 3.0 actionscript3 , as3 shBrushAS3.js
Shell bash , shell shBrushBash.js
ColdFusion coldfusion , cf shBrushColdFusion.js
C cpp , c shBrushCpp.js
C# c# , c-sharp , csharp shBrushCSharp.js
CSS css shBrushCss.js
Delphi delphi , pascal , pas shBrushDelphi.js
diff&patch diff patch shBrushDiff.js 用代码版本库时,遇到代码冲突,其语法就是这个.
Erlang erl , erlang shBrushErlang.js
Groovy groovy shBrushGroovy.js
Java java shBrushJava.js
JavaFX jfx , javafx shBrushJavaFX.js
JavaScript js , jscript , javascript shBrushJScript.js
Perl perl , pl , Perl shBrushPerl.js
PHP php shBrushPhp.js
text text , plain shBrushPlain.js 就是普通文本.
Python py , python shBrushPython.js
Ruby ruby , rails , ror , rb shBrushRuby.js
SASS&SCSS sass , scss shBrushSass.js
Scala scala shBrushScala.js
SQL sql shBrushSql.js
Visual Basic vb , vbnet shBrushVb.js
XML xml , xhtml , xslt , html shBrushXml.js
Objective C objc , obj-c shBrushObjectiveC.js
F# f# f-sharp , fsharp shBrushFSharp.js
xpp , dynamics-xpp shBrushDynamics.js
R r , s , splus shBrushR.js
matlab matlab shBrushMatlab.js
swift swift shBrushSwift.js
GO go , golang shBrushGo.js

相关链接

1、程序员分类目录导航
2、Markdown入门1
3、Markdown入门2
4、Markdown入门3
5、Markdown入门4
6、Markdown入门5
7、Markdown入门6
8、Markdown入门8

猜你喜欢

转载自blog.csdn.net/cuishizun/article/details/80342072
今日推荐