Sha256: 645117d021d0aab93e94057dd29f3a2b393836b3c415643293f1ec22c9be7c25

Contents?: true

Size: 1.48 KB

Versions: 30

Compression:

Stored size: 1.48 KB

Contents

== Numbered Equations


The environment `[env.equation]` is automatically
numbered by default, as in the examples below.


[env.equation]
--
  a^3 + b^3 = c^3
--


[env.equation]
--
  \int_0^1 x^n dx = \frac{1}{n}
--

Here is how the first equation is done:
----
[env.equation]
--
  a^3 + b^3 = c^3
--
----

=== Some more equations

.Pythagorean theorem
[env.equation#pyth]
--
a^2  + b^2 = c^2
--

A Fourier series:

[env.equation#fourier]
--
f(z)  = \sum_{n=-\infty}^\infty e^{2\pi i n z }.
--


A matrix:
[env.equation#eq-matrix]
--
M = \left(
\begin{matrix}
1 & 2 \\
3 & 4
\end{matrix}
\right)
--


=== Titles

Equations can take a title:

.Fundamental theorem of calculus
[env.equation]
--
   \frac{d}{dx} \int_a^x f(t) dt = f(x)
--

We wrote this:

----

.Fundamental theorem of calculus
[env.equation]
--
   \frac{d}{dx} \int_a^x f(t) dt = f(x)
--
----

=== Suppressing numbering

Numbering can be suppresed on a per-item basis.
This gives a "bare" equation.


[env.equation%no-number	]
--
M = \left[
  \begin{array}{ c c }
	 1 & 2 \\
	 3 & 4
  \end{array} \right]
--

We wrote `[env.equation%no-number]`.
If numbering is suppressed but a title is present,
the title is displayed.

.Symmetric matrix
[env.equation%no-number]
--
M = \left[
  \begin{array}{ c c }
	 1 & 2 \\
	 -2 & 5
  \end{array} \right]
--

Here is the source:

----
.Symmetric matrix
[env.equation%no-number]
--
M = \left[
  \begin{array}{ c c }
	 1 & 2 \\
	 -2 & 5
  \end{array} \right]
--
----


Note:  In <<eq-matrix>> we defined a matrix.

Version data entries

30 entries across 17 versions & 1 rubygems

Version Path
asciidoctor-latex-1.5.0.17.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.17.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.16.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.16.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.15.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.15.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.14.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.14.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.13.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.13.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.12.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.12.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.11.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.11.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.10.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.10.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.9.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.9.dev examples/eqno-latex.adoc
asciidoctor-latex-1.5.0.8b.dev test/examples/adoc/eqno-latex.adoc
asciidoctor-latex-1.5.0.8b.dev examples/eqno-latex.adoc