Questions tagged [mathjax]

MathJax is is an open source JavaScript display engine for mathematics that works in all modern browsers. It allows LaTeX commands as input which are then rendered similar to the way LaTeX itself does it. Note that questions dealing with installation of MathJax, how it works, or rendering problems are widely considered to be off topic and are at risk of being closed. These questions can be asked on Stack Overflow (https://stackoverflow.com) instead.

Filter by
Sorted by
Tagged with
50 votes
2 answers
18k views

Convert Latex to MathJax-HTML

Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with MathJax? (Obviously, it is fairly easy to hack together a quick Perl script that is able to do ...
user avatar
46 votes
3 answers
47k views

How to typeset a matrix with MathJax?

I need to typeset a matrix with square brackets as delimiters for math.se (I believe they use MathJaX). How would I do that?
user avatar
  • 461
30 votes
4 answers
33k views

Where is the \matrix command?

From what I can see, \matrix was a TeX command, but I cannot seem to find documentation on it. It works in MathJax, so I wonder if it can be used in LaTeX. ie this is valid MathJax: $$ \left[ \...
user avatar
  • 4,156
30 votes
7 answers
10k views

Comparing MathJax and MathML

My organisation needs to update its website, which, in particular, will host a number of blogs and wikis on mathematics-related themes. We need to use some way of rendering of LaTeX on our web pages. ...
user avatar
28 votes
2 answers
27k views

Mathjax inline mode not rendering [closed]

In wordpress, I appended the Mathjax CDN to my header file. The inline equations do not render while the display-mode equations seem fine. An example: I have experience with Mathjax on another CMS (...
user avatar
  • 4,887
28 votes
2 answers
9k views

What is the difference between LaTeX and MathJax?

This might be a silly question, but I am rather new to using LaTeX/MathJax, which I use to render chemical equations over at Chemistry SE. I tend to use the term LaTeX and MathJax synonymously, ...
user avatar
22 votes
3 answers
5k views

How can I visualize Matrix operations?

I would like to visualize some matrix operations like that: How can I do that (preferably something that also works for mathjax)?
user avatar
  • 17.2k
20 votes
3 answers
176k views

Latex "element of with two strokes" (⋹)

Is there a latex symbol akin to \in, but with two strokes? It has a Unicode equivalent, ⋹. I looked on detexify, but I couldn't find anything that matched. If it doesn't exist, how might I "rig" it? ...
user avatar
20 votes
4 answers
10k views

What parsers for (La)TeX mathematics exist outside of the TeX engines?

Inspired by the author's motivation for asking Is there a BNF grammar of tex language. Are there any well done libraries that can parse some subset of TeX mathematics independently of the TeX engine? ...
user avatar
  • 12.5k
17 votes
1 answer
43k views

How can I make height-matched absolute value symbols without including packages? [closed]

I want to use the following formula: or, in markup: $$| \sum_i \vec{v}_i \Delta t_i |$$ I want to make nice height-matched absolute value delimiters, but I can't use any packages (I'm using ...
user avatar
  • 829
17 votes
5 answers
14k views

LaTeX to MathML conversion: tools, limitations, and approaches?

As far as I understand there are two ways to display LaTeX on the web: The MathJax JavaScript library, which allows you to embed LaTeX directly within HTML tags, but such LaTeX is converted by ...
user avatar
15 votes
3 answers
19k views

Boxed and align

Remark: The examples in this post are not the real cases, the real one is a web page using MathJax. It seems MathJax has some restrictions about the packages that can be used. In particular, mathtools ...
user avatar
14 votes
1 answer
2k views

Converting LaTeX to HTML but keeping equations as LaTeX

I'm using tex4ht for conversion of heavily maths loaded LaTeX files into HTML to be able to serve them in a web app. Can successfully convert all equations to MathML and jsMath. But as equations are ...
user avatar
14 votes
7 answers
4k views

Are there any server-side LaTeX to HTML-CSS converters?

I'm looking for something equivalent to MathJax, but that does the conversion(s) from MathML or LaTeX to HTML-CSS on the server backend as my site is rendering the page, rather than relying on ...
user avatar
  • 241
12 votes
1 answer
2k views

Getting superscripts in math mode without the ^ character

Is there a way to get the superscript math mode behavior without using ^? By way of background: I work at a large school that has a large web site that occasionally has math content on pages. I ...
user avatar
  • 2,079
10 votes
2 answers
2k views

conversion issues using htlatex and MathJax/mathML method

I am using the method shown in this answer below to convert my LaTeX file to HTML so that the resulting LaTeX file is processed by MathJax via MATHML: Convert Latex to MathJax-HTML "... mathml ...
user avatar
  • 18.3k
10 votes
7 answers
677 views

zero-installation LaTeX-ish math for casual users?

I teach physics at a community college, often to biology majors who are not math or computer geeks. For certain assignments, I require them to type up materials that include math. A typical ...
user avatar
10 votes
1 answer
16k views

Can I use LaTex in WhatsApp? [closed]

I've tried this, but it didn't work. Also tried using Markdown, although it only works when you're writing a message (not once you've sent it).
user avatar
9 votes
1 answer
3k views

Cancellation in fractions [closed]

This came up in Math.SE. Is there any way to produce a single cancellation across two fractions, like this? Ideally, it should be MathJax compatible, since that's what we use over there. ...
user avatar
9 votes
1 answer
5k views

Using simple, MathJax-compatible TeX to put enclose a matrix in braces

I was trying to explain the identity matrix over at Math StackExchange and I wound up using the following. $${\bf I_n} = \underbrace{ \left.\left( \begin{array}{...
user avatar
8 votes
1 answer
251 views

Are there efforts to develop a standard for (La)TeX-like math syntax?

One of the reasons many people in technical disciplines start using LaTeX in the first place is for the ease of typesetting mathematical formulas with it. In some circles, LaTeX-like syntax has become ...
user avatar
7 votes
4 answers
2k views

Text Mode Macros with MathJax

I find here that MathJax supports only math-mode macros (such as \sqrt{}) and not text-mode macros (such as \begin{align}). I am currently building a small wiki that will host mathematics articles, ...
user avatar
7 votes
1 answer
2k views

Adding horizontal space between fraction in mathjax latex code?

Here is the equation written in mathjax $$y=\frac{1 eV x^2}{2 md v^2}y$$ but it renders like this but i want to show like this i know one idea like this $$y=\frac{1}{2}\frac{ev}{2md}\frac{x^2}{...
user avatar
  • 197
7 votes
2 answers
1k views

Evaluation Symbol: Consistent Implementation

This question has been posted several times but... I'm looking for a consistent implementation of the evaluation symbol: Evaluation bar as delimeter: <...>| Auto-size to its enclosing ...
user avatar
7 votes
0 answers
2k views

MathJax vertical space + too thick fraction lines [closed]

When I use MathJax, sometimes the fraction lines got a different thickness (below imgage). Why? Another question is how to increase the vertical space between the lines, because in \begin{align} ... \...
user avatar
  • 181
6 votes
4 answers
9k views

Splitting lines for long equations

I am copying large formulas from a sympy session into Texmaker. These are along the lines of : \documentclass[]{article} \usepackage{amsmath} \begin{document} $$X''(x) = \left(- 2 C_{1} \sqrt{\lambda}...
user avatar
  • 1,382
6 votes
3 answers
3k views

Equations in normal LaTeX to MathJax formatting

To use the align environment in a document one does something like: \begin{align*} x &= \sqrt{4^2-1^2} \\ &= \sqrt{15}. \end{align*}put However, to achieve the same desired output on a ...
user avatar
  • 1,327
6 votes
1 answer
1k views

Convert LaTeX to HTML with MathJax

I'm student for Computer science. I prefer to write my home work assignments in LaTeX. I'm utilizing tikZ pretty heavily in my specialized science courses. My goal now is to convert my TeX files to ...
user avatar
6 votes
1 answer
2k views

The sign for "questioned equal to"

I want to write in TeX this sign: ≟ (Put in headings for bigger size). What's the syntax?
user avatar
  • 269
6 votes
3 answers
13k views

What's the symbol for a triangle pointing to the right (WHITE RIGHT-POINTING POINTER ▻)?

I am looking for a MathJax equivalent of the Unicode symbol called WHITE RIGHT-POINTING POINTER: ▻ It is a little bit longer than \triangleright, which looks like this: Also, I wasn't able to ...
user avatar
6 votes
2 answers
6k views

Using align inside cases

I was trying to achieve an alignment inside a cases environment. Here is what I was trying to achieve: I actually was able to achieve the above using the following MathJax code: $$ f(x,y) = \begin{...
user avatar
  • 1,059
5 votes
2 answers
1k views

How to use `MathJax mhchem \pu{}` command in LaTex?

As title says I would like to use MathJax mhchem \pu{} command in my LaTeX document. FYI it is widely used in chemistry stackexchange for putting units. But when used I get the error: Undefined ...
user avatar
  • 801
5 votes
2 answers
10k views

Why does the less than equal to symbol not appear as intended in the following code?

When I use the following code on stats.stackexchange.com (which is powered by MathJax) the \le does not render properly. Is this a bug in MathJax or am I not using the \le symbol properly? $X_3 = \...
user avatar
5 votes
1 answer
1k views

Pre-compiled mathjax output using mathjax node in make4ht or htlatex

It is possible to convert latex to html with make4ht or htlatex in which mathematics content gets converted into svg. Is it possible to pre-compile mathematics content of latex file into mathjax (...
user avatar
  • 1,443
5 votes
1 answer
8k views

What comand should I use to fork used in math [duplicate]

When doing practical math, you often fork your calculation due to some conditions, eg. when doing equations with absolute value. There is a symbol for this, and I wonder if mathJax can render this one ...
user avatar
5 votes
1 answer
8k views

How do I number equations with roman numbers?

I would like to display a set of equations with roman numerals on the left side. The equations should be left aligned and the = should be aligned. Something like that: I) ae + bg = ae + cf \...
user avatar
  • 17.2k
5 votes
1 answer
456 views

how to improve SVG for math resolution in tex4ht?

make4ht now supports both mathjax and svg for math. I noticed that the math displayed in the browser when using mathjax mode looks sharper/crisper than when using svg for math. So this question ...
user avatar
  • 18.3k
5 votes
1 answer
650 views

htlatex and differences between html and xhtml

To date, I have generated html files using htlatex rather than xhtml. This has been for one simple reason. I can right click on the html file and open it in MS word to then save and distribute to ...
user avatar
  • 3,955
5 votes
1 answer
3k views

WYSIWYG JavaScript editor for MathJax [closed]

I am looking for a WYSYWIG JavaScript editor for MathJax. I've read all the answers to similar questions (here and there) but could not find anything that is licensed under a liberal open source ...
user avatar
5 votes
0 answers
232 views

Teaching with LaTeX during a Pandemic: corrections on a file pdf [closed]

I should correct my students' handwritten exercises that them send me with a .pdf file for distance learning due to the closure of schools in Italy and I don't know for how much longer. I'm using or ...
user avatar
  • 46.3k
4 votes
4 answers
311 views

Arrays with non-inline style formulas in rows in KaTeX

I'm having a hard time trying to get a properly aligned inequations involving fractions in KaTeX. The best output I have got is with the array environment: \begin{array}{crccclc} z\in\Bbb R^+, & 0 ...
user avatar
  • 1,575
4 votes
1 answer
498 views

Error creating a \newcommand which uses \hspace

None of my \newcommand declarations work for \hspace, with or without arguments; I use the latest MathJax with the general libraries. Attempts so far: \newcommand{hs}[1]{\hspace{#1}} \newcommand{hs}[...
user avatar
4 votes
1 answer
115 views

Scaling delimiters in MathJax

I use TeX4ht with MathJax to convert tex to HTML/MathML. One issue I have is that delimiters scale depending on the height of the line, even if the tall content is not between the delimiters. For ...
user avatar
  • 601
4 votes
3 answers
10k views

How to make double-struck capital letters italic (e.g. U+1D53C)?

In Word I am able to include the unicode symbol U+1D53C (write number and press Alt+C) and assign italic formatting: How do I get the same result in LaTeX? I tried: \mathit{\mathbb{E}} {\it \...
user avatar
  • 151
4 votes
1 answer
16k views

How do I encircle text? Like make a circle around it? [closed]

I would like to know how make a circle and then insert text. There has to be a way.. right?
user avatar
4 votes
1 answer
4k views

bad looking binomial

I want to post something on math.stackexchange, but I have doubts about visual aspects of it. Take a look at $ {n \choose \lfloor \frac{n}{2}\rfloor} $ or $ { {n} \choose \frac{n}{k}} $ It just ...
user avatar
  • 155
4 votes
1 answer
192 views

How to convert a quantitative article from the 1970s that was written on a typewriter to LaTeX math code?

Mathpix can convert formulas in journal articles into Mathjax/LaTeX code by scanning or taking a picture of them. Is there a similar way to scan a journal article from the 1970s that was written on an ...
user avatar
4 votes
1 answer
214 views

LaTex in websites [closed]

I am doing a website in html, and my website is on math. So, I need to write equations there, but I have no idea of how to do it. I has been searching and I found this website https://proofwiki.org/...
user avatar
4 votes
1 answer
59 views

Tex4ht generates invalid math in mathjax mode when using dmath

The following MWE generates invalid math in HTML using mathjax mode. This only happens when using dmath*. I am using the solution from Error using \ifdefined\HCode with TeX4ht, but it works in LuaTeX ...
user avatar
  • 18.3k
4 votes
2 answers
1k views

Creating mathjax-style documents

Is there any software, website, etc. that renders a document as if MathJax were being used, but in such a way that the output can be read by someone who is not using MathJax? (Perhaps the equations ...
user avatar

1
2 3 4 5