<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  Te X2 png Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  Te X2 png Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><h4>Synopsis</h4>
<p class="tightenable"><a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a> to display mathematical formulae in a Wiki page.</p>
<h4>Usage</h4>
<pre class="tightenable">
&lt;?plugin TeX2png text=&quot;$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$&quot; ?&gt;</pre>
<p class="tightenable">gives</p>
<div class="plugin tightenable" id="TeX2pngPlugin"><div align="center"><img class="tex" src="images/tex/c0e7585c2add482621c0a58207171029.png" alt="$$(a+b)^n=\sum_{k=0}^n{n\choose k}a^k b^{n-k}$$" /></div>
</div>
<h4>Arguments</h4>
<p class="tightenable top">There is only one argument which is the text of the mathematical
expression. This text <b>must be</b> enclosed by a dollar $ within a
paragraph or two dollars $$ on a separate line. In the last case,
all is centered.</p>
<p class="tightenable">To write mathematical formulae, the syntax is the one
of <a href="http://www.latex-project.org" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />LaTeX</span></a>.</p>
<h4>Caveats</h4>
<p class="tightenable">This plugin is only to produce readable mathematical formulae. Any
other text is not allowed : so if an expression is not enclosed by
dollars then it will be displayed by a red text. It is all the same
possible to display raw text as <span class="plugin" id="TeX2pngPlugin2"><img class="tex" src="images/tex/02e5fca75dbb2e726dbff8793c2b388a.png" alt="$\textrm{\LaTeX}$" /></span> by using :</p>
<pre class="tightenable">
&lt;?plugin TeX2png text=&quot;$\textrm{\LaTeX}$&quot; ?&gt;</pre>
<p class="tightenable">This plugin is not able to produce sophisticated mathematicals texts
with links, cross references... For that, you can use for example
LaTeX2html.</p>
<h4>Examples</h4>
<p class="tightenable">Some Greeks letters : <span class="plugin" id="TeX2pngPlugin3"><img class="tex" src="images/tex/c745b9b57c145ec5577b82542b2df546.png" alt="$\alpha$" /></span>, <span class="plugin" id="TeX2pngPlugin4"><img class="tex" src="images/tex/8217ed3c32a785f0b5aad4055f432ad8.png" alt="$\beta$" /></span>, ... and a formula <span class="plugin" id="TeX2pngPlugin5"><img class="tex" src="images/tex/ce47b24b2c8590afd50fe43a3c9af8df.png" alt="$\sum_{i=1}^n \frac1{i^2}=\frac{\pi^2}{6}$" /></span> to test display in a paragraph.</p>
<p class="tightenable"><b>Exercise 1</b> Consider the function <span class="plugin" id="TeX2pngPlugin6"><div align="center"><img class="tex" src="images/tex/2823a8a9914bf46ebe18cc5140142936.png" alt="$$f(x)=(x^2-4x+3)^{1/2}$$" /></div>
</span></p>
<ol><li class="tightenable bottom">Give the largest real domain for which f(x) is well defined.</li>
<li class="tightenable top bottom">Give a domain on which the function is one-to-one. Using this domain derive a formula for the inverse function <span class="plugin" id="TeX2pngPlugin7"><img class="tex" src="images/tex/55313a1fc6d54cd313097941bfee0b2e.png" alt="$f^{-1}(x)$" /></span>.</li>
<li class="tightenable top">Calculate the derivative f'(x).</li>
</ol>
<p class="tightenable"><b>Exercise 2</b> Consider the function :</p>
<div class="plugin tightenable" id="TeX2pngPlugin8"><div align="center"><img class="tex" src="images/tex/9eb957c01e741047f1e0bacc5fef6e77.png" alt="$$f(x) = \int_0^x e^{-t^2}\,dt, x\in\mathbb R$$" /></div>
</div>
<ol><li class="tightenable bottom">Show that for all r &gt; 0 :<span class="plugin" id="TeX2pngPlugin9"><div align="center"><img class="tex" src="images/tex/caec7238a143f3d7642e9c4f258271db.png" alt="$$\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$$" /></div>
</span> <b>Help</b> : you can use polar coordinates.</li>
<li class="tightenable top">Hence find the limit of <span class="plugin" id="TeX2pngPlugin10"><img class="tex" src="images/tex/7997339883ac20f551e7f35efff0a2b9.png" alt="$f(x)$" /></span> as x tends <span class="plugin" id="TeX2pngPlugin11"><tt class="tex" style="color:red;">to $\infty$</tt></span>.</li>
</ol>
<hr />
<p class="tightenable bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
