## Introducing LaTeX Math Typesetting

scientific notebook lets you create things that look like math but when you save it, it's in tex (or latex?). i'm looking for other equation editors myself cuz there is one thing i don't like about scientific notebook.

how does one go about adding tex capabilities to their message board?
 Lets have a go.... $$2\pi\sqrt{l/g}$$ $$\gamma \equiv \frac{1}{\sqrt{1 - v^2/c^2}}$$ edit: After three attempts I got it to work!! [:)]
 Recognitions: Gold Member Science Advisor Staff Emeritus Displaying vectors can be tricky. The default \vec LaTeX command produces a little arrow over the top of vectors, e.g. $$\lambda_j = \vec{\lambda} \cdot \vec{e}_j$$ If you'd prefer to make your vectors boldface, just redefine the \vec command. See the source for this image to see how the command is redefined. $$\renewcommand{\vec}[1]{\mbox{\boldmath  #1 }} \lambda_j = \vec{\lambda} \cdot \vec{e}_j$$ - Warren
 does this always generate display mode, or can we make it do inline mode as well?

Recognitions:
Gold Member
Staff Emeritus
 Originally posted by lethe does this always generate display mode, or can we make it do inline mode as well?
You mean, can you typeset your entire post in TeX and use  to set off the math?

- Warren

 Originally posted by chroot You mean, can you typeset your entire post in TeX and use  to set off the math? - Warren
no, LaTeX has two modes, one for displaying equations inline (with $...$), where stuff is smaller, and another for display mode equations ($....$). the same equation will display differently depending on which you use. can we have access to both methods?

Recognitions:
Gold Member
Staff Emeritus
 Originally posted by lethe no, LaTeX has two modes, one for displaying equations inline (with $...$), where stuff is smaller, and another for display mode equations ($....$). the same equation will display differently depending on which you use. can we have access to both methods?
In what way are equations displayed differently in these two modes? AFAIK, math is displayed the same way in between $$as in the displaymath environment. - Warren  Display math: $$\sum_i x^i$$ (inline) math, $$\mbox{\sum_i x^i}$$, hacked  Originally posted by chroot In what way are equations displayed differently in these two modes? AFAIK, math is displayed the same way in between$$ as in the displaymath environment.
The 'displaymath' environment is the same as $$...$$, to show equations on a line by themselves, but $...$ is the 'math' environment, which is intended for equations inlined with other text.
 Recognitions: Gold Member Science Advisor Staff Emeritus Ambi, Cool, I tried a few things and couldn't find anything that displayed differently! Using \mbox is a fine way to do it. - Warren
 Recognitions: Gold Member Science Advisor Staff Emeritus If it becomes a serious wishlist item for a lot of people, I can consider adding some attributes like mode=displaymath or mode=inline to the [ tex ] tag. Otherwise, \mbox is the easiest way to accomplish it. - Warren

 Originally posted by chroot Ambi, Cool, I tried a few things and couldn't find anything that displayed differently!
yeah, neither could i, because apparently the software doesn t recognize the inline mode commands...

 Using \mbox is a fine way to do it.
OK, good enough

Recognitions:
Gold Member
Staff Emeritus
 Originally posted by lethe yeah, neither could i, because apparently the software doesn t recognize the inline mode commands...
No, I tried \mbox too -- but I tried y = mx + b, which looks the same in both environments, lol:

$$y = m x + b$$

$$\mbox{  y = m x + b  }$$

- Warren

 Originally posted by chroot Otherwise, \mbox is the easiest way to accomplish it. - Warren
do we have the amsmath package? mbox is a little limited, (like it doesn t go into subscripts very well), and \text is better.

 Originally posted by chroot No, I tried \mbox too -- but I tried y = mx + b, which looks the same in both environments, lol:
yeah, i think the only place where this makes a difference is for larger things like fractions, summations and integrations.

 Originally posted by chroot If it becomes a serious wishlist item for a lot of people, I can consider adding some attributes like mode=displaymath or mode=inline to the [ tex ] tag. Otherwise, \mbox is the easiest way to accomplish it.
It seems to me that typing "\mbox{}" is still easier than typing "mode=inline" ...
 Yes, we have amsmath; I only recently started using it, so I keep forgetting about it... However, if you're proposing \text as a replacement for \mbox in this instance ... $$\mbox{\sum_i x^i}$$ $$\text{\sum_i x^i}$$