vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - LaTeX By MathJax (https://vborg.vbsupport.ru/showthread.php?t=320276)

MarkFL 09-17-2015 09:00 PM

LaTeX By MathJax
 
1 Attachment(s)
This product is designed to allow you to easily add LaTeX powered by MathJax to your forum. You are given control over where it is active, whether it be sitewide or in certain forums only, with the option for other scripts as well.

By default, the basic script definitions for enabling MathJax are defined, but you may modify these scripts in the product settings. No template edits are needed.

Most sites using MathJax will place their scripts in the header, and then any LaTeX is rendered when the pages load. This works well if you want it everywhere and if the page will not be modified by the user, for example by AJAX processes such as vBulletin's Quick Reply/Edit. Under such a setup, the user will then have to refresh the page in order for LaTeX added this way to parse. This product injects the javascript necessary for LaTeX added this way to be parsed after the fact.

https://vborg.vbsupport.ru/attachmen...1&d=1442587832

Updates:

Version 1.1

Version 1.2
  • Added support for quick reply of visitor messages.

To Install:

Download and extract the attached .zip file.

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1442587832

Support for this product can be found here:

zorcocuq 09-26-2015 10:40 PM

Nice mod. Thanks for sharing.

MarkFL 10-27-2015 06:01 PM

Updates: Version 1.1

MarkFL 01-07-2016 06:50 PM

Updates: Version 1.2
  • Added support for quick reply of visitor messages.

MarkFL 06-07-2017 12:55 AM

MathJax recently announced that they will be shutting down its Content Delivery Network (CDN) and so in the setting labeled "Define Scripts"

Replace:

Code:

<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

With:

Code:

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script>


All times are GMT. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete