From 6815ce74724f00a8f499fd255e6fd6eebcb6c2fd Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 12 Jun 2019 00:00:00 +0000 Subject: [PATCH] adoc math --- adoc.adoc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/adoc.adoc b/adoc.adoc index 373c9ed..905dca6 100644 --- a/adoc.adoc +++ b/adoc.adoc @@ -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. @@ -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 +++++