Asciidoc语法大全
生活随笔
收集整理的這篇文章主要介紹了
Asciidoc语法大全
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Asciidoc是一種基于富文本的標記語言。 使用Asciidoc編寫的文檔可以輕松轉換為* HTML , PDF , Docbook , Mobi , Epub 和 Odt *格式。
基本格式
*加粗*
_斜體_
[underline]#下劃線#
上標^p^
下標~n~
標題級別
- 有6個級別標題為HTML。 第一個是文檔標題。
= 級別 1內容 ...== 級別 2內容 ...=== 級別 3內容 ...==== 級別 4內容 ...===== 級別 5內容 ...====== 級別6內容 ...
列表
. 有序列表1
. 有序列表2'''* 無序列表1
* 無序列表2
代碼
[source,go]
----
fmt.Println("hello adoc")
----
鏈接
http://www.baidu.com[百度官網]
圖片
image::line.png[]
表格
.表格1
[options="header,footer"]
|=======================
|列 1 |列 2 |列 3
|1 |Item 1 |a
|2 |Item 2 |b
|3 |Item 3 |c
|6 |Three items|d
|=======================.表格2
|====
|日期 |持續時間 |平均時間 |備注
|22-Aug-08 .2+^.^|10:24 | 157 |備注
|22-Aug-08 | 152 |備注
|24-Aug-08 3+^|none
|====
目錄
:stem: latexmath
:icons: font
:source-highlighter: coderay
:sectnums:
:sectlinks:
:sectnumlevels: 4
:toc: left
:toc-title: 目錄
:toclevels: 3
塊(blocks)
邊欄(sidebar)
.標題
****
內容
****
實例(Example)
.標題
====
例如:
====
通過(Passthrough)
++++
通過。。。
++++
引用(quote)
[quote,PDD]
____
寫文章,它不香嗎?
____
警告(admonitions)
基本(Note)
[NOTE]
====
基本信息
====
提示(Tip)
[TIP]
====
提示信息
====
重要(Important)
[IMPORTANT]
====
重要信息
====
注意(Caution)
[CAUTION]
====
注意信息
====
警告(Warning)
[WARNING]
====
警告信息
====
文檔助手(Document Helpers)
書頭(Book Header)
= 書名
作者名
:doctype: 類型
:encoding: utf-8
:lang: 中文
:toc: left
:numbered: 編號
文章頭(Article Header)
= 文章標題
作者姓名
:doctype: 文章
:encoding: utf-8
:lang: 中文
:toc: left
:numbered:
出版社(colophon)
[colophon]
== 出版社清華大學出版社.
前言(colophon)
[preface]
== 前言可選的前言.
獻詞(Dedication)
[dedication]
== 獻詞可選擇的獻詞。
附錄(Appendix)
[appendix]
== 附錄1[appendix]
== 附錄2一個或多個附錄
術語(Glossary)
[glossary]
斜杠青年::形容一個人擁有很多身份。我太難了::形容一個人很難。
參考文獻(bibliography)
[bibliography]
.Books
- [[[taoup]]] Eric Steven Raymond. 'The Art of UnixProgramming'. Addison-Wesley. ISBN 0-13-142901-9.
- [[[walsh-muellner]]] Norman Walsh & Leonard Muellner.'DocBook - The Definitive Guide'. O'Reilly & Associates. 1999.ISBN 1-56592-580-7.
索引
[index]
== 索引索引通常完全為空,其內容為由DocBook工具鏈自動生成。
擴展(Extension)
數學公式
[math,file="tex-formula.png"]
--
\begin{align}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xyp
\end{align}
--
Plantuml
.hello
[plantuml,hello.png]
--
Bob->Alice : hello
--
ditaa
.UML http://plantuml.sourceforge.net/ditaa.html
[uml,file="ditaa-diagram.png"]
--
@startditaa
+--------+ +-------+ +-------+
| +---+ ditaa +--> | |
| Text | +-------+ |diagram|
|Document| |!magic!| | |
| ze8trgl8bvbq| | | | |
+---+----+ +-------+ +-------+: ^| Lots of work |+-------------------------+
@endditaa
--
文章結構
[tree,file="文章結構.png"]
--
#時間管理
##時間觀念
###什么是守時?
--
圖表
餅圖
[chart,pie,file="secim-2014-pie.png",opt="title=餅圖標題"]
--
AKP, 45.6, orange
CHP, 27.8,red
MHP, 15.2
BDP, 4.2
SP, 2
--
面積圖
[chart,area,file="area-chart.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5//May
1, 20
3, 15
6, 13
9, 12
12, 14
--
條形圖
[chart,bar,file="bar.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5//May
1, 20
3, 15
6, 13
9, 12
12, 14
--
折線圖
[chart,line,file="line.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5//May
1, 20
3, 15
6, 13
9, 12
12, 14
--
散點圖
[chart,scatter,file="scatter.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5//May
1, 20
3, 15
6, 13
9, 12
12, 14
--
氣泡圖
[chart,bubble,file="bubble.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5
--
堆積面積圖
[chart,"stacked-area",file="stacked-area.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5
--
堆積條形圖
[chart,"stacked-bar",file="stacked-bar.png"]
--
//April
1, 4
3, 10
6, 15
9, 8
12, 5//May
1, 20
3, 15
6, 13
9, 12
12, 14
--
總結
以上是生活随笔為你收集整理的Asciidoc语法大全的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 右键属性快捷键(键盘操作右键属性)
- 下一篇: 香港陆地面积(香港可利用的土地资源非常稀