zeus
3 years ago
3 changed files with 86 additions and 1 deletions
@ -0,0 +1,80 @@ |
|||
= examples |
|||
:idprefix: |
|||
:idseparator: - |
|||
:!example-caption: |
|||
:!table-caption: |
|||
:page-pagination: |
|||
:stem: |
|||
:plantuml-server-url: http://www.plantuml.com/plantuml |
|||
:experimental: |
|||
|
|||
== Diagram |
|||
|
|||
[ditaa] |
|||
.... |
|||
+-------------+ |
|||
| Asciidoctor |-------+ |
|||
| diagram | | |
|||
+-------------+ | PNG out |
|||
^ | |
|||
| ditaa in | |
|||
| v |
|||
+--------+ +--------+----+ /---------------\ |
|||
| | --+ Asciidoctor +--> | | |
|||
| Text | +-------------+ | Beautiful | |
|||
|Document| | !magic! | | Output | |
|||
| {d}| | | | | |
|||
+---+----+ +-------------+ \---------------/ |
|||
: ^ |
|||
| Lots of work | |
|||
+-----------------------------------+ |
|||
.... |
|||
|
|||
|
|||
[plantuml, diagram-classes, png] |
|||
.... |
|||
class BlockProcessor |
|||
class DiagramBlock |
|||
class DitaaBlock |
|||
class PlantUmlBlock |
|||
|
|||
BlockProcessor <|-- DiagramBlock |
|||
DiagramBlock <|-- DitaaBlock |
|||
DiagramBlock <|-- PlantUmlBlock |
|||
.... |
|||
|
|||
== Math |
|||
|
|||
[asciimath] |
|||
++++ |
|||
sqrt(4) = 2 |
|||
++++ |
|||
|
|||
latexmath:[C = \alpha + \beta Y^{\gamma} + \epsilon] |
|||
|
|||
[stem] |
|||
++++ |
|||
|
|||
[[a,b],[c,d]]((n),(k)) |
|||
|
|||
sqrt(4) = 2 |
|||
|
|||
sqrt(9) = 3 |
|||
++++ |
|||
|
|||
[asciimath] |
|||
++++ |
|||
|
|||
[[a,b],[c,d]]((n),(k)) |
|||
|
|||
sqrt(4) = 2 |
|||
|
|||
sqrt(9) = 3 |
|||
++++ |
|||
|
|||
|
|||
stem:[sqrt(4) = 2] |
|||
|
|||
stem:[sqrt(9) = 2] |
|||
|
|||
|
Loading…
Reference in new issue