Tags:
create new tag
view all tags

SID-02461: MathJax rendering

Status: Answered Answered TWiki version: 6.1.0 Perl version: 5.30.0
Category: LatexModePlugin Server OS: Ubuntu 20.04 Last update: 5 years ago

I would like to use MathJax to render LaTeX within TWiki. I cannot find directions; support for LaTeX seems to predate MathJax. I suspect it is simple, but I don't speak Perl and am hoping someone else has already figured this out.

-- Peter Saeta - 2020-12-05

Discussion and Answer

Since MathJax is all browser-based JavaScript you can simply include the library, and post the math text using TeX, MathML, or AsciiMath syntax.

Step 1: Include the mathjax JavaScript: (view raw page source)

Including this JavaScript could be done by a plugin, or a site-wide preferences setting, so that you could simply write %USEMATHJAX% in a topic to use MathJax. Or, you could add it to a TWiki template so that it is available in all topics by default. You could hire one of the TWikiConsultants to help you out.

Step 2: Enter math text:

  • TeX: \(\frac a b\)
  • MathML: x
  • AsciiMath: `a^2 + b^2 = c^2`

-- Peter Thoeny - 2020-12-05

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title MathJax rendering
SupportCategory LatexModePlugin
TWiki version 6.1.0
Server OS Ubuntu 20.04
Web server Apache/2.4.41
Perl version 5.30.0
Browser & version Safari
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2020-12-05 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.