File: latex.fo

package info (click to toggle)
libjlatexmath-java 1.0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,268 kB
  • sloc: xml: 23,113; java: 13,399; makefile: 37; cpp: 30; sh: 10
file content (96 lines) | stat: -rw-r--r-- 4,026 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="2cm" margin-top="1cm" page-width="8.5in" page-height="29.7cm" master-name="first">
      <fo:region-body margin-top="1cm"/>
      <fo:region-before extent="1cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="first" font-family="CMUSerif-Roman">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block line-height="14pt" font-size="10pt" text-align="end"><fo:instream-foreign-object><latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">\JLaTeXMath</latex></fo:instream-foreign-object> Extension</fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block line-height="14pt" font-size="10pt" text-align="end">Page <fo:page-number/></fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
      The <fo:instream-foreign-object><latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">\JLaTeXMath</latex></fo:instream-foreign-object> Extension
      </fo:block>
      <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
The <fo:instream-foreign-object><latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">\JLaTeXMath</latex></fo:instream-foreign-object> extension is an addition to FOP that can be used to draw <fo:instream-foreign-object><latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">\LaTeX</latex></fo:instream-foreign-object> expressions.
      </fo:block>
      <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
      Examples
      </fo:block>
      <fo:block font-size="12pt">
This is a 12pt block with a formula :
<fo:block text-align="center">
<fo:instream-foreign-object>
<latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">
\int_0^{+\infty} e^{-x^2}\mathrm{d}x=\frac{\sqrt\pi}{2}
</latex>
</fo:instream-foreign-object>
</fo:block>
But you can prefer a red block with a font set to 15pt:
<fo:block text-align="center" font-size="15pt" color="red">
<fo:instream-foreign-object>
<latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">
<![CDATA[
\mathrm{det}\begin{bmatrix}
\alpha&\beta\\
\gamma&\delta
\end{bmatrix}
\overset{\text{def}}{=}\alpha\times\delta-\gamma\times\beta
]]>
</latex>
</fo:instream-foreign-object>
</fo:block>
An other one:
<fo:block text-align="center">
<fo:instream-foreign-object>
<latex style="display" fwidth="8.5in" flwidth="1in" frwidth="1in" xmlns="http://forge.scilab.org/p/jlatexmath">
<![CDATA[
\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R}  \frac{\partial}{\partial R}\left[ R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR
]]>
</latex>
</fo:instream-foreign-object>
</fo:block>
Another formula with a \mathfrak :
<fo:block text-align="center">
<fo:instream-foreign-object>
<latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">
<![CDATA[
\det\begin{bmatrix}
a_{11}&a_{12}&\cdots&a_{1n}\\
a_{21}&\ddots&&\vdots\\
\vdots&&\ddots&\vdots\\
a_{n1}&\cdots&\cdots&a_{nn}
\end{bmatrix}\overset{\mathrm{def}}{=}\sum_{\sigma\in\mathfrak{S}_n}\varepsilon(\sigma)\prod_{k=1}^n a_{k\sigma(k)}
]]>
</latex>
</fo:instream-foreign-object>
</fo:block>
But you can prefer a formula in the text
<fo:instream-foreign-object>
<latex style="display" xmlns="http://forge.scilab.org/p/jlatexmath">
<![CDATA[
\sum_{n=1}^{+\infty}\frac1{n^2}=\frac{\pi^2}{6}
]]>
</latex>
</fo:instream-foreign-object> 
in \displaystyle or in \textstyle
<fo:instream-foreign-object>
<latex style="text" xmlns="http://forge.scilab.org/p/jlatexmath">
<![CDATA[
\sum_{n=1}^{+\infty}\frac1{n^2}=\frac{\pi^2}{6}
]]>
</latex>
</fo:instream-foreign-object> 

      </fo:block>

    </fo:flow>
  </fo:page-sequence>
</fo:root>