# Is there any problem in my MathJax syntax?

Is there any MathJax error in my MathJax syntax?

Example: \color{red} {\Large \displaystyle \mathcal {D}^{{\normalsize \left(\mathrm{III} \right)}}_n {\small \left( \dfrac{M}{N}\right)} :=Mn+N }

$$\color{red} {\Large \displaystyle \mathcal {D}^{{\normalsize \left(\mathrm{III} \right)}}_n {\small \left( \dfrac{M}{N}\right)} :=Mn+N }$$

I'm having difficulty converting a formula to a picture. I just want to know. Is there any problem in my MathJax code?

My goal is to actually write $$\frac MN$$ to a smaller size.

Is my syntax correct?

• Why do you keep writing MathJAx? It should be MathJax. The syntax is that of $\rm\LaTeX$ anyway.
– Asaf Karagila Mod
Dec 20, 2019 at 20:25
• Your syntax is correct (not in error), but you might prefer \tiny to \small for your purpose. Dec 20, 2019 at 21:18
• I guess your problem lies in that third party website (to convert $\LaTeX$ to an image). It doesn't seem to understand the font size qualifiers as MathJax does. Dec 20, 2019 at 21:28
• @hardmath If you want to send it as an answer, I will accept it. Thank you very much..
– user548054
Dec 20, 2019 at 21:34
• I'll see if there is a workaround and post that. Dec 20, 2019 at 21:35
• @hardmath thank you very much
– user548054
Dec 20, 2019 at 22:04

Here is an alternative site that converts $$\LaTeX$$ equations to images. It documents the available commands much better than Roger's does (some of his links are 404).

In any case the command \frac can be replaced by \tfrac, producing a better vertical spacing that I think will satisfy you: • Thank you for answer. Your answer is helpful for me because symbol t is works better. Actually my current equation is meaningles..This is just symbolic equation. real equation is too long. Therefore codecogs.com/latex/eqneditor.php does not support long equation..But Roger converts any long and complicated equation. In short your answer actually worked. I replaced \tfrac
– user548054
Dec 21, 2019 at 0:11
• But it can be possible completely different syntax instead of \small, \tiny, \large?
– user548054
Dec 21, 2019 at 0:24
• Apparently the site you used does not support those font size qualifiers. I say apparently because the documentation links there are somewhat broken. You could contact the site owner to ask about adding that support, but for a free service it might be asking too much. Dec 21, 2019 at 0:27
• Thank you very much. No need. :)
– user548054
Dec 21, 2019 at 0:53
• I hope no one is planning to post anything like that on main! Dec 21, 2019 at 1:35
• @GerryMyerson ...This is just a symbolic "equation"
– user548054
Dec 21, 2019 at 1:59
• Let me rephrase: I hope no one is planning to post anything in red in letters ten times normal size on main. Dec 21, 2019 at 2:13
• @hardmath, if it wasn't for the left and right on that fraction using _ on the numerator repeatedly, and ^ on the denominator you can make it go down in size. The parentheses don't follow suit though.
– user645636
Dec 21, 2019 at 2:45
• @GerryMyerson: Sorry about the color scheme! But I did use the click-thru trick to reduce the size of the generated image as displayed (click on it as a link to see the full size image). Dec 21, 2019 at 15:59

If you just want to make the fraction smaller, you can write:

\tfrac M N

$$\tfrac M N \quad \text{versus} \quad \frac M N$$