3
$\begingroup$

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?

$\endgroup$
6
  • 3
    $\begingroup$ Why do you keep writing MathJAx? It should be MathJax. The syntax is that of $\rm\LaTeX$ anyway. $\endgroup$
    – Asaf Karagila Mod
    Dec 20, 2019 at 20:25
  • 1
    $\begingroup$ Your syntax is correct (not in error), but you might prefer \tiny to \small for your purpose. $\endgroup$
    – hardmath
    Dec 20, 2019 at 21:18
  • 4
    $\begingroup$ 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. $\endgroup$
    – hardmath
    Dec 20, 2019 at 21:28
  • $\begingroup$ @hardmath If you want to send it as an answer, I will accept it. Thank you very much.. $\endgroup$
    – user548054
    Dec 20, 2019 at 21:34
  • 1
    $\begingroup$ I'll see if there is a workaround and post that. $\endgroup$
    – hardmath
    Dec 20, 2019 at 21:35
  • $\begingroup$ @hardmath thank you very much $\endgroup$
    – user548054
    Dec 20, 2019 at 22:04

2 Answers 2

2
$\begingroup$

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:

image produced by Roger Cortesi site

$\endgroup$
9
  • 1
    $\begingroup$ 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 $\endgroup$
    – user548054
    Dec 21, 2019 at 0:11
  • $\begingroup$ But it can be possible completely different syntax instead of \small, \tiny, \large? $\endgroup$
    – user548054
    Dec 21, 2019 at 0:24
  • $\begingroup$ 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. $\endgroup$
    – hardmath
    Dec 21, 2019 at 0:27
  • $\begingroup$ Thank you very much. No need. :) $\endgroup$
    – user548054
    Dec 21, 2019 at 0:53
  • 2
    $\begingroup$ I hope no one is planning to post anything like that on main! $\endgroup$ Dec 21, 2019 at 1:35
  • $\begingroup$ @GerryMyerson ...This is just a symbolic "equation" $\endgroup$
    – user548054
    Dec 21, 2019 at 1:59
  • 2
    $\begingroup$ Let me rephrase: I hope no one is planning to post anything in red in letters ten times normal size on main. $\endgroup$ Dec 21, 2019 at 2:13
  • $\begingroup$ @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. $\endgroup$
    – user645636
    Dec 21, 2019 at 2:45
  • 1
    $\begingroup$ @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). $\endgroup$
    – hardmath
    Dec 21, 2019 at 15:59
1
$\begingroup$

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 $$

$\endgroup$

You must log in to answer this question.