[CDB] MathJax (LaTeX) integration

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2378
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

[CDB] MathJax (LaTeX) integration

Post by kinerity » Mon Dec 04, 2017 7:48 pm

Extension Name: MathJax (LaTeX) integration
Author: kinerity

Extension Description: An extension for phpBB 3.2.x that allows users to post in LaTeX.
Extension Version: 1.0.0-RC1

Requirements: phpBB 3.2.0

Demo URL: https://dev.project-w.org/community/vie ... hp?f=2&t=2

Extension Download: https://github.com/kinerity/mathjax/rel ... v1.0.0-RC1

GitHub: https://github.com/kinerity/mathjax

This extension uses the \( and \) for in-line mathematics in the BBCode HTML. Please make sure you omit these when posting LaTeX. For example, $a \ne 0 instead of \($a \ne 0\).
Kailey Truscott - Community Team

User avatar
JoshyPHP
Code Contributor
Posts: 1046
Joined: Mon Jul 11, 2011 12:28 am

Re: [3.2][BETA] MathJax (LaTeX) integration

Post by JoshyPHP » Mon Dec 04, 2017 8:41 pm

I don't know how MathJax works but if you replace the span with a code it will prevent other markup/BBCodes from being interpreted inside of it.
I wrote the thing that does BBCodes in 3.2.

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2378
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [3.2][BETA] MathJax (LaTeX) integration

Post by kinerity » Mon Dec 04, 2017 11:08 pm

Interesting, but it produces this:

Image
Kailey Truscott - Community Team

User avatar
JoshyPHP
Code Contributor
Posts: 1046
Joined: Mon Jul 11, 2011 12:28 am

Re: [3.2][BETA] MathJax (LaTeX) integration

Post by JoshyPHP » Mon Dec 04, 2017 11:15 pm

It's possible that MathJax ignores code elements too.

You can get a similar result with a span with a different definition:

Code: Select all

[latex #ignoreTags=true]{TEXT}[/latex]
I wrote the thing that does BBCodes in 3.2.

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2378
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [3.2][RC] MathJax (LaTeX) integration

Post by kinerity » Tue Feb 06, 2018 4:58 am

RC1 released. It will automatically install the BBCode for you on enable. See first post for download link.

Note: This extension uses the \( and \) for in-line mathematics in the BBCode HTML. Please make sure you omit these when posting LaTeX. For example, $a \ne 0 instead of \($a \ne 0\).
Kailey Truscott - Community Team

User avatar
yasser33311
Registered User
Posts: 266
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

Re: [3.2][RC] MathJax (LaTeX) integration

Post by yasser33311 » Sun Apr 22, 2018 12:05 pm

PhpBB Services - install, update, upgrade, customize: PM

Locked

Return to “Extensions in Development”