Netheme
Netheme

Reputation: 232

mathjax / mchem aligning

i would like to ask how to align the text in to the one line? When I use

 $$\ce{H+}$$

it makes this: on new line, centered

I would like to have the H+ in the same line. Does anyone have experiences with it?

Upvotes: 0

Views: 67

Answers (2)

Netheme
Netheme

Reputation: 232

Solved. I have in script:

<script n:syntax="off" type="text/x-mathjax-config">
    MathJax.Hub.Config({
        extensions: ["[Contrib]/mhchem/mhchem.js"],
        tex2jax: {inlineMath: [["`","`"]]},
        showMathMenu: false,
        displayAlign: "left",

    });
</script>

So I should use `` :) My bad, I'm sorry.

Upvotes: 0

Davide Cervone
Davide Cervone

Reputation: 12260

Use single dollar signs, not double dollar signs. I.e., $\ce{H+}$.

Upvotes: 1

Related Questions