source: rtems-source-builder/source-builder/sb/asciidoc/doc/latexmath.txt @ 0464153

4.104.114.95
Last change on this file since 0464153 was 0464153, checked in by Chris Johns <chrisj@…>, on 03/03/13 at 04:58:11

Change asciidoc to the 8.6.4 release package because Windows was broken.

  • Property mode set to 100644
File size: 3.7 KB
Line 
1Embedding LaTeX Math in AsciiDoc dblatex documents
2==================================================
3
4You can include LaTeX math equations in AsciiDoc documents that are
5processed by http://dblatex.sourceforge.net/[dblatex]. The AsciiDoc
6'latexmath' macros and passthrough blocks generate DocBook
7'inlineequation', 'informalequation' and 'equation' elements
8containing the LaTeX markup which is processed by 'dblatex'.
9
10
11Inline equations
12----------------
13This markup:
14
15---------------------------------------------------------------------
16An inline equation latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
17using the 'latexmath' inline macro.
18---------------------------------------------------------------------
19
20Renders:
21
22An inline equation latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
23using the 'latexmath' inline macro.
24
25
26Informal equations
27------------------
28Informal (untitled) equations are generated with a 'latexmath' style
29passthrough delimited block. This markup:
30
31---------------------------------------------------------------------
32[latexmath]
33++++++++++++++++++++++++++++++++++++++++++++
34\[C = \alpha + \beta Y^{\gamma} + \epsilon\]
35++++++++++++++++++++++++++++++++++++++++++++
36---------------------------------------------------------------------
37
38Renders:
39
40[latexmath]
41++++++++++++++++++++++++++++++++++++++++++++
42\[C = \alpha + \beta Y^{\gamma} + \epsilon\]
43++++++++++++++++++++++++++++++++++++++++++++
44
45Functionally identical block macro syntax:
46
47---------------------------------------------------------------------
48latexmath::[\[C = \alpha + \beta Y^{\gamma} + \epsilon\]]
49---------------------------------------------------------------------
50
51Renders:
52
53latexmath::[\[C = \alpha + \beta Y^{\gamma} + \epsilon\]]
54
55
56Formal equations
57----------------
58Formal equations are titled and are generated with a 'latexmath' style
59passthrough delimited block.
60
61This markup:
62
63---------------------------------------------------------------------
64.First equation
65[latexmath]
66++++++++++++++++++++++++++++++++++++++++++++
67\[C = \alpha + \beta Y^{\gamma} + \epsilon\]
68++++++++++++++++++++++++++++++++++++++++++++
69---------------------------------------------------------------------
70
71Renders:
72
73.First equation
74[latexmath]
75++++++++++++++++++++++++++++++++++++++++++++
76\[C = \alpha + \beta Y^{\gamma} + \epsilon\]
77++++++++++++++++++++++++++++++++++++++++++++
78
79This markup:
80
81---------------------------------------------------------------------
82.Matrix
83[latexmath]
84++++++++++++++++++++++++++++++++++++++++++++
85\[ P^{e \rightarrow c}= \left[
86  \begin{array}{*{3}{r@{}l}}
87  & \cos \theta & & \sin \theta \sin \varphi & & \sin \theta \cos \varphi\\
88
89  & \sin \theta \sin \psi
90  & & \cos \varphi \cos \psi - \cos \theta \sin \varphi \sin \psi
91  & - & \sin \varphi \cos \psi - \cos \theta \cos \varphi \sin \psi\\
92
93  - & \sin \theta \cos \psi
94  & & \cos \varphi \sin \psi + \cos \theta \sin \varphi \cos \psi
95  & - & \sin \varphi \sin \psi + \cos \theta \cos \varphi \cos \psi\\
96  \end{array}
97\right] \]
98++++++++++++++++++++++++++++++++++++++++++++
99---------------------------------------------------------------------
100
101Renders:
102
103.Matrix
104[latexmath]
105++++++++++++++++++++++++++++++++++++++++++++
106\[ P^{e \rightarrow c}= \left[
107  \begin{array}{*{3}{r@{}l}}
108  & \cos \theta & & \sin \theta \sin \varphi & & \sin \theta \cos \varphi\\
109
110  & \sin \theta \sin \psi
111  & & \cos \varphi \cos \psi - \cos \theta \sin \varphi \sin \psi
112  & - & \sin \varphi \cos \psi - \cos \theta \cos \varphi \sin \psi\\
113
114  - & \sin \theta \cos \psi
115  & & \cos \varphi \sin \psi + \cos \theta \sin \varphi \cos \psi
116  & - & \sin \varphi \sin \psi + \cos \theta \cos \varphi \cos \psi\\
117  \end{array}
118\right] \]
119++++++++++++++++++++++++++++++++++++++++++++
120
121
Note: See TracBrowser for help on using the repository browser.