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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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