Extension talk:MathLaTeX

Jump to navigation Jump to search

About this board

BrentLaabs (talkcontribs)

I saw your notice in the code about wanting a regular expression here. I'd suggest:

preg_replace( '/[\/\\\]{2,}/', "/", $path );

Reply to "slashforward TODO"

The source equation gets lost, but your code was very helpful for me.

1
Judiospi (talkcontribs)

Jesse,

I like the way you handle the rendering of LaTex equations, however after the rendering, the original source code for the equation gets lost. If I want to review an equation I would have to rewrite it entirely.

However, based in your code I was able to extend the MathTexvc Class of the Math package. By using the basic functionality of the MathTexvc Class, one does not have to deal with the database.

Also, I use Texlive portable. There is no need for Cwing.

Thanks for your help!

PD: If you are interested in the Modifications, these are at https://github.com/judios/mediawiki-extensions-Math/commit/2c179c3dd832ff8b4af8443e1025853d445ed39c

And these are the lines added to the LocalSettings.php file wfLoadExtension( 'Math' ); $wgUseTeX= true; $wgPdfLaTexCommand = "D:\\texlive\bin\win32\pdflatex.exe"; $wgDvipngCommand = "D:\\texlive\bin\win32\dvipng.exe"; $wgMathDisableTexFilter = true;

Reply to "The source equation gets lost, but your code was very helpful for me."
There are no older topics