Register to reply

Latex Alignment Problem

by norak
Tags: alignment, latex
Share this thread:
norak
#1
Jul22-07, 09:44 AM
P: 2
Hi guys, I want to write up some math and have the following code:

\begin{align}
L_{A}(s)&=V(A,0)-V(A,s) \\
&=\int_{t=A}^{T(A)+A-\alpha S_{A}}e^{-r(t-A)}W_{t}dt - \int_{t=A}^{T(A)+A-\alpha (S_{A}+s)}e^{-r(t-A)}W_{t}dt \\
&=\int^{T(A)+A-\alpha S_{A}}_{T(A)+A-\alpha(S_{A}+s)}e^{-r(t-A)W_{t}dt}
\end{align}

Now using Physics Forum's inbuilt Latex thingy the following appears:

[tex]
\begin{align*}
L_{A}(s)&=V(A,0)-V(A,s) \\
&=\int_{t=A}^{T(A)+A-\alpha S_{A}}e^{-r(t-A)}W_{t}dt - \int_{t=A}^{T(A)+A-\alpha (S_{A}+s)}e^{-r(t-A)}W_{t}dt \\
&=\int^{T(A)+A-\alpha S_{A}}_{T(A)+A-\alpha(S_{A}+s)}e^{-r(t-A)W_{t}dt}
\end{align*}
[/tex]

However, when I try to compile this using my own Latex compiler, I get the following error message:



It says that the "align" doesn't work! Are there any computer experts who know what I am doing wrong??
Phys.Org News Partner Science news on Phys.org
Scientists discover RNA modifications in some unexpected places
Scientists discover tropical tree microbiome in Panama
'Squid skin' metamaterials project yields vivid color display
las3rjock
#2
Jul22-07, 11:48 AM
P: 235
The "align" environment is provided by the AMS-LaTeX package and can be activated by including the line
\usepackage{amsmath}
somewhere in the preamble of your document. I believe the LaTeX functionality of Physics Forums enables AMS-LaTeX by default, which is why the "align" environment is working correctly on Physics Forums but is not working in your document.


Register to reply

Related Discussions
LaTeX problem Math & Science Software 8
LaTeX problem General Math 6
Another LaTeX problem Math & Science Software 2
Problem with LaTeX Forum Feedback & Announcements 6
LaTex problem Forum Feedback & Announcements 1