Math & Scienceequations alignment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
teddy0625
Posts: 9
Joined: Sat Mar 28, 2009 10:34 am

equations alignment

Post by teddy0625 »

Code: Select all

Suppose we have a time-dependent or time-independent velocity vector field in $\mathbb{R}^{2}$
\begin{align}
\mathbf{u}=(u(x,y,t),v(x,y,t))
\end{align}
then general form of Euler equation can be defined as 
\begin{align*}
\rho\bigg(\frac{\partial}{\partial t}+\mathbf{u} \cdot \nabla\bigg)\mathbf{u}+\nabla p=0, \\
\nabla\cdot\mathbf{u}=0.
\end{align*}
Hi
I basically align all my equations in the middle as in standard textbooks. I actually have done this in some parts of my work by putting 2 backslashes at each end as below but it does seem to work all the time
\begin{align}
\\ \mathbf{u}=(u(x,y,t),v(x,y,t)) \\
\end{align}

help please

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

equations alignment

Post by localghost »

With htis code I can't see any issues. You actually don't describe the problem itself. Please clarify what you want and what you get. Prepare a minimal working example (MWE) to show a possible misbehaviour.


Best regards
Thorsten¹
Post Reply