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?
However, using \underset{}{}
or \stackrel{}{}
decreases the size of one symbol with respect to the other. underset{}{}
makes the bottom symbol smaller, and \stackrel{}{}
makes the top smaller (Go to the bottom of the page here to test it out)
My Question: Is there any LaTeX or MathJax command that stacks two things symbols but does not change the size of either one?
My Use: I want to use it to make a simple organic chemistry molecule (2-methyl 2-chloro propane). The closest I have come to rendering it approximately the same size is
\ce{CH3\bond{1}}
{\stackrel{
\;\;\;\large\ce{CH3}
}{\stackrel{|}{\underset{\underset{\huge\ce{Cl}}{|}}{\ce{C}}}}}\ce{-CH3}
(Go to the bottom of the page here to test it out)
It is extremely messy, but still not the same size. Please don't ask me to use chemfig
, there are a few reasons I don't want to use it.
Best Answer
There are several packages in LaTeX that will produce chemical diagrams. See this post and its answers for an overview.
As an example, using
chemfig
(even though you want to avoid it) the diagram can be produced using the following code:The
chemfig
user manual explains this and many other constructions.But it seems that you are really asking about how to typeset this in MathJax. MathJax is usually considered off topic at TeX.SX. However, the MathJax extension
mhchem
is also a package in LaTeX, so here is a possible solution usingmhchem
. It is my understanding thatmhchem
is designed for chemical equations, not structure diagrams, so you may need to use an array to get this to work:This produces (in LaTeX)
or in Chrome with MathJax: