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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
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¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply