aboutsummaryrefslogtreecommitdiff
path: root/doc/user/eq.skb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user/eq.skb')
-rw-r--r--doc/user/eq.skb52
1 files changed, 49 insertions, 3 deletions
diff --git a/doc/user/eq.skb b/doc/user/eq.skb
index a611f88..fb8c3ef 100644
--- a/doc/user/eq.skb
+++ b/doc/user/eq.skb
@@ -57,7 +57,7 @@ much like any other kind of markup. However, the resulting syntax
is very verbose and hard to read.])
(p [Fortunately, the ,(tt [eq]) package allows for the use of a
-much simple syntax. ]
+much simpler syntax. ]
(example-produce
(example :legend "Example of a simple equation"
@@ -69,10 +69,56 @@ may have already recognized its ,(emph [prefix notation]). Note that,
unlike in the previous example, the equation itself if ,(emph [quoted]),
that is, preceded by the ,(tt [']) sign. Additionally, when referring
to a symbol (such as the Greek letter ,(symbol "phi")), you no longer
-need to use the ,(tt [symbol]) markup (,(ref :text [see subsection]
-:subsection "Symbols")).]))
+need to use the ,(tt [symbol]) markup (,(numref :text [see Section]
+:ident "symbols")).])
+
+ (p [It is possible to create ,(emph [equation display blocks]),
+where several equations are displayed and aligned according to a
+particular operator. ]
+
+ (example-produce
+ (example :legend "Inlined, displayed, and aligned equations"
+ (prgm :file "src/eq3.skb"))
+ (disp (include "src/eq3.skb")))))
+ ;; FIXME: Write this.
(section :title [Rendering])
+
+ (section :title [Summary]
+
+ (p [The options available for the top-level ,(code [eq]) markup
+are summarized here:])
+
+ (doc-markup 'eq
+ `((:inline? [If ,(code [auto]), Skribilo will
+automatically determine whether the equation is to be "in-line".
+Otherwise, it should be a boolean indicating whether the equation is to
+appear "in-line", i.e., within a paragraph. If the engine supports it,
+it may adjust various parameters such as in-equation spacing
+accordingly.])
+ (:renderer [The engine that should be used to render
+the equation. This allows, for instance, to use the Lout engine to
+render equations in HTML.])
+ (:mul-style [A symbol denoting the default style for
+multiplications. This should be one of ,(code [space]), ,(code
+[cross]), ,(code [asterisk]) or ,(code [dot]).])
+ (:div-style [A symbol denoting the default style for
+divisions. This should be one of ,(code [over]), ,(code [fraction]),
+,(code [div]) and ,(code [slash]). Per-,(code [eq:/]) ,(code
+[:div-style]) options override this setting.])
+ (:align-with [Within a ,(code [eq-display]) block,
+this should be a symbol specifying according to which operator equations
+are to be aligned with one another.]))
+ :source "skribilo/package/eq.scm")
+
+ (p [Equation display blocks can be defined using ,(code
+[eq-display]). Display blocks define the scope of the alignment among
+equations as specified by the ,(code [:align-with]) options of ,(code
+[eq]).])
+
+ (doc-markup 'eq-display
+ `()
+ :source "skribilo/package/eq.scm"))
)