Jump to content


Photo
- - - - -

How to: use LaTeX for equations


  • Please log in to reply
20 replies to this topic

#18 Essay

Essay

    Explaining

  • Members
  • PipPipPipPipPipPip
  • 811 posts

Posted 22 April 2008 - 11:55 PM

So posting an equation within a quote or other tag just doesn't work (like this)?

[math] sum_q frac{partial}{partial x_q}vec{psi} = 0[/math]


...but putting it out in the open is the only way to have the tags work?

[math] \sum_q \frac{\partial}{\partial x_q}\vec{\psi} = 0[/math]


Is that correct, or is there a way to have equations display within quotes?

p.p.s.
Thanks for the answer; I never would'a guessed that....
:)

#19 modest

modest

    Creating

  • Members
  • PipPipPipPipPipPipPip
  • 4959 posts

Posted 23 April 2008 - 01:46 AM

...but putting it out in the open is the only way to have the tags work?

[math]\sum_q \frac{\partial}{\partial x_q}\vec{\psi} = 0[/math]


Is that correct, or is there a way to have equations display within quotes?


The backslashes get stripped when quoted. Instead of using one backslash, use two - one will be stripped, the other will remain. So, it will look like this:
\sum_q \frac{\partial}{\partial x_q}\vec{\psi} = 0 normally and

\\sum_q \\frac{\\partial}{\\partial x_q}\\vec{\\psi} = 0 in quotes. Also, if you preview your post you'll have to re-double-up the backslashes before submitting.

-modest
  • Essay likes this

#20 modest

modest

    Creating

  • Members
  • PipPipPipPipPipPipPip
  • 4959 posts

Posted 23 April 2008 - 01:53 AM

Though there are many excellent LaTeX references, I usually refer to Help:Displaying a formula - Meta . I don’t think it’s complete, but it’s yet to fail to answer any of my questions.


I would also like to say thank you CraigD for this link. It looks much better than the set of sources I was using. Very helpful.

-modest

#21 alexander

alexander

    Dedicated Smart-ass

  • Members
  • PipPipPipPipPipPipPip
  • 5722 posts

Posted 23 April 2008 - 07:24 AM

I rather like the wikimedia reference guide myself too.... but, i would agree with craig, it's not 100% complete, but for a math reference, it's waaay up there :shrug: