File: sample-code

package info (click to toggle)
imgtex 0.20050123-8
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 56 kB
  • ctags: 4
  • sloc: perl: 125; makefile: 51; sh: 21
file content (36 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download
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
<blockquote>
<p>Here are some examples. Both math:
<img src="/cgi-bin/imgtex.fcgi?{$ f(x)=\int_{-\infty}^xe^{-t^2}dt $}" align="middle" />,
and displaymath:
<img src="/cgi-bin/imgtex.fcgi?{\[ f(x)=\int_{-\infty}^xe^{-t^2}dt \]}" align="middle" />
can be used.
</p>
<p>And colored version:
<img src="/cgi-bin/imgtex.fcgi?{\textcolor{blue}{$ f(x)=\int_{-\infty}^xe^{-t^2}dt $}}" style="vertical-align:middle" />,
and displaymath:
<img src="/cgi-bin/imgtex.fcgi?{\textcolor{red}{\[ f(x)=\int_{-\infty}^xe^{-t^2}dt \]}}" style="vertical-align:middle" />
can be used too (also examples of <tt>style="vertical-align:middle"</tt>).
</p>
<p>You can also write more complicated equations:</p>
<div align="center">
<img src="/cgi-bin/imgtex.fcgi?[res=300]{
\begin{equation*}
A = \begin{pmatrix}
a_{11} & \ldots & a_{1n} \\
\vdots & \ddots & \vdots \\
a_{m1} & \ldots & a_{mn}
\end{pmatrix}
\end{equation*}
}" />
</div>
<div align="center">
<img src="/cgi-bin/imgtex.fcgi?[res=200]{
\[
\frac{\pi}{2} =
\left( \int_{0}^{\infty} \frac{\sin x}{\sqrt{x}} dx \right)^2 =
\sum_{k=0}^{\infty} \frac{(2k)!}{2^{2k}(k!)^2} \frac{1}{2k+1} =
\prod_{k=1}^{\infty} \frac{4k^2}{4k^2 - 1}
\]
}" />
</div>
</blockquote>