TransWikia.com

Better form of displaying system of equations in an enumerated list

TeX - LaTeX Asked on November 8, 2020

The question is in the title of the question itself. I have the following code. What I need is to align each equation by the equal sign and start the first equation of each system at the same level as the item. Any help is much appreciated.

documentclass[12pt]{exam}
usepackage[utf8]{inputenc}
usepackage{siunitx}
usepackage{tcolorbox}
usepackage{amsmath,amssymb,xcolor}
usepackage{multicol}
usepackage{graphicx}
usepackage{enumerate}

pagestyle{plain}

usepackage{geometry}
geometry{%
  letterpaper,
  lmargin=10 mm,
  rmargin=10 mm,
  tmargin=1 cm,
  bmargin=1 cm,
  footskip=9 pt,
  headheight=12 pt}  
usepackage{titlesec}
titlelabel{thetitle.quad}

linespread{1.2}

renewenvironment{solution}{{bf Solution:}}{hfill}
firstpagefooter
  {}
  {}
  {textbf{[Turn over}}
runningfooter
  {}
  {Page thepage of numpages}
  {ifoddvalue{page}
    ifnumvalue{page}<numpagestextbf{[Turn over}fi
  fi}


begin{document}

begin{enumerate}  


item Find all existing solutions to the following linear systems, using the Gaussian elimination method with backward substitution.
begin{multicols}{2}
begin{enumerate}[(a)]
item $4x-3y=10
8x-y=10$
item $-3x+5y=-223x+4y=44x-8y=32$
item $y+z=63x-y+z=-7x+y-3z=-13$
item $x+2y=0x+y=63x-2y=8$
end{enumerate}
end{multicols}

end{enumerate}

end{document}

One Answer

You can use flalign* from mathtools, or aligned in equations. From your code :

documentclass[12pt]{exam}
usepackage[utf8]{inputenc}
usepackage{siunitx}
usepackage{tcolorbox}
usepackage{amsmath,amssymb,xcolor}
usepackage{mathtools}
usepackage{multicol}
usepackage{graphicx}
usepackage{enumerate}

pagestyle{plain}

usepackage{geometry}
geometry{%
  letterpaper,
  lmargin=10 mm,
  rmargin=10 mm,
  tmargin=1 cm,
  bmargin=1 cm,
  footskip=9 pt,
  headheight=12 pt}  
usepackage{titlesec}
titlelabel{thetitle.quad}

linespread{1.2}

renewenvironment{solution}{{bf Solution:}}{hfill}
firstpagefooter
  {}
  {}
  {textbf{[Turn over}}
runningfooter
  {}
  {Page thepage of numpages}
  {ifoddvalue{page}
    ifnumvalue{page}<numpagestextbf{[Turn over}fi
  fi}


begin{document}

begin{enumerate}  


item Find all existing solutions to the following linear systems, using the Gaussian elimination method with backward substitution.
begin{multicols}{2}
begin{enumerate}[(a)]
item begin{flalign*}
        4x-3y & = 10&
        8x-y & = 10&
    end{flalign*}
item begin{equation*}
left{begin{aligned}
       -3x+5y &=-22&
       3x+4y &=4& 
       4x-8y&=32&
    end{aligned}right.
    end{equation*}
item $y+z=63x-y+z=-7x+y-3z=-13$
item $x+2y=0x+y=63x-2y=8$
end{enumerate}
end{multicols}
end{enumerate}
end{document}

Results

Answered by Ouss on November 8, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP