[Scummvm-devel] Change default skin for wiki + New MathJax extension

Thierry Crozat criezy at scummvm.org
Tue Apr 12 23:25:40 CEST 2011


Le 12 avr. 2011 à 19:43, Michael Madsen a écrit :

> It appears that the MathJax extension breaks tables when dollar signs are used, e.g. for hexadecimal values – this is especially noticeable onhttp://wiki.scummvm.org/index.php/SCUMM/V5_opcodes. Could we change it to disallow inline math with $-signs, instead requiring \( and \)? I’ve attached a patch file which should do just that.
>  
> Alternatively, we could of course choose some other indicator for hexadecimal values, e.g. a 0x prefix.
>  
> Michael

Thanks,

I have now remove the $ hook for inline math formulas on the wiki. I also removed the $$ hook for display formula.
So now inline formula can only be written with \(....\) or <math>....</math> and display formula can be written with \[....\] or :<math>...</math>.

This was breaking several pages that used the $ sign. Sanguinehearts had even removed the $ from http://wiki.scummvm.org/index.php/SCUMM/V0/Maniac_Mansion_Apple_II a few weeks ago to fix the display there (they can be added back now if we want).

Thierry

PS: you forgot to modify one line in you patch (line 355 of MathJax.php if you want to see what you missed ;) ).



>  
> From: Thierry Crozat [mailto:criezy at scummvm.org] 
> Sent: Monday, March 07, 2011 4:51 AM
> To: ScummVM devel
> Subject: [Scummvm-devel] Change default skin for wiki + New MathJax extension
>  
> Hi all,
>  
> On sunday evening I changed the default skin on the wiki. When you are not logged in it will now use the new ScummModern skin from billwashere. That way the wiki has the same look than the main website or the forum. I also kept the old skin for those who preferred it. This theme was available since several months, with several improvements done along the way. You may already have changed the preferences for your wiki account to use that skin. If not I would encourage you to do so. If you don't you will still be using the old skin (the default only applies to user that are not logged in).
>  
> I also replaced the old jsMath extension by MathJax to render LaTeX formulae (see http://www.mediawiki.org/wiki/Extension:MathJax and http://www.mathjax.org/). The main advantage is that it is using web fonts, which means no special font has to be installed on the client computer to get a nice scalable rendering (there is still a bitmap rendering fallback for browser that do not support web fonts). MathJax also supports TeX style labeling (using \label{} or \eqref{}) 
> See http://wiki.scummvm.org/index.php/Instructions_to_Wiki_Editors for more info.
>  
>  
> Thierry
> <mathjax.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20110412/285dc4e7/attachment.html>


More information about the Scummvm-devel mailing list