-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
502 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
== Chapter 04 - Using UML Diagrams | ||
|
||
.UML http://plantuml.sourceforge.net/ | ||
[uml,file="uml-diagram.png"] | ||
-- | ||
abstract class AbstractList | ||
abstract AbstractCollection | ||
interface List | ||
interface Collection | ||
|
||
List <|-- AbstractList | ||
Collection <|-- AbstractCollection | ||
|
||
Collection <|- List | ||
AbstractCollection <|- AbstractList | ||
AbstractList <|-- ArrayList | ||
|
||
class ArrayList { | ||
Object[] elementData | ||
size() | ||
} | ||
|
||
enum TimeUnit { | ||
DAYS | ||
HOURS | ||
MINUTES | ||
} | ||
|
||
annotation SuppressWarnings | ||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
== Chapter 05 - Using Mathematical Formulas | ||
|
||
http://www.mathjax.org/[MathJax] is an open source JavaScript display engine for mathematics that works in all browsers. | ||
|
||
.Tex Example | ||
[math,file="tex-formula.png"] | ||
-- | ||
\begin{align} | ||
\dot{x} & = \sigma(y-x) \\ | ||
\dot{y} & = \rho x - y - xz \\ | ||
\dot{z} & = -\beta z + xyz | ||
\end{align} | ||
-- | ||
|
||
You can use Tex or MathML languages for describing mathematical formulas in AsciidocFX. AsciidocFX converts this textual formulas as png image. | ||
|
||
.MathML Example | ||
[math,file="mathml-formula.png"] | ||
-- | ||
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
<mi>x</mi> | ||
<mo>=</mo> | ||
<mrow> | ||
<mfrac> | ||
<mrow> | ||
<mo>−</mo> | ||
<mi>b</mi> | ||
<mo>±</mo> | ||
<msqrt> | ||
<msup> | ||
<mi>b</mi> | ||
<mn>2</mn> | ||
</msup> | ||
<mo>−</mo> | ||
<mn>4</mn> | ||
<mi>a</mi> | ||
<mi>c</mi> | ||
</msqrt> | ||
</mrow> | ||
<mrow> | ||
<mn>2</mn> | ||
<mi>a</mi> | ||
</mrow> | ||
</mfrac> | ||
</mrow> | ||
<mtext>.</mtext> | ||
</math> | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.