]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FTeX2pngPlugin
formatting update for consistency
[SourceForge/phpwiki.git] / pgsrc / Help%2FTeX2pngPlugin
1 Date: Fri, 29 Dec 2006 18:57:39 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.10)
3 X-Rcs-Id: $Id: Help%2FTeX2pngPlugin,v 1.2 2007-01-02 13:25:15 rurban Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FTeX2pngPlugin;
6   pgsrc_version="2 $Revision: 1.2 $";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 ! Synopsis
13
14 Help:WikiPlugin to display mathematical formulae in a Wiki page.
15
16 ! Usage
17
18 <verbatim>
19 <?plugin TeX2png text="$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$" ?>
20 </verbatim>
21
22 gives
23
24 <?plugin TeX2png text="$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$" ?>
25
26 ! Arguments
27 There is only one argument which is the text of the mathematical
28 expression. This text *must be* enclosed by a dollar $ within a
29 paragraph or two dollars $$ on a separate line. In the last case,
30 all is centered.
31
32 To write mathematical formulae, the syntax is the one
33 of [LaTeX | http://www.latex-project.org].
34
35 ! Caveats
36
37 This plugin is only to produce readable mathematical formulae. Any
38 other text is not allowed : so if an expression is not enclosed by
39 dollars then it will be displayed by a red text. It is all the same
40 possible to display raw text as <?plugin TeX2png text="$\textrm{\LaTeX}$" ?> by using :
41
42 <verbatim>
43 <?plugin TeX2png text="$\textrm{\LaTeX}$" ?>
44 </verbatim>
45
46 This plugin is not able to produce sophisticated mathematicals texts
47 with links, cross references... For that, you can use for example
48 LaTeX2html.
49
50 ! Examples
51
52 Some Greeks letters : <?plugin TeX2png text="$\alpha$" ?>, <?plugin TeX2png text="$\beta$" ?>, ... and a formula <?plugin TeX2png text="$\sum_{i=1}^n \frac1{i^2}=\frac{\pi^2}{6}$" ?> to test display in a paragraph.
53
54 *Exercise 1* Consider the function <?plugin TeX2png text="$$f(x)=(x^2-4x+3)^{1/2}$$" ?>
55
56 #Give the largest real domain for which f(x) is well defined.
57 #Give a domain on which the function is one-to-one. Using this domain derive a formula for the inverse function <?plugin TeX2png text="$f^{-1}(x)$" ?>.
58 #Calculate the derivative f'(x).
59
60 *Exercise 2* Consider the function :
61
62 <?plugin TeX2png text="$$f(x) = \int_0^x e^{-t^2}\,dt, x\in\mathbb R$$" ?>
63
64 #Show that for all r > 0 :<?plugin TeX2png text="$$\frac{\pi}{2}\int_0^r t  e^{-t^2}\,dt \leq \int_0^r e^{-x^2}\,dx \int_0^r e^{-y^2}\,dy \leq \frac{\pi}{2} \int_0^{\sqrt{2} r} t e^{-t^2}\,dt$$" ?> *Help* : you can use polar coordinates.
65 #Hence find the limit of <?plugin TeX2png text="$f(x)$" ?> as x tends <?plugin TeX2png text="to $\infty$" ?>.
66
67 -----
68
69 PhpWikiDocumentation Help:WikiPlugin