[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!
Get Involved
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
Kailey
Community Team Leader
Community Team Leader
Posts: 3738
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

[CDB] MathJax (LaTeX) integration

Post by Kailey »

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 Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
My little corner of the world, where I sometimes post things documented from my job.
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

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

Post by JoshyPHP »

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 library that handles markup in phpBB 3.2+.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3738
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

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

Post by Kailey »

Interesting, but it produces this:

Image
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
My little corner of the world, where I sometimes post things documented from my job.
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

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

Post by JoshyPHP »

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 library that handles markup in phpBB 3.2+.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3738
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

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

Post by Kailey »

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 Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
My little corner of the world, where I sometimes post things documented from my job.
User avatar
yasser33311
Registered User
Posts: 277
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

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

Post by yasser33311 »

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

Return to “Extensions in Development”