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.
Mailing lists / fpc-devel / 2017-04
Math expressions in wiki
22 messages · 9 people · –
- WWerner Pamler 8
- DDenis Kozlov 4
- VVincent Snijders 3
- GGiuliano Colla 2
- JJonas Maebe 1
- LListMember 1
- +3 more
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Werner Pamler wrote 7 lines
ListMember wrote 8 lines
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?
|
|
Il 14/04/2017 17:21, Werner Pamler ha scritto:
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
Giuliano Colla wroteHope 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?
Il 14/04/2017 22:08, Werner Pamler ha scritto:
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
Does anybody know how to write mathematical expressions in the wiki? I would like to…
Werner Pamler wroteDoes 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
Denis Kozlov wrote 7 lines
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?
MediaWiki requires a math rendering extension, such as:…
2017-04-15 18:59 GMT+02:00 Denis Kozlov :
Show quoted text 17 lines
What math rendering extension do you recommend?
Show quoted text 12 lines
Vincent
Thanks. Application of #2 is a bit complicated, but the results are very nice - see…
Werner Pamler wroteThanks. 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
2017-04-15 18:59 GMT+02:00 Denis Kozlov : What math rendering extension do you recommend?…
Vincent Snijders wroteWhat 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
Thanks. Application of #2 is a bit complicated, but the results are very nice - see…
AM Werner Pamler wroteThanks. 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
I recommend *SimpleMathJax* extension for its simplicity. It uses an external resource…
2017-04-17 18:17 GMT+02:00 Denis Kozlov :
Show quoted text 12 lines
I will try to find time this week to install that extension.
With kind regards,
Vincent
Does anybody know how to write mathematical expressions in the wiki? I would like to…
In our previous episode, Werner Pamler said:
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.
Marco van de Voort wroteNote 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...
2017-04-17 18:17 GMT+02:00 Denis Kozlov : I will try to find time this week to install…
2017-04-18 11:17 GMT+02:00 Vincent Snijders :
Show quoted text 20 lines
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
Vincent Snijders wroteI 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" :-(
Werner Pamler wrote 6 lines
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
Tomas Hajny wrote 8 lines
v52.0.2 (Win10-64bit, Firefix is 32-bit). Any extensions needed?
Thank you. Works fine in Chrome, but when I open this page in Firefox I don't see the…
Werner Pamler wroteThank 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
Which Firefox version? SeaMonkey shows it correctly (Mozilla/5.0 (Windows NT 6.1; WOW64;…
Tomas Hajny wroteWhich 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...
v52.0.2 (Win10-64bit, Firefix is 32-bit). Any extensions needed?
Werner Pamler wrotev52.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
