Questions tagged [mathjax]

MathJax 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
2 votes
1 answer
22 views

make4ht compiled HTML math doesn't justify with text

My test.tex MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a ...
Valdinei Rodrigues's user avatar
0 votes
1 answer
36 views

Color Each Line of `align` Environment with a Different Color

I am trying to have different colors to different lines within an align / aligned environment. It seems the & symbol is causing some issues. I want to color each line of the following: \begin{...
Royi's user avatar
  • 233
1 vote
0 answers
105 views

Librarys in TikZJax

https://tikzjax.com/ https://tikzjax-demo.glitch.me/ Is it possible to use librarys in TikZJax? I testet \tikzset{ background rectangle/.style={fill=red, rounded corners}, show background ...
cis's user avatar
  • 7,529
1 vote
0 answers
59 views

End brace in the wrong location?

I have the following TeX - embedded via MathJax - in an HTML file. The result is shown below but isn't what I expected to see. Instead, I would like to end the "github" brace before .com. ...
Chris's user avatar
  • 527
0 votes
0 answers
15 views

Is there a way to display \cosec in Mathjax? [duplicate]

While I can add \sec to MathJax, I am unable to add \cosec. Could the experts here please help me if/when free?
Ritesh Singh's user avatar
1 vote
1 answer
423 views

Browser not showing math symbols when I am visiting certain websites [closed]

Okk so here is my issue I visited the stack math website and all the mathematical symbols were replaced with probably some tex code or something else that I don't know of I tried my best to search it ...
Tushar Thakur's user avatar
0 votes
4 answers
285 views

How to type a function above an arrow like this?

Can you please tell how to type the function $f ,g$ above the arrows in the sequence $0\to C\to D\to E\to$ like it is in the following image? : I shall be really grateful.
Avenger's user avatar
  • 103
3 votes
2 answers
236 views

How can I align without spaces

When I use this text in TexShop or on math stack exchange (MathJax), I get this alignment How can I align these "parts" without the extra spaces?
poetasis's user avatar
  • 199
1 vote
1 answer
114 views

Is feasible to draw a rectangle containing text as a subscript?

I'm trying to make a rectangle containing text as a subscript, something like this I tried this code $x_{\square{i..j}}$ with MathJax and LaTeX MathJax gives this where the subscript i..j is not ...
JJJohn's user avatar
  • 556
0 votes
1 answer
72 views

Help with typo errors on these math codes

So I have come across some math expressions that I really need to read through. However, for some reason these codes shows on some part of the document in the browser and I have no idea what these are ...
shinichi's user avatar
1 vote
1 answer
55 views

Text alignment between curly braces [duplicate]

I am trying to rewrite an equation that looks like this: The latex code I have written so far is: \documentclass{article} \begin{document} \[f(x,\alpha,x_m) = \biggl\{ \frac {\alpha x_m^\alpha} {x_i^...
No_Name's user avatar
  • 49
0 votes
1 answer
175 views

Using math inside text (\ensuremath equivalent) in mathjax

I am writing some maths notes in MathJax (in Markdown, if relevant) and want to be able to write out definitions in a \text{} block, but interspersed with some variable names. In TeX, it is possible ...
magnesium's user avatar
  • 103
0 votes
0 answers
97 views

Is there a way to convert TeX to Markdown with SVGs for equations and PGF/TikZ?

I'm building a static blog with Jekyll and I've got some TeX documents which I'd like to convert to Markdown. I tried using pandoc but most of the inline equations (especially those with aligned ...
Jiewei Xiong's user avatar
1 vote
1 answer
60 views

make4ht creates images for double-dollar formulas despite mathjax option

I want to convert the following (minimized) TeX file to HTML: \documentclass{article} \begin{document} We have $a = a$, \(a = a\) and also \[c = c\] and even \begin{equation*} E = mc^2. \end{...
qarabala's user avatar
  • 202
3 votes
2 answers
227 views

Coloring the exponent a different color than the base number

I want to color an exponent differently than its base. I'm trying to do it as shown below, which displays correctly in the editor I'm using, but my screenreader will not read it. The problem is ...
JH_MathCourseBuilder's user avatar
0 votes
1 answer
100 views

How to number a group of equations in html/Mathjax [closed]

I am using MathJax on my website. When I number a single equation, it turns out all right. However, for a group of equations, it doesn't work. I have to modify the code like below and only then the Eq ...
QMC's user avatar
  • 473
-1 votes
1 answer
153 views

How do I write oxidation numbers using chemmacros in mathjax? [closed]

I saw this post and went to chemmacros. I'm unable to use the chemmacros package to write oxidation numbers. I wrote the following, but I can't render oxidation numbers in mathjax in chemistry stack ...
Sam Harris's user avatar
4 votes
1 answer
140 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 ...
Nasser's user avatar
  • 20.7k
1 vote
1 answer
115 views

How do I do a linebreak inside a table?

I have some equations inside a table slot, but I want to linebreak. In my specific problem I want to create a Linebreak after the equation $$C_{3}=M_{1}+d$$ How can I create this linebreak in a ...
Maalik Serebryakov's user avatar
2 votes
2 answers
255 views

How to add a bracket above a gather environment?

I would like to turn this : $$ \begin{gather} \overbracket{\text{1 2}}^{\text{Basic idea}} & \overbracket{\text{3 4}}^{\text{Contrasting idea}} \\ \underbracket{\text{5 6}}_{\text{Basic idea}} &...
Elaws's user avatar
  • 23
1 vote
1 answer
168 views

How can I write a solid circle in MathJax? [closed]

I want to insert solid circle in a formula in mathematics stack exchange question, which uses MathJax. how can I do that?
Zuhair Al-Johar's user avatar
0 votes
0 answers
637 views

jupyter-notebook - Wrap text inside align-environment

The following is a snippet from a jupyter-notebooks' markdown cell. $$ \begin{aligned} \mathrm{d}J & = \mathrm{tr}(\frac{\mathrm{d}J}{\mathrm{d}\mathbf{A}^{[3]}} \frac{\mathrm{d}\mathbf{A}^{[3]}}{\...
x.projekt's user avatar
  • 101
0 votes
2 answers
117 views

How to get a smaller brace? [closed]

This is my latex: $$ \left\{\begin{align} e&=\lim_ { n → \infty } \left( 1 + \frac { 1 } { n } \right) ^ { n } \\ \frac { 1 } { e }&=\lim_ { n → \infty } \left( 1 - \frac { 1 } { n } \right) ^...
yode's user avatar
  • 243
4 votes
1 answer
153 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 ...
user44413's user avatar
  • 601
0 votes
1 answer
324 views

How to write LaTeX in browsers (in other words HTML)?

I know it is a dumb question because there is MathJax and MathML. But lots of people has said that MathJax also have MathML support. And in https://artofproblemsolving.com, I found that MathJax doesn'...
RajinCoding2007's user avatar
0 votes
2 answers
718 views

MathJax not rendering Tex in display style

I'm rendering a LaTeX file to HTML via Pandoc, and the output has one key difference that I can't figure out how to fix. In my LaTeX'd PDFs, I have some math in display mode that renders as: But in ...
Andrew M.H. Alexander's user avatar
4 votes
1 answer
1k 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/...
Rata mágica's user avatar
2 votes
1 answer
114 views

Longer \nLeftrightarrow

I'm looking for a longer \nLeftrightarrow, usable in MathJax / LaTex-enabled StackExchange websites. I tried the following, and I'm puzzled.
fgrieu's user avatar
  • 179
1 vote
0 answers
248 views

Alternative to using double backslash in math environments?

I have a (frustrating) toolchain problem involving some software that behaves unexpectedly with respect to \\. It's part of a toolchain I'm using to produce HTML with MathJax. The problem causes ...
mhucka's user avatar
  • 575
0 votes
0 answers
73 views

TeX in EPUB file is shrunk on e-reader

Here is what my EPUB file looks like in Calibre: and here is what I see on my newly purchased e-reader: As you can see, the LaTeX in math environments is shrunk to an unreadably small size. I would ...
There's Strange Stuff Out Here's user avatar
2 votes
1 answer
179 views

Bug in siunitx when used with tex4ht and mathjax?

Compiling the file test.tex: \documentclass{article} \usepackage{siunitx} \begin{document} The speed is $v = 3$ \si[per-mode=symbol]{\meter\per\second}. \end{document} using make4ht test.tex &...
Rushi's user avatar
  • 773
0 votes
0 answers
194 views

Convert Code LAtex to image

How can I convert Latex code to an image when I post it on the website? Demo: https://giainhanh.vn/question/4L81Kj4
Nguyễn Thành Trương's user avatar
1 vote
1 answer
345 views

Compact way to write inference rule with bussproofs

I have the following inference rule That I need to write with the package bussproofs and use it in the mathjax. Mathjax support the bussproofs I have no idea how to reproduce the following inference ...
vincenzopalazzo's user avatar
0 votes
0 answers
29 views

Align equation left after curly bracket [duplicate]

I'm looking for a way to align on the left side my math formula and on the right side the \textrm part. \begin{equation} w_{t} = \Bigg\{ \begin{aligned} \log(y_{t}) \textrm{ if } \lambda = 0; \\ (y_{t}...
RomainM's user avatar
3 votes
1 answer
94 views

TeX4ht: can we prevent italic capital greek letters in mathml or mathml,mathjax output

I am trying to convert document to HTML with MathML rendered by MathJax (the reason is that pure mathjax output does not do proper equation numbering). Unfortunately, I get all the capital greek ...
Fedxa's user avatar
  • 315
1 vote
0 answers
354 views

MathJax: Can't render \begin{cases}...\end{cases} using Jekyll [closed]

We use MathJax on our course website, which is implemented in Jekyll and hosted on GitHub pages. For small, straightforward equations, MathJax works great but I've never been able to get even slightly ...
andicolortoo's user avatar
2 votes
3 answers
760 views

Which syntax to use to render calligraphic symbols like 𝓔 and 𝓑?

I looked at the list of \mathcal in this reference but I'm not sure which syntax to use to render 𝓔 & 𝓑. I tried also things like \epsilon, \varepsilon but these do not render the same. The ...
Electra's user avatar
  • 123
1 vote
1 answer
126 views

How to configure tex4ht to accept macros in TeX path?

I am using the configuration suggested in this answer to import a file Macros.tex containing a bunch of \newcommand macros to be processed using MathJax. It works as long as the main LaTeX file and ...
Rushi's user avatar
  • 773
3 votes
1 answer
105 views

Why does make4ht mathjax convert AMS gather environment to html code?

With the mathjax option, make4ht fails to render the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} E=mc^2\\ e^{i\pi}+1=0 \end{gather} These ...
Rushi's user avatar
  • 773
1 vote
1 answer
164 views

tex4ht does not scale math font along with text when using mathjax

In this MWE \documentclass{article} \usepackage{amsmath} \begin{document} \tiny All of this font should be tiny include the math \begin{align*} \sin x &= 1 \end{align*} \normalsize All of ...
Nasser's user avatar
  • 20.7k
2 votes
0 answers
75 views

Parsing to package-independent Tex

Is the ability to create package-independent TeX readily available? I would like, for example, to have a system with access to a package (e.g. mhchem) create TeX that could then render on a system ...
bobthechemist's user avatar
1 vote
1 answer
200 views

Where is make4ht "mathjax" argument documented?

I am able to convert a LaTeX file foo.tex to foo.html using make4ht like this, make4ht foo mathjax Where is this argument mathjax documented? I searched the documentation at http://mirrors.ctan.org/...
Lone Learner's user avatar
  • 3,196
1 vote
1 answer
208 views

Removing borders from a table in an array environment

I have the following table: \begin{array} {|r|r|}\hline 1 & 2 & 3 \\ \hline 2 & a & b \\ \hline 3 & c & d \\ \hline \end{array} which gives me: However, I want something ...
Monika's user avatar
  • 146
4 votes
4 answers
484 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 ...
ABu's user avatar
  • 1,625
2 votes
2 answers
2k views

Symbols for meet and join (bigger \wedge and \vee)

I'd like to know how to get the \wedge and \vee shaped things in the image below to be that size. I found \bigwedge and \bigvee, but they're too big. You can see the source pdf for youself here if ...
Mason's user avatar
  • 123
1 vote
1 answer
168 views

Handling subequations with make4ht

When compiling with make4ht and using svg parameter, the equation, drawn from subequation using align environment, is not converted into SVG. If I change to mathjax, the HTML displays the warning: ...
LEo's user avatar
  • 772
0 votes
2 answers
166 views

How do I get the length (number of digits) of a number [closed]

In answer to another question, I reported that the square of a string of all ones would yield a number with digits that ascend to the number of original ones and then descend to one again. For ...
poetasis's user avatar
  • 199
0 votes
1 answer
262 views

Double subscript using MathJax

I am trying to stack subscripts in the following way: However, I'm trying to do it in another stackexchange website (physics.stackexchange), which uses MathJax (not LaTeX). How do I do this?
The Pointer's user avatar
0 votes
2 answers
378 views

Asymptote with MathJax (specifically Diagrams in MathStack)

I want to add asymptote diagrams for my blog, which uses MathJaX. But I can't do it. Any advice on what to do. Here's an example: import graph; size(15.78cm); real labelscalefactor = 0.5; /* ...
Sunaina Pati's user avatar
0 votes
0 answers
182 views

Table outline and horizontal line do not match

Strangely, it works well on other sites, but on my site, the outline is broken. There seems to be no problem with the code, what is the problem? \begin{array}{|l|l|} \hline & A \\ \hline ...
cy j's user avatar
  • 1

1
2 3 4 5