Serving the Quantitative Finance Community

 
User avatar
tw
Topic Author
Posts: 592
Joined: May 10th, 2002, 3:30 pm

latex formulas

September 22nd, 2016, 3:38 pm

How does one go about writing formulas with latex that will be parsed into maths on the forum?

Thanks
 
 
User avatar
outrun
Posts: 4573
Joined: January 1st, 1970, 12:00 am

Re: latex formulas

September 22nd, 2016, 3:48 pm

like this for latex environments

\[
\begin{align}
0 + x^2 &= 1 \\
1 &= x^2 + 0
\end{align}
\]
\[
\begin{align}
0 + x^2 &= 1 \\
1 &= x^2 + 0
\end{align}
\]
 
User avatar
outrun
Posts: 4573
Joined: January 1st, 1970, 12:00 am

Re: latex formulas

September 22nd, 2016, 3:59 pm

For inline math like \(x^2\) use ..
For inline math like \(x^2\) use ..
 
User avatar
outrun
Posts: 4573
Joined: January 1st, 1970, 12:00 am

Re: latex formulas

September 22nd, 2016, 4:02 pm

Wrapping in double dollars $$x^2$$ is also an option (display math)
Wrapping in double dollars $$x^2$$ is also an option (display math)
 
User avatar
tw
Topic Author
Posts: 592
Joined: May 10th, 2002, 3:30 pm

Re: latex formulas

September 22nd, 2016, 4:11 pm

For inline math like \(x^2\) use ..
For inline math like \(x^2\) use ..
Gracias!!!

a few tests...   \((-b \pm \sqrt{b^2-4ac})/(2a)\)

\[
\frac{\hbar}{2\pi i}\frac{ \partial \psi}{\partial t}
\]
 
User avatar
ppauper
Posts: 11729
Joined: November 15th, 2001, 1:29 pm

Re: latex formulas

September 22nd, 2016, 6:25 pm

or single dollar sign inside square brackets on either side of the math
[$]e^x[$]

(hit `control shift s' to see the source)(
 
User avatar
katastrofa
Posts: 7930
Joined: August 16th, 2007, 5:36 am
Location: Event Horizon

Re: latex formulas

January 16th, 2024, 2:03 pm

I think it stopped working. I see the Latex formatting blinking shortly and disappearing.
 
User avatar
tags
Posts: 3602
Joined: February 21st, 2010, 12:58 pm

Re: latex formulas

January 19th, 2024, 6:51 pm

I think it stopped working. I see the Latex formatting blinking shortly and disappearing.

it seems to be working here using $$ before and after mathematical expression. No display issues it seems.
 
User avatar
katastrofa
Posts: 7930
Joined: August 16th, 2007, 5:36 am
Location: Event Horizon

Re: latex formulas

January 19th, 2024, 9:00 pm

Thanks tag! Let me check $$\int x^2 dx$$
Hmm, it didn’t work for me when I reported the problem.
 
User avatar
Cuchulainn
Posts: 22927
Joined: July 16th, 2004, 7:38 am

Re: latex formulas

November 5th, 2024, 12:09 pm

Image
 
User avatar
tags
Posts: 3602
Joined: February 21st, 2010, 12:58 pm

Re: latex formulas

November 6th, 2024, 10:44 pm

Image

lol jaja