Math & Sciencealign multiple multi-lined equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
pkladisios
Posts: 7
Joined: Sat Dec 26, 2015 8:49 pm

align multiple multi-lined equations

Post by pkladisios »

I have four consecutive equations and wish their equal signs and their numbering to be aligned. So far, i have only achieved the second by individually using equation and split environments. Here's the minimal code:

Code: Select all

Code, edit and compile here:
\documentclass[twocolumn]{article}
\usepackage{amsmath} %math
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%RT20
\begin{center}
\underline{\textbf{RT20}}
\end{center}
\begin{equation}
\begin{split}
C_{peff}&=444.4711352-170.5210626T\\
&+25.80658991T^{2}-1.912462169T^{3}\\
&+0.06910480624T^{4}-0.0009667426392T^{5}\\
&\text{for } 15^{o}C<T<19.5^{o}C
\end{split}
\end{equation}
\begin{equation}
\begin{split}
C_{peff}&=5529.086311-565.4394794T\\
&+14.50378915T^{2}\\
&\text{for } 19.5^{o}C<T<20.5^{o}C
\end{split}
\end{equation}
\begin{equation}
\begin{split}
C_{peff}&=3780.001949-342.8478233T\\
&+7.797040983T^{2}\\
&\text{for } 20.5^{o}C<T<22^{o}C
\end{split}
\end{equation}
\begin{equation}
\begin{split}
C_{peff}&=3735.906512-536.9879458T\\
&+28.98735267T^{2}-0.6959772441T^{3}\\
&+0.006270432248T^{4}\\
&\text{for } 22^{o}C<T<26^{o}C
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

align multiple multi-lined equations

Post by Johannes_B »

Every equation is independant from the others. What you are looking for is the align environment.

Code: Select all

Code, edit and compile here:
\documentclass[twocolumn]{article}
\usepackage{mathtools} %JB: Some improvements over amsmath
\usepackage{siunitx}
\begin{document}
\begin{center}
\underline{\textbf{RT20}}
\end{center}
\begin{align}
\begin{split}
C_{p\mathrm{eff}}&=444.4711352-170.5210626T\\
&+25.80658991T^{2}-1.912462169T^{3}\\
&+0.06910480624T^{4}-0.0009667426392T^{5}\\
&\text{for } \SI{15}{\celsius}<T<\SI{19.5}{\celsius}
\end{split}\\
\begin{split}
C_{p\mathrm{eff}}&=5529.086311-565.4394794T\\
&+14.50378915T^{2}\\
&\text{for } \SI{19.5}{\celsius}<T<\SI{20.5}{\celsius}
\end{split}\\
\begin{split}
C_{p\mathrm{eff}}&=3780.001949-342.8478233T\\
&+7.797040983T^{2}\\
&\text{for } \SI{20.5}{\celsius}<T<\SI{22}{\celsius}
\end{split}\\
\begin{split}
C_{p\mathrm{eff}}&=3735.906512-536.9879458T\\
&+28.98735267T^{2}-0.6959772441T^{3}\\
&+0.006270432248T^{4}\\
&\text{for } \SI{22}{\celsius}<T<\SI{26}{\celsius}
\end{split}
\end{align}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply