Maths symbols in WIKI

Maths symbols in WIKI

by Ravi Vare -
Number of replies: 6
Hi all Moodlers,
i am using moodle 1.9.10

For maths code creation- i am using Mathtype 5.2

In this

Tex/Latex using
\ [..... ] \ (neglect spaces)

where
Wiki also uses [....] for creation of new page
----------------------------------------------
This [...] clashes to each other
----------------------------------------------

so i am using
TeX- Plain TeX
it tokens/delimiters are $ $..........$ $ (neglect spaces)

Its working !!!

My Question is

will it create any problem in future ?
OR
Has any other solution regarding this problem?


TIA

Ravi
Average of ratings: -
In reply to Ravi Vare

Re: Maths symbols in WIKI

by Mauno Korpelainen -

Square brackets do indeed cause some problems in Wiki, not only with delimiter conflicts but also with some mathematical notations that use square brackets. Sometimes you just need to use workarounds like optional renderers or images to get things look correct smile

In reply to Mauno Korpelainen

Re: Maths symbols in WIKI

by Ravi Vare -
Hei Mauno,
We have another weapon - 'Mathjax' To render Maths symbols

I know that '$ $..... $ $' '\ [ ..... \ ]'
These are delimiter used for MathTran and MathJax too

so i add one more '@ @...@ @' delimiter in meta.php file (see attachment)
but it can't render

What will be problem?

location->.....wwwroot/theme/high-school-classes/meta.php
-------------------------------------------------------------
For WIKI,
i used TEX-Plain
but it sometimes renders sometime can't

(see screen shot)

What to do?
plz. suggest something


Ravi
In reply to Ravi Vare

Re: Maths symbols in WIKI

by Ravi Vare -
when delimiter '@ @.......@ @'
MathJax can't render

MathType Translator- ....> AMS-Tex
Attachment delimiter @@.JPG
In reply to Ravi Vare

Re: Maths symbols in WIKI

by Ravi Vare -
Maths symbols in wiki
sometimes renders sometimes NOT

Below it some code is created

MathType Translator 'Tex-Plain'
Attachment Maths symbol in WIKI.JPG
In reply to Ravi Vare

Re: Maths symbols in WIKI

by Mauno Korpelainen -

You have simply missed one comma , between arrays in line 11:

... ['@ @','@ @'] , ['$ $','$ $'], ...

But honestly, I don't understand why you need 4 different pairs of delimiters for inline maths in mathJax...

There is another tiny risk in using @ @ : s - if you some day try to use algebra filter at the same time you will notice that algebra filter is using @ @ :s too ... and one of my asciimathml image fallback scripts is using the same delimiters for "forced image fallback to mathtex" ... smile

 

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: Maths symbols in WIKI

by Ravi Vare -
Thanks Mauno,
Now it works

New Delimiter '@ d.... @ d' (plz. see attachment)

Why do i use FOUR different pairs delimiters?

-> I used
DragMath- delimiter '$ $......$ $'
MathTran- delimiter '$ $ \ [...........\ ] $ $' somtimes '\ [.....\ ]'

i wanted to use MathJax Completely.
That is why......
(I gave '\ \' before' \'.....somewhere i read in moodle doc but i am not sure)

------------------------------------------------------------

I have one Query
Suppose MathTran & MathJax have same delimiter (e.g. $ $.... $ $)

Which one first render maths symbols?

can we change this preference ?


TIA

Ravi