Math & Sciencejustify left only one subequation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
michaelart
Posts: 2
Joined: Wed Feb 02, 2011 8:10 pm

justify left only one subequation

Post by michaelart »

Hello

I would like to justify left only one subequation in an environment leaving the rest centered. Is there a way to do this?
Specifically my code is

Code: Select all

\begin{subequations}\label{eq:asymcoef}\begin{align}
\alpha_{j}=\left(\sum _{k=1}^{6}a_{kj}\right) \\
\text{and}\nonumber \\
\beta_{j}=\left(\sum _{k=1}^{6}b_{kj}\right)
\end{align}\end{subequations} 
I would like that "and" to appear to the left and still have the same number (1a) and (1b) in the two equations of alpha and beta
Last edited by michaelart on Thu Feb 03, 2011 10:31 am, edited 1 time in total.

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

justify left only one subequation

Post by localghost »

The amsmath user guide suggests the \intertext command for this case …

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}

\begin{document}
  \begin{subequations}\label{eq:asymcoef}
    \begin{align}
      \alpha_{j}=\left(\sum _{k=1}^{6}a_{kj}\right) \\
      \intertext{and}
      \beta_{j}=\left(\sum _{k=1}^{6}b_{kj}\right)
    \end{align}
  \end{subequations}
\end{document}
… and the mathtools package enhances this with the \shortintertext command.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage{mathtools}   % loads »amsmath«

\begin{document}
  \begin{subequations}\label{eq:asymcoef}
    \begin{align}
      \alpha_{j}=\left(\sum _{k=1}^{6}a_{kj}\right) \\
      \shortintertext{and}
      \beta_{j}=\left(\sum _{k=1}^{6}b_{kj}\right)
    \end{align}
  \end{subequations}
\end{document}

Best regards and welcome to the board
Thorsten
michaelart
Posts: 2
Joined: Wed Feb 02, 2011 8:10 pm

Re: justify left only one subequation

Post by michaelart »

It works perfectly, thanks a lot Th
Post Reply