Skip to content

Commit

Permalink
adoc math
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Jun 12, 2019
1 parent fe881d2 commit 6815ce7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions adoc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:sectlinks:
:sectnums:
:toc: preamble
:stem:

Preamble. This paragraph has some magic properties just because it is before the first h2. E.g., the Toc will go after it.

Expand Down Expand Up @@ -124,3 +125,27 @@ https://github.com/asciidoctor/asciidoctor/issues/1208
my C++ is great C++ and yours

my {cpp} is great {cpp} and yours

== Math

asciimath: stem:[sqrt(4) = 2]

latexmath: latexmath:[\sqrt{4} = 2]

asciimath stem:[[[a,b\],[c,d\]\]]

latexmath: latexmath:[\begin{bmatrix}a & b\\c & d\end{bmatrix}]

asciimath:

[stem]
++++
sqrt(4) = 2
++++

latexmath:

[latexmath]
++++
\sqrt{4} = 2
++++

0 comments on commit 6815ce7

Please sign in to comment.