Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
22 views

hspace by percentage of column width? [closed]

How can one space things horizontally, not by a fixed amount but rather than by a percentage of the column width? I want something akin to $$ A\hspace{20%}B\hspace{20%}C $$ instead of $$ A\hspace{1....
4
votes
1answer
127 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}[...
0
votes
2answers
87 views

On using '&' and '\\' with align

When using \begin{align} 'stuff' \end{align} do I use &, \\, or both to get equations to appear on successive lines. For example a=b c=d . . . e=f
0
votes
0answers
33 views

Is there a reduced de Broglie wavelength symbol for mathjax? [duplicate]

I am working in a Jupyter notebook environment (which uses MathJax to typset math symbols in a Markup cell) writing mathematical physics equations and often related Python Numpy Sympy code in ...
0
votes
1answer
95 views

How to use $$ in mathjax to be inline? [closed]

I have used the following code to display inline mathjax <script type="text/x-mathjax-config"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script> <...
1
vote
1answer
40 views

How to put two tables next to each other? [closed]

I'm using MathJax on Math.SE and would like to place two matrices next to one another. When using an array followed by another array, they are not placed on the same line/row as can be seen here (...
0
votes
1answer
85 views

Difference of the content of the align environments family

I am using MathJax to convert LaTeX math into MathML and svg. Unfortunately MathJax does not support environments like xalignat, xxalignat, subequations and flalign. I am not looking for the accurate ...
1
vote
0answers
63 views

How to build table using MathJax? [closed]

I am a beginner. I am trying to build a table using math Jax but it can't compile. how can I add a table?
-1
votes
1answer
286 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 a) \mathit{\mathbb{E}} b) ...
3
votes
1answer
49 views

French accent into align environment with htlatex

I am using first latex compiler to generate pdf document. Into .tex source, I have the following equation : \begin{align} \text{tenseur sym\'etrique :}\,\,\,\,& S_{ij}=(1/2)\,(T_{ij}+T_{ji}) \...
1
vote
2answers
63 views

\newcommand works with latex but not with tex4ht( htlatex)

I am working on 2 rendering, the first one with the classical latex command and the other with htlatex command (tex4ht). I have defined the following \newcommand : \newcommand{\btFma}[2]{$\mathfrak{...
1
vote
1answer
108 views

\mathlarger with htlatex not supported : looking for other alternatives

I tried to use \mathlarger with integrals with htlatex but the MathJax page generated doesn't seem to support \mathlarger : you can see the result on this link : Issue with \mathlarger Latex source :...
0
votes
0answers
90 views

open source web based markup editor plugin supporting latex

I have a web project where we provide support for writing (basic) TeX with some additional markup (bold, italic,...). Currently, we use this plugin under MIT license, where the TeX markup is being ...
0
votes
1answer
225 views

Custom color for LaTeX output in Sphinx documentation package

I am trying to customize the color of the LaTeX inline formula when using Sphinx documentation package, and html output. The details: I have a file called func.rst, which includes the following line:...
1
vote
0answers
835 views

Using TikZ in a browser like MathJax [closed]

I'm guessing this has been done in a thread before, but I've just spent two hours reading various threads and cannot get my head around a very basic question. Long story short: I'm trying to create ...
0
votes
1answer
55 views

How can I make a character take up less horizontal space? [closed]

This is the equation, in mathjax: \( sin(\theta)=cos(90°-\theta) \) Which looks like this: If you highlight it you can see how much space the degree symbol is taking up: How can I get rid of the ...
0
votes
0answers
26 views

Mathjax/LaTex code for placing tilde beneath a variable [duplicate]

I know that \tilde{x} will produce but how do I make it that \tilde will be below ?
1
vote
1answer
36 views

Command as default argument of macro

I'm able to create a macro without problems which takes a command as one of its arguments, eg: \newcommand{formatnodefault}[2]{#1 #2} % both of these work \formatnodefault{\mathcal}{ABC} \...
0
votes
1answer
63 views

use CancelColor in mathjax [closed]

I want to use \cancel{·} in mathjax. with a crossed line of different color, explained here. I use \[ enter code here \require{xcolor} \require{cancel} \renewcommand\CancelColor{\color{red}} \...
0
votes
2answers
262 views

How do I math code Product symbol other than type $\prod_{i=1}^{n}$ [duplicate]

I can code symbols of the type $$\prod_{i=1}^{n}$$ but when it comes to: I cannot get the less-than-equal sign placed as shown.Can this be done easily? EDIT: below removed as reason explained in ...
1
vote
1answer
431 views

How to make a chemical diagram with mhchem

I need to write two symbols one below the other, and I referred to the following posts: How to write something vertically below another math symbol How to write below/above the text in LaTeX? ...
1
vote
0answers
161 views

MongoDB to math Latex [closed]

I am working on math quiz application and I want to store the math equations in to database.How to save math equations into mongodb database ?
5
votes
2answers
256 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 ...
0
votes
2answers
793 views

What's the symbol for a triangle pointing to the right?

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 ...
2
votes
1answer
111 views

How can I put arrows above an equation in MathJax?

I'm trying to write the following images in TeX using MathJax rendering: So I have the following equation: \[ \frac{36}{60} = \frac{18}{30} = \frac{9}{15} = \frac{3}{5} \] And I want to display ...
3
votes
1answer
383 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 (...
4
votes
2answers
2k 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{...
0
votes
1answer
55 views

What are the corresponding commands in MathJax for \"{o} and \'{o} in Latex? [closed]

In Latex \"{o} is for two dots above o and \'{o} is for uptone above o. And I am creating a website .html with MathJax for mathematical formulae and equations. But they just show as \"{o} and \'{o}. I ...
2
votes
0answers
148 views

Tex4ht/MathJax - Matrix equation with aligned rows

By using tex4ht I'm processing a tex document with a matrix equation where I would like the rows of all different arrays to be aligned (i.e. all row should have the same thickness). The latex document ...
4
votes
4answers
4k 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}...
19
votes
2answers
3k 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, ...
0
votes
1answer
214 views

How to compile my Math Stack Exchange Mathjax into a PDF document?

I have a rather lengthy post on Math SE at the following link. https://math.stackexchange.com/questions/2308162/how-is-the-matrix-of-a-linear-operator-affected-by-a-change-of-bases Now I'd like to ...
1
vote
3answers
910 views

MathJax: Have \displaystyle apply to each case of \begin{cases}

I would like \displaystyle to apply to each of my cases: $$\begin{cases} \displaystyle \frac 1 2 \\ \frac 3 4 \end{cases}$$ But it only seems to apply to the first: How can it be applied to all ...
1
vote
2answers
200 views

cancel package and tables

I have a "friend" who needs to do some kind of strikethrough or cancel but for a whole row or column (or both) of a table at a time. It should ideally be something supported by MathJax, so various ...
1
vote
2answers
373 views

Implies arrow in the northeast direction [closed]

How to create an arrow with a similar shape as the \implies arrow, but not in the right direction, say in the northeast direction. Thanks. Edit: I am using mathjax.
3
votes
0answers
134 views

Lyx: exporting document in a “MathJax compatible” way

When posting a question in math.SE, I like to write my questions in LyX and then export them to LaTeX. But there are several things that I have to do in the resulting LaTeX file in order to copy-paste ...
0
votes
1answer
1k views

How Can I Align The Steps to Solve a Simple Algebraic Equation with MathJax? [closed]

I am 14, and working on depicting the steps to solve a simple algebraic equation like this: 2x - 3 = 7 with MathJax. However, I want to align the required steps as depicted below: My question, ...
1
vote
0answers
161 views

How to get decent math rendering with Tex4ht?

After resolving the hyperref issues with tex4ht, I'm still having issues with the math rendering. The following MWE compiles fine with pdflatex, except for the d operator: \documentclass[a4paper, ...
2
votes
1answer
82 views

Equation number inside equation (not on extreme right), or ref to user-defined counter

Please note that the solution should be compatible with MathJax. I produce the .tex code, but someone else deals with the getting it up onto the web (meaning I don't understand MathJax, but if the "...
2
votes
1answer
249 views

Does \autoref break tex4ht?

While getting started with tex4ht, I noticed a couple of issues. The following MWE compiles fine with pdflatex: \documentclass[a4paper, 12pt, ngerman]{scrartcl} \usepackage[ngerman]{babel} \...
0
votes
0answers
34 views

How to make a smaller gap when using many level of $$$$? [duplicate]

I have the following problem: Where I'm using $$$$ twice to make the equation of the linear model fit horizontally. But I don't like white space that's left between the two lines. Is there a way ...
1
vote
1answer
242 views

Adding labels to matrix in MathJax? [closed]

How can I do the following kind of matrix in MathJax?
1
vote
0answers
108 views

CHTML MathJax sf font [closed]

I use solution for SVG and HTML-CSS from: https://github.com/mathjax/mathjax-docs/wiki/Can-MathJax-use-font-xxxx%3F <script type="text/x-mathjax-config"> MathJax.Hub.Config({ "HTML-CSS": {...
3
votes
2answers
517 views

Prime factorization

Is there any way that I can create the following in LaTeX which renders using MathJax:
2
votes
1answer
294 views

How to align on same line 2 equations with MathJax

I would like to align the 2 below equations on the same line with MathJax : \begin{equation} H_{x}= \begin{pmatrix} 1 & 2 & 1 \\ 0 & 0 & 0\\ -1 & -2 & -1 \end{pmatrix}...
1
vote
0answers
416 views

Drawing an arc with pstricks and latex2html5 [closed]

I get an issue about drawing an arc with MathJax and latex2html5 (from http://latex2html5.com/). I would like to draw this schema with these 2 libraries above : Unfortunately, I can't get to ...
3
votes
1answer
872 views

Which packages do I need to include to simulate MathJax?

I've been using Math.SE for a while, and I am comfortable with formatting math in MathJax. Now I am trying to write my first real LaTeX document on "ShareLaTeX". However, I am having trouble, because ...
1
vote
0answers
164 views

How can I add cross line in determinant? [closed]

I am working with TeX via Mathjax. How can I make the determinant looks like the picture I have attached. \begin{array}{|ccc|cc} 1 & 2 &4 & 1 &2\\ 3& 1 & 2 & 3 & 1\\ 2 ...
1
vote
0answers
168 views

Nested \( \) and group () [closed]

I am trying to allow programmers using Felix to write some formulas in LaTeX, in such a way they compile correctly, display correctly online using MathJaX, and typeset correctly using pdflatex with ...
3
votes
3answers
471 views

How to reduce the spacing in chemical symbols?

Currently, if want to write a chemical symbol, for example, ${}^{239}Np$, this is what I type in: {}^{239}Np. The result: But it looks bad, I feel as if the "N" and "p" should be closer, or a ...