I'm basically needing some help in coding thisthis so that there is only one equation number. So far, I have produced this:

 c_1(0) &= c_i, & c_1(L) &= c_e, \\
    c_2(0) &= c_i,      &    c_2(L) &= c_e, \\
    u(0) &= V,             &     u(L) &= 0.

Any help would be greatly appreciated!

  • 1
    Add \notag to the first and third line in your align environment. It will remove the tag of those two line. – Alain Remillard Feb 19 at 17:50
  • @AlainRemillard Thank-you! – Sas Feb 19 at 17:52
  • 9
    Instead of align, use equation with aligned as a sub-environment. (For displays with an even number of lines, this will center the equation number vertically.) – barbara beeton Feb 19 at 17:57

As already suggested by @barbarabeeton, you could use an aligned environment inside an equation environment. An additional suggestion: To obtain a bit more horizontal separation between the two groups of three equations, insert \qquad\qquad right before the middle & alignment marker in the first row.

enter image description here

\usepackage{amsmath} % for 'aligned' environment
\counterwithin{equation}{section} % optional
\usepackage{newtxtext,newtxmath}  % optional -- Times Roman text and math font

\setcounter{section}{3} % just for this query
 c_1(0) &= c_i, \qquad\qquad&  c_1(L) &= c_e, \\
 c_2(0) &= c_i,             &  c_2(L) &= c_e, \\
\phi(0) &= V,               & \phi(L) &= 0.
  • @AboAmmar - Many thanks for the edit! – Mico Feb 19 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.