Math test page

From GOSIA

Jump to: navigation, search
(reduced to two simple tests that render properly as of August 8 2011.)
 
Line 1: Line 1:
-
==An example that should work==
+
===Examples of math expressions and how they render on this Wiki===
 +
 
 +
==An equation from the Gosia manual==
<pre><math>\xi_{kn}\equiv \frac{Z_1 Z_2 \sqrt{A_1}}{6.34977}  
<pre><math>\xi_{kn}\equiv \frac{Z_1 Z_2 \sqrt{A_1}}{6.34977}  
\left( (E_p - s E_k)^{-1/2} - (E_p - s E_n)^{-1/2}\right)</math></pre>
\left( (E_p - s E_k)^{-1/2} - (E_p - s E_n)^{-1/2}\right)</math></pre>
-
gives back the text without rendering to an image or interpreting the Latex correctly:
+
renders as
<math>\xi_{kn}\equiv \frac{Z_1 Z_2 \sqrt{A_1}}{6.34977} \left( (E_p - s E_k)^{-1/2} - (E_p - s E_n)^{-1/2}\right)</math>
<math>\xi_{kn}\equiv \frac{Z_1 Z_2 \sqrt{A_1}}{6.34977} \left( (E_p - s E_k)^{-1/2} - (E_p - s E_n)^{-1/2}\right)</math>
-
<math>Y = N_{raw} / [\epsilon(E_\gamma) \Delta\Omega_{Ge}]</math>,
 
==An example from Wikipedia==
==An example from Wikipedia==
-
From Wikipedia page on Riemann sums:
+
From the Wikipedia page on Riemann sums:
<pre>:<math>S = \sum_{i=1}^{n} f(y_i)(x_{i}-x_{i-1})</math></pre>
<pre>:<math>S = \sum_{i=1}^{n} f(y_i)(x_{i}-x_{i-1})</math></pre>
Line 20: Line 21:
:<math>S = \sum_{i=1}^{n} f(y_i)(x_{i}-x_{i-1})</math>
:<math>S = \sum_{i=1}^{n} f(y_i)(x_{i}-x_{i-1})</math>
-
 
-
==Latex on this system==
 
-
 
-
Note that running 'latex' on the file containing
 
-
 
-
<pre>
 
-
\documentstyle[12pt]{article}
 
-
\begin{document}
 
-
$\xi_{kn}\equiv \frac{Z_1 Z_2 \sqrt{A_1}}{6.34977} \left( (E_p - s E_k)^{-1/2} - (E_p - s E_n)^{-1/2}\right)$
 
-
\end{document}
 
-
</pre>
 
-
 
-
on this system gives the following message:
 
-
 
-
<pre>
 
-
          Entering LaTeX 2.09 COMPATIBILITY MODE
 
-
*************************************************************
 
-
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!! 
 
-
 
-
This mode attempts to provide an emulation of the LaTeX 2.09
 
-
author environment so that OLD documents can be successfully
 
-
processed. It should NOT be used for NEW documents!
 
-
 
-
New documents should use Standard LaTeX conventions and start
 
-
with the \documentclass command.
 
-
 
-
Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 
-
files that change any internal macros, especially not with
 
-
those that change the FONT SELECTION or OUTPUT ROUTINES.
 
-
 
-
Therefore such style files MUST BE UPDATED to use
 
-
          Current Standard LaTeX: LaTeX2e.
 
-
If you suspect that you may be using such a style file, which
 
-
is probably very, very old by now, then you should attempt to
 
-
get it updated by sending a copy of this error message to the
 
-
author of that file.
 
-
*************************************************************
 
-
</pre>
 
-
 
-
The <tt>latex --version</tt> command gives the following information about the Latex installation:
 
-
 
-
<pre>
 
-
gosia@www-user:~$ latex --version
 
-
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
 
-
kpathsea version 5.0.0
 
-
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
 
-
There is NO warranty.  Redistribution of this software is
 
-
covered by the terms of both the pdfTeX copyright and
 
-
the Lesser GNU General Public License.
 
-
For more information about these matters, see the file
 
-
named COPYING and the pdfTeX source.
 
-
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
 
-
Compiled with libpng 1.2.42; using libpng 1.2.42
 
-
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
 
-
Compiled with poppler version 0.12.4
 
-
</pre>
 
-
 
-
==An example of HTML equations==
 
-
 
-
We currently don't have the right template(s) for HTML math expressions, so
 
-
 
-
<pre>{{math|{{radical|1 − ''e''²}}}}</pre>
 
-
 
-
gives only a template error:
 
-
 
-
{{math|{{radical|1 − ''e''²}}}}
 

Latest revision as of 16:09, 8 August 2011

Personal tools