Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing subscript in Mathjax?

Tags:

mathjax

I want to type this .enter image description here

I have tried like this

$$\lambda=\frac{0.693}{t_\frac{1}{2}}$$

Also,

$$\lambda=\frac{0.693}{{t}_\frac{1}{2}}$$

Also,

$$\lambda=\frac{0.693}{t_{\frac{1}{2}}}$$

But it don't work it display something like this enter image description here

This code

enter image description here

also gives something that we don't want

enter image description here

Mathjax Configuration

<div class="layout"><script type="text/x-mathjax-config">
MathJax.Hub.Config({
  TeX: {extensions: ["AMSmath.js","AMSsymbols.js","mhchem.js","noErrors.js","noUndefined.js"]},
  tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
      processEscapes: true
    },
});
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>

Browser= Google Chrome OS= Windows 8.1

like image 335
user80946 Avatar asked Jul 15 '15 11:07

user80946


People also ask

How do you do a subscript in MathJax?

For superscripts and subscripts, use ^ and _ . For example, x_i^2 : x2i, \log_2 x : log2x.

How do you write fractions in MathJax?

To write a fraction, you use the code \frac{expression in the numerator}{expression in the denominator} . Formulas that appear in text are called inline.

How do you write equations in MathJax?

Inline MathJaxTo start a formula you use either a dollar sign $ or you can use a slash an an open parentheses "/(". To end the inline math, you have another dollar sign or a back slash and a closing parentheses. Enclosing in double dollar signs put the math on its own line.

How do you start a new line in MathJax?

The \\ command tells LaTeX to start a new line.


1 Answers

Use _{}

_{YOUR EXPRESSION}

Example:

$$Y_n = Y_{n-1}+{{(d/n)}sin(θ\pm n*Δ)}.$$  

Result:

enter image description here

like image 11
Hitesh Sahu Avatar answered Oct 21 '22 12:10

Hitesh Sahu