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
-1 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
13 views

How to display latex math in html output of texinfo document

https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Inserting-Math.html The above link provides an explanation to how to display math in the html output of a texinfo document. It says: ...
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
1 vote
1 answer
47 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 ...
user avatar
2 votes
2 answers
141 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}} &...
user avatar
  • 23
1 vote
1 answer
59 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?
user avatar
0 votes
0 answers
192 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]}}{\...
user avatar
  • 101
0 votes
2 answers
63 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) ^...
user avatar
  • 243
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
0 votes
1 answer
92 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'...
user avatar
0 votes
2 answers
153 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 ...
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
2 votes
1 answer
64 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.
user avatar
  • 179
1 vote
0 answers
48 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 ...
user avatar
  • 525
0 votes
0 answers
44 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 ...
user avatar
2 votes
1 answer
105 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 &...
user avatar
  • 753
0 votes
0 answers
69 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
user avatar
1 vote
1 answer
145 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 ...
user avatar
0 votes
0 answers
28 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}...
user avatar
3 votes
1 answer
56 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 ...
user avatar
  • 195
1 vote
0 answers
78 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 ...
user avatar
2 votes
3 answers
496 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 ...
user avatar
  • 23
1 vote
1 answer
77 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 ...
user avatar
  • 753
3 votes
1 answer
63 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 ...
user avatar
  • 753
1 vote
1 answer
98 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 ...
user avatar
  • 18.3k
2 votes
0 answers
48 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 ...
user avatar
1 vote
1 answer
86 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/...
user avatar
  • 2,917
1 vote
1 answer
64 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 ...
user avatar
  • 147
4 votes
4 answers
312 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
2 votes
2 answers
798 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 ...
user avatar
  • 123
1 vote
1 answer
108 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: ...
user avatar
  • 666
0 votes
2 answers
111 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 ...
user avatar
  • 167
0 votes
1 answer
122 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?
user avatar
0 votes
2 answers
231 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; /* ...
user avatar
0 votes
0 answers
71 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 ...
user avatar
  • 1
1 vote
1 answer
31 views

a problem configuring tex4ht after OCT TL update

I found another problem using tex4ht in mathjax mode after updating TL 2020 two night ago. Something that was working, now does not work. I had solution that allowed me to use a \newcommand correctly ...
user avatar
  • 18.3k
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
1 vote
0 answers
104 views

Is it possible to use \cancel without imports? [closed]

I was writing a response to someone for a math class of mine in Piazza (a sort of chat forum for classes) when I tried to use $$\usepackage{cancel}\cancel{x}$$ when I realized that $$\usepackage$$ ...
user avatar
  • 203
1 vote
1 answer
73 views

How to make tex4ht ignore some commands automatically?

I need to use some latex command, which only makes sense when compiling to PDF. The typical way to process the same latex file by both lualatex (or pdflatex) and tex4ht, is to use \ifdefined\HCode to ...
user avatar
  • 18.3k
0 votes
0 answers
58 views

What formula markup is this?

Here's a web page from 2013 using some variant of TeX-style formula markup. Modern Chrome and Firefox no longer render the formula syntax on this page. Excerpt: $$P(text{CTR}_A,text{CTR}_B|text{data})$...
user avatar
1 vote
0 answers
281 views

Trying to use mathjax in svg

I'm trying to make a svg gràfic in my web page. I want to write in it a LaTeX formula using mathjax but it doesn't work. Here is my code, althought I think it is not the problem. Can anyone help me? ...
user avatar
1 vote
1 answer
139 views

How to define a MathJax specific macros (Rule and Space)

MathJax has a specific macros \Rule #1 #2 #3 (command is used to create a rule with a specified width (#1), height(#2), and depth(#3)) and \Space #1 #2 #3(command is used to create a space with a ...
user avatar
1 vote
1 answer
94 views

tex4ht does not handle \ifdefined\HCode in mathjax mode

This is issue with tex4ht only. This is the first time I found where tex4ht does not process \ifdefined\HCode. I put \ifdefined\HCode inside an equation, since I need different code for HTML vs. pdf ...
user avatar
  • 18.3k
3 votes
0 answers
1k views

Why can't we have a truely WYSIWYG latex IDE? [closed]

There is Lyx where you can see what you get, but it's not latex. Hence not as compatible as it could be. There's Markdown which can be converted into latex. The good part about Markdown is, that you ...
user avatar
1 vote
0 answers
122 views

Latex equation in github page [closed]

I want to write down in Github page. I have found this article and followed Quick and Simple Inline solution. However, my question is not similar to the linked question because there is no link for ...
user avatar
  • 518
1 vote
1 answer
193 views

textit use with tex4ht in mathjax mode

I am trying to compile Latex code generated by Maple. The Latex generated contains things like \textit{\_C1} which works OK in pdf, but when compiled to HTML using tex4ht, in mathjax mode, it does not ...
user avatar
  • 18.3k
0 votes
2 answers
116 views

The font for constructible universe L

How do I type L, HOD and V as in the snippet below :
user avatar
  • 1,858
1 vote
0 answers
96 views

How to prevent others from copying my mathJAX code in browsers? [closed]

In web browsers, people can right-click/hold on a math equation (s) and "view TEX commands". From there they can copy entire math code. This is very problematic if your website/blog is math ...
user avatar
2 votes
0 answers
273 views

Gentzen-style proof tree

I would like to produce the following proof tree. This is my current attempt: \def\ae\qquad\mathbf{\forall Elim} \def\ai\qquad\mathbf{\forall Intro} \def\be\qquad\mathbf{\leftrightarrow Elim} \def\bi\...
user avatar
  • 155
0 votes
1 answer
210 views

Aligning linear system in optimization problem

There are a lot of similar problems I found on stackexchange, but none quite worked for my problem. Given an objective function and a set of (in-)equalities, I want to neatly align the variables in ...
user avatar

1
2 3 4 5