Discussion:
[fpc-devel] Math expressions in wiki
Werner Pamler
2017-04-14 10:25:21 UTC
Permalink
Does anybody know how to write mathematical expressions in the wiki? I
would like to write an article on fpc's NumLib, but I would only want to
begin this activity when I know how to enter complex mathematical
formulas like integrals etc such that they are displayed decently.
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.free
ListMember
2017-04-14 12:49:44 UTC
Permalink
Apparently, the FPC wiki uses the same software as Wikipedia; if so, the
following links may be useful.

https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Mathematics#Using_HTML

https://en.wikipedia.org/wiki/Wikipedia:Mathematical_symbols
https://en.wikipedia.org/wiki/List_of_mathematical_symbols
Post by Werner Pamler
Does anybody know how to write mathematical expressions in the wiki? I
would like to write an article on fpc's NumLib, but I would only want
to begin this activity when I know how to enter complex mathematical
formulas like integrals etc such that they are displayed decently.
_______________________________________________
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-d
Werner Pamler
2017-04-14 15:21:04 UTC
Permalink
Post by ListMember
Apparently, the FPC wiki uses the same software as Wikipedia; if so,
the following links may be useful.
https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Mathematics#Using_HTML
https://en.wikipedia.org/wiki/Wikipedia:Mathematical_symbols
https://en.wikipedia.org/wiki/List_of_mathematical_symbols
Yes I had found similar references myself, but neither they nor those
above do work: If I insert

{{math|''x'' {{=}} −(''y''<sup>2</sup> + 2)}}

(copied from the first link above) into a wiki article and press "Show
preview" it just displays Template:math in red. How do I activate this
template?
|
|
Giuliano Colla
2017-04-14 17:33:45 UTC
Permalink
How do I activate this template?
https://en.wikipedia.org/wiki/Wikipedia:Template_namespace

and in particular (to fetch the template text)

https://en.wikipedia.org/wiki/Wikipedia:Template_namespace#Substitution

Hope that it helps.

Giuliano


_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-d
Werner Pamler
2017-04-14 20:08:57 UTC
Permalink
Post by Giuliano Colla
Hope that it helps.
Not really... What I was seeking is a working example for something like

<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>

My naive assumption is that I'd just have to type this phrase into the
wiki text to get this formula in perfect math notation. This example is
taken from http://wiki.lazarus.freepascal.org/Help:Editing#emph, i.e.
from the Lazarus/FPC wiki. I thought that this example should work. But
it does not, the left column on this site should the code line again,
not the correctly drawn mathematical formula, unlike the other examples
- see for example "Math characters" a few boxes higher.

It looks to me that something (the math template?) is missing from the
Lazarus/FPC wiki infrastructure. If this is right, is there anybody I
could contact?
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.or
Giuliano Colla
2017-04-15 09:24:25 UTC
Permalink
Post by Werner Pamler
It looks to me that something (the math template?) is missing from the
Lazarus/FPC wiki infrastructure. If this is right, is there anybody I
could contact?
Maybe I'm wrong, but I believe that you can either load the template
from the infrastructure, or add it somehow in your page. That's what I
gathered from a quick reading of the wiki Template reference.

Giuliano

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mai
Denis Kozlov
2017-04-15 16:59:21 UTC
Permalink
Post by Werner Pamler
Does anybody know how to write mathematical expressions in the wiki? I
would like to write an article on fpc's NumLib, but I would only want
to begin this activity when I know how to enter complex mathematical
formulas like integrals etc such that they are displayed decently.
MediaWiki requires a math rendering extension, such as:
https://www.mediawiki.org/wiki/Extension:Math
https://www.mediawiki.org/wiki/Extension:SimpleMathJax

FPC/Lazarus wiki has no math rendering extensions installed, as you can
see here:
http://wiki.freepascal.org/Special:Version

Installing Math extension is a bit of a pain because it usually requires
a local rendering engine to be installed on the server.

I think you have 2 options:
1) Write your formulates using the wiki's standard notation
<math>LaTeX</math>, and once a Math extension is installed (if ever),
your formulas will be automatically rendered.
2) Generate visual rendering of your LaTeX formulates yourself, for
example using http://latex2png.com/, and upload them as images with
associated LaTeX code in comments.

Denis
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepa
Werner Pamler
2017-04-15 19:06:55 UTC
Permalink
Post by Denis Kozlov
1) Write your formulates using the wiki's standard notation
<math>LaTeX</math>, and once a Math extension is installed (if ever),
your formulas will be automatically rendered.
2) Generate visual rendering of your LaTeX formulates yourself, for
example using http://latex2png.com/, and upload them as images with
associated LaTeX code in comments.
Thanks. Application of #2 is a bit complicated, but the results are very
nice - see
http://wiki.lazarus.freepascal.org/NumLib_Documentation#Gamma_function.
Which resolution would you recommend?
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-dev
Denis Kozlov
2017-04-17 16:11:15 UTC
Permalink
Post by Werner Pamler
Thanks. Application of #2 is a bit complicated, but the results are
very nice - see
http://wiki.lazarus.freepascal.org/NumLib_Documentation#Gamma_function.
Which resolution would you recommend?
Your current resolution appears good on a desktop. On a high DPI device
(mobile phone) it is a bit pixelated, but still readable.

Denis
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.o
Michael Thompson
2017-04-18 02:14:54 UTC
Permalink
Post by Werner Pamler
Thanks. Application of #2 is a bit complicated, but the results are very
nice - see
http://wiki.lazarus.freepascal.org/NumLib_Documentation#Gamma_function.
As an aside, just wanted to say thanks - that documentation looks awesome!
I see what you mean about the "strange function names" :-)

Mike
Vincent Snijders
2017-04-15 19:43:20 UTC
Permalink
Post by Denis Kozlov
Post by Werner Pamler
Does anybody know how to write mathematical expressions in the wiki? I
would like to write an article on fpc's NumLib, but I would only want to
begin this activity when I know how to enter complex mathematical formulas
like integrals etc such that they are displayed decently.
https://www.mediawiki.org/wiki/Extension:Math
https://www.mediawiki.org/wiki/Extension:SimpleMathJax
FPC/Lazarus wiki has no math rendering extensions installed, as you can
http://wiki.freepascal.org/Special:Version
What math rendering extension do you recommend?
Post by Denis Kozlov
Installing Math extension is a bit of a pain because it usually requires a
local rendering engine to be installed on the server.
1) Write your formulates using the wiki's standard notation
<math>LaTeX</math>, and once a Math extension is installed (if ever), your
formulas will be automatically rendered.
2) Generate visual rendering of your LaTeX formulates yourself, for
example using http://latex2png.com/, and upload them as images with
associated LaTeX code in comments.
Vincent
Denis Kozlov
2017-04-17 16:17:41 UTC
Permalink
Post by Vincent Snijders
What math rendering extension do you recommend?
I recommend *SimpleMathJax* extension for its simplicity. It uses an
external resource (mathjax.org) and doesn't require a local rendering
engine.

https://www.mediawiki.org/wiki/Extension:SimpleMathJax

Denis
Vincent Snijders
2017-04-18 09:17:02 UTC
Permalink
Post by Vincent Snijders
What math rendering extension do you recommend?
I recommend *SimpleMathJax* extension for its simplicity. It uses an
external resource (mathjax.org) and doesn't require a local rendering
engine.
https://www.mediawiki.org/wiki/Extension:SimpleMathJax
I will try to find time this week to install that extension.

With kind regards,
Vincent
Vincent Snijders
2017-04-18 19:42:23 UTC
Permalink
Post by Vincent Snijders
Post by Vincent Snijders
What math rendering extension do you recommend?
I recommend *SimpleMathJax* extension for its simplicity. It uses an
external resource (mathjax.org) and doesn't require a local rendering
engine.
https://www.mediawiki.org/wiki/Extension:SimpleMathJax
I will try to find time this week to install that extension.
I installed this extension with the default settings for size. See
http://wiki.lazarus.freepascal.org/SANDBOX#Math.

Please, test if this is OK.

Vincent
Werner Pamler
2017-04-18 21:16:12 UTC
Permalink
Post by Vincent Snijders
I installed this extension with the default settings for size. See
http://wiki.lazarus.freepascal.org/SANDBOX#Math.
Thank you. Works fine in Chrome, but when I open this page in Firefox I
don't see the formula, only the header "Math" :-(
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-dev
Tomas Hajny
2017-04-18 21:24:51 UTC
Permalink
Post by Werner Pamler
Post by Vincent Snijders
I installed this extension with the default settings for size. See
http://wiki.lazarus.freepascal.org/SANDBOX#Math.
Thank you. Works fine in Chrome, but when I open this page in Firefox I
don't see the formula, only the header "Math" :-(
Which Firefox version? SeaMonkey shows it correctly (Mozilla/5.0 (Windows
NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46)...

Tomas


_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freep
Werner Pamler
2017-04-18 21:32:26 UTC
Permalink
Post by Tomas Hajny
Post by Werner Pamler
Post by Vincent Snijders
I installed this extension with the default settings for size. See
http://wiki.lazarus.freepascal.org/SANDBOX#Math.
Thank you. Works fine in Chrome, but when I open this page in Firefox I
don't see the formula, only the header "Math" :-(
Which Firefox version? SeaMonkey shows it correctly (Mozilla/5.0 (Windows
NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46)...
v52.0.2 (Win10-64bit, Firefix is 32-bit). Any extensions needed?
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal
Denis Kozlov
2017-04-18 21:57:08 UTC
Permalink
Post by Werner Pamler
v52.0.2 (Win10-64bit, Firefix is 32-bit). Any extensions needed?
Works fine here with Firefox v52.0.2 on Windows 7. No extensions needed,
it just needs javascript.

Try clearing your cache.

Denis

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/
Werner Pamler
2017-04-18 21:55:09 UTC
Permalink
Post by Tomas Hajny
Which Firefox version? SeaMonkey shows it correctly (Mozilla/5.0 (Windows
NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46)...
OK - found it: I have NoScript installed; if I remove the restrictions
from the site the formulas show up (after some time).

There's a problem with Microsoft Edge: It wraps the inline formulas into
new lines. But I think I can avoid inline formulas...
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepa

Jonas Maebe
2017-04-18 21:37:22 UTC
Permalink
Post by Werner Pamler
Thank you. Works fine in Chrome, but when I open this page in Firefox I
don't see the formula, only the header "Math" :-(
Do you have Javascript enabled?


Jonas
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinf
Marco van de Voort
2017-04-18 11:07:54 UTC
Permalink
Post by Werner Pamler
Does anybody know how to write mathematical expressions in the wiki? I
would like to write an article on fpc's NumLib, but I would only want to
begin this activity when I know how to enter complex mathematical
formulas like integrals etc such that they are displayed decently.
Note that there is documentation, it is just Dutch and TeX (not latex but
straight tex). Also, for some units the documentation sources are older than
the pascal source.

See http://www.stack.nl/~marcov/numlib/
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/m
Werner Pamler
2017-04-18 12:26:39 UTC
Permalink
Post by Marco van de Voort
Note that there is documentation, it is just Dutch and TeX (not latex but
straight tex). Also, for some units the documentation sources are older than
the pascal source.
I know this source, I think you once had posted it in the German forum.
Yes, I am a heavy user of "google.translate" at the moment...

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/lis
Loading...