Questions tagged [mathjax]

MathJax is an open-source JavaScript engine that makes it easy to embed mathematical equations, symbols, and formulae on a web page. There is also a server-side version that provides command-line and nodejs interfaces to MathJax.

MathJax is an open-source JavaScript engine that makes it easy to embed mathematical equations, symbols, and formulae on a web page. There is also a server-side version that provides command-line and nodejs interfaces to MathJax.

Details:

Download:


Stack Overflow partners MathJax, please check out our tutorial.

1754 questions
27
votes
1 answer

CSP: How to allow unsafe-eval for a given URI prefix (Firefox)

I'm trying to use MathJax as part of our web application which uses pretty strict Content Security Policy (CSP). The problem is that MathJax is coded to use eval() [to be exact, in form of Function()] which is not considered safe by default by…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
26
votes
10 answers

Getting MathJax to update after changes to AngularJS model

I am trying to use AngularJS two-way binding text which includes Latex style equations. I would like to call MathJax to format the equations, but I'm not sure of the best way to ensure that MathJax is called after AngularJS finishes changing the…
Lukas Halim
  • 535
  • 1
  • 7
  • 12
26
votes
3 answers

MathJax inside SVG

I'm doing some writing where I use MathJax to render the math. I also occasionally include SVG diagrams which are generated dynamically by javascript. Those SVG diagrams occasionally include math. I'd like the text elements in those SVG diagrams to…
So8res
  • 9,856
  • 9
  • 56
  • 86
26
votes
2 answers

How to use Markdown with MathJax like Math StackExchange

UPDATED POST Ok I've managed to make Markdown and MathJax work together, it was relatively simple actually. I've used marked together with MathJax. $(function() { var $text = $("#text"), // the markdown textarea $preview =…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
25
votes
5 answers

Loading javascript into a UIWebView from resources

I need to load javascript files from my apps resources folder. As of right now, it does read images from the resources just fine, but it's not reading javascripts for some reason. I have been able to render html docs that reference these…
pyramation
  • 1,631
  • 4
  • 22
  • 35
25
votes
3 answers

How to change alignment of displayed equations in IPython Notebook?

I would like my MathJax displayed equations in IPython Notebook to be aligned at the left instead of centered. This is controlled by a core configuration option displayAlign in MathJax as described here. I have tried to set this option in IPython…
gauss256
  • 2,603
  • 4
  • 23
  • 23
25
votes
2 answers

How to use latex equation environment in Pandoc Markdown?

In Pandoc markdown, I can use '$$' to start a display math environment. However, these equations are not numbered in latex so I hope to use the equation environment instead, like this: \begin{equation} x+1 = 2 \\ y+2 = 3 \end{equation} That's fine…
Stan
  • 2,010
  • 3
  • 16
  • 12
25
votes
1 answer

How to define a new function ('operator') in MathJax?

I am using MathJax to display formulae on my web sites. Out of the box, MathJax recognises many functions like sin, cos, ..., but many are missing, such as sech (hyperbolic secant) and csch(hyperbolic cosecant). I know I can still use these…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
24
votes
1 answer

IPython (Jupyter) notebook producing ghost line in all equations

I installed IPython / Jupyter using pip on a new machine (Macbook Air with El Capitan). In a fairly simple notebook of mine (created with the same version of the whole stack) all equations, inline or not, suddenly have a vertical line on the right…
DCS
  • 3,354
  • 1
  • 24
  • 40
23
votes
5 answers

MkDocs and MathJax

I'm new to MkDocs and am writing some technical documentation that requires latex. I've successfully built a small website with one of the MkDocs themes, however it won't properly display the latex equations. I followed the instructions…
Eric Aldrich
  • 231
  • 1
  • 2
  • 3
22
votes
1 answer

Aligning multiple equations in MathJax

Is there a way to align multiple equations so the equators are underneath each other using MathJax? For example: 2x - 4 = 6 2x = 10 x = 5
bmt24
  • 259
  • 1
  • 3
  • 6
21
votes
1 answer

IPython (Jupyter) MathJaX preamble

Question How can I setup a MathJax "preamble" for use in IPython (or Jupyter) notebooks for repeated use in a way that is convenient for others to read my documents (on http://nbviewer.org) and that works for LaTeX/PDF generation? Background I…
mforbes
  • 7,062
  • 3
  • 16
  • 21
21
votes
4 answers

let PageDown and MathJax work together

I am implementing a UI which is supposed to look pretty much like the one on math.stackexchange.com: Using fancy Markdown like you are used to on stackoverflow Parsing formulars using MathJax between $...$-signs. So I downloaded the PageDown demo…
Milla Well
  • 3,193
  • 3
  • 35
  • 50
20
votes
3 answers

How to detect when mathjax is fully loaded?

Is there anyway to identify when the mathjax is fully loaded to process mathematics. I need to hide my mathematics equations before mathjax is fully loaded and show 'loading' message in mean time.
robert
  • 8,459
  • 9
  • 45
  • 70
20
votes
5 answers

Android webview +javascript not showing output in android 4.0.x,3.x

This is my main activity package com.example.mathjax_issues; import android.os.Bundle; import android.app.Activity; import android.graphics.Bitmap; import android.util.Log; import android.view.Menu; import android.webkit.WebResourceResponse; import…
Venkatesh S
  • 5,466
  • 1
  • 25
  • 30