Achtung: Dies ist eine historische Web-Site. Aktuell ist https://rainer.gerhards.net/ (engl) bzw https://www.rainer-gerhards.de/ (deutsch). Alle dynamischen Funktionen, Formulare etc auf dieser Seite sind abgeschaltet.
Datenschutzerklärung Impressum

Astronomy and Space Flight, Astronomie und Raumfahrt und dies und das...

Mathematik - LaTex Displaymath anomalies... and \displaystyle

rgerhards - Mar 25, 2009 - 09:22 AM
Post subject: LaTex Displaymath anomalies... and \displaystyle
This does not work:

$$\prod_{i=0}^{n}(i+n)$$

while this does (note the two blank lines):



$$\prod_{i=0}^{n}(i+n)$$
In the next sample, the two blank lines do not work



$$(n-k)! = \frac{\prod_{i=0}^{n-1}(n-i)}{\prod_{i=0}^{k-1}(n-i)}$$

However, it turns out that this is the expected latex rendering. One can modify it with the \displaystyle override, done below:




$$(n-k)! = \frac{\displaystyle\prod_{i=0}^{n-1}(n-i)}{\displaystyle\prod_{i=0}^{k-1}(n-i)}$$
rgerhards - Mar 25, 2009 - 10:28 AM
Post subject:
... and here the same as phpBB source:

This does not work:
[mm]
$$\prod_{i=0}^{n}(i+n)$$
[/mm]

while this does (note the two blank lines):
[mm]


$$\prod_{i=0}^{n}(i+n)$$
[/mm]
In the next sample, the two blank lines do not work
[mm]


$$(n-k)! = \frac{\prod_{i=0}^{n-1}(n-i)}{\prod_{i=0}^{k-1}(n-i)}$$
[/mm]

However, it turns out that this is the expected latex rendering. One can modify it with the \displaystyle override, done below:

[mm]


$$(n-k)! = \frac{\displaystyle\prod_{i=0}^{n-1}(n-i)}{\displaystyle\prod_{i=0}^{k-1}(n-i)}$$
[/mm]
rgerhards - Mar 25, 2009 - 10:36 AM
Post subject:
And finally some references I found helpful while wrangling with the issue:

http://www.artofproblemsolving.com/LaTe ... #fractions
http://www.phpbb.com/community/viewtopi ... ;start=570 (this thread seems to be visited by the current latexrenderer maintainer)
http://www.mayer.dial.pipex.com/tex.htm (LaTex Renderer]
http://www.mayer.dial.pipex.com/latexre ... render.htm (latexrenderer samples)
All times are GMT + 1 Hour
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits