LaTeX forum ⇒ Math & ScienceSystem of Equations Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Mohsen Avaji
Posts: 10
Joined: Mon Aug 27, 2012 12:06 am

System of Equations

Postby Mohsen Avaji » Mon Jul 15, 2013 10:37 am

Hi
I am trying to write a few system of equations, and I want the terms to be similar as attached file "Part_of_a_book.png", but in my output number of items isn't similar to it.

Thanks in advance,
Mohsen Avaji.
  1. \documentclass{report}‎
  2. ‎\usepackage{mathtools}‎
  3. ‎\usepackage{systeme}‎
  4. ‎\usepackage{multicol}‎
  5. ‎‎\makeatletter
  6. \@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{}‎
  7. \@ifundefined{Umathchardef}{\let\Umathchardef\XeTeXmathchardef}{}‎
  8. ‎\makeatother
  9.  
  10. \begin{document}‎
  11. \begin{multicols}{2}‎
  12. \begin{enumerate}‎
  13. ‎\item
  14. $\sysdelim..\systeme{x+y+3z=5,2x-y+4z=11,-y+z=3.}$
  15. ‎\item
  16. $\sysdelim..\systeme{3x+2y+z=1,5x+3y+3z=2,x+y-z=1.}$
  17. ‎\item
  18. $\sysdelim..\systeme{3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3.}$
  19. ‎\item
  20. $\sysdelim..\systeme{3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3,x+y-z=0.}$
  21. ‎\item
  22. $\sysdelim..\systeme[xyzu]{3x-2y+5z+u=1,x+y-3z+2u=2,6x+y-4z+3u=7.}$
  23. ‎\item
  24. $\sysdelim..\systeme[xyzu]{x+y-3z+u=5,2x-y+z-2u=2,7x+y-7z+3u=3.}$
  25. ‎\item
  26. $\sysdelim..\systeme[xyzuv]{x+y+2z+3u+4v=0,2x+2y+7z+11u+14v=0,3x+3y+6z+10u+15v=0.}$
  27. ‎\item
  28. $\sysdelim..\systeme[xyzu]{x-2y+z+2u=-2,2x+3y-z-5u=9,4x-y+z-u={}5,5x-3y+2z+u={}3.}$
  29. \end{enumerate}‎
  30. \end{multicols}‎
  31.  
  32. \end{document}
  33.  
Attachments
system.pdf
My output
(4.99 KiB) Downloaded 162 times
system.tex
My document
(919 Bytes) Downloaded 247 times
Part_of_a_book.png
Part_of_a_book.png (178.65 KiB) Viewed 4942 times
Yours faithfully,
Mohsen Avaji.

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Mon Jul 15, 2013 11:24 am

I don't know about the vertical alignment but two other points: you don't need to put \systeme{} in math mode and it is sufficient to call \sysdelim.. once:

  1. \documentclass{report}
  2. \usepackage{mathtools}
  3. \usepackage{systeme}
  4. \sysdelim..
  5. \usepackage{multicol}
  6.  
  7. \begin{document}
  8.  
  9. \begin{multicols}{2}
  10. \begin{enumerate}
  11. \item \systeme{x+y+3z=5,2x-y+4z=11,-y+z=3.}
  12. \item \systeme{3x+2y+z=1,5x+3y+3z=2,x+y-z=1.}
  13. \item \systeme{3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3.}
  14. \item \systeme{3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3,x+y-z=0.}
  15. \item \systeme[xyzu]{3x-2y+5z+u=1,x+y-3z+2u=2,6x+y-4z+3u=7.}
  16. \item \systeme[xyzu]{x+y-3z+u=5,2x-y+z-2u=2,7x+y-7z+3u=3.}
  17. \item \systeme[xyzuv]{x+y+2z+3u+4v=0,2x+2y+7z+11u+14v=0,3x+3y+6z+10u+15v=0.}
  18. \item \systeme[xyzu]{x-2y+z+2u=-2,2x+3y-z-5u=9,4x-y+z-u={}5,5x-3y+2z+u={}3.}
  19. \end{enumerate}
  20. \end{multicols}
  21.  
  22. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
Mohsen Avaji
Posts: 10
Joined: Mon Aug 27, 2012 12:06 am

Postby Mohsen Avaji » Mon Jul 15, 2013 7:04 pm

Dear Cgnieder, thank you for your time and cooperation.
But I don't know why in both cases, number of items is at the beginning of the second line, while I want the numbers be at beginning of fist line similar attached file (Part_of_a_book.png).
Yours faithfully,
Mohsen Avaji.

User avatar
Mohsen Avaji
Posts: 10
Joined: Mon Aug 27, 2012 12:06 am

Postby Mohsen Avaji » Wed Jul 24, 2013 8:27 pm

Hi
I found the answer of my question.
  1. \documentclass{report}
  2. \usepackage{mathtools}
  3. \usepackage{systeme}
  4. \usepackage{multicol}
  5. \makeatletter
  6. \@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{}
  7. \@ifundefined{Umathchardef}{\let\Umathchardef\XeTeXmathchardef}{}
  8. \makeatother
  9.  
  10. \begin{document}
  11.  
  12. \begin{center}
  13. \begin{tabular}{lp{1.5cm}l}
  14. \sysdelim..\systeme{1.\quad x+y+3z=5,2x-y+4z=11,-y+z=3.} &&
  15. \sysdelim..\systeme[xyzu]{5.\quad 3x-2y+5z+u=1,x+y-3z+2u=2,6x+y-4z+3u=7.} \\
  16. &&\\
  17. \sysdelim..\systeme{2.\quad 3x+2y+z=1,5x+3y+3z=2,x+y-z=1.} &&
  18. \sysdelim..\systeme[xyzu]{6.\quad x+y-3z+u=5,2x-y+z-2u=2,7x+y-7z+3u=3.} \\
  19. &&\\
  20. \sysdelim..\systeme{3.\quad 3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3.} &&
  21. \sysdelim..\systeme[xyzuv]{7.\quad x+y+2z+3u+4v=0,2x+2y+7z+11u+14v=0,3x+3y+6z+10u+15v=0.} \\
  22. &&\\
  23. \sysdelim..\systeme{4.\quad 3x+2y+z=1,5x+3y+3z=2,7x+4y+5z=3,x+y-z=0.} &&
  24. \sysdelim..\systeme[xyzu]{8.\quad x-2y+z+2u=-2,2x+3y-z-5u=9,4x-y+z-u={}5,5x-3y+2z+u={}3.} \\
  25. \end{tabular}
  26. \end{center}
  27.  
  28. \end{document}
Attachments
system.tex
(959 Bytes) Downloaded 236 times
Yours faithfully,
Mohsen Avaji.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Wed Jul 24, 2013 10:00 pm

Thanks for posting you solution!

May I repeat myself nonetheless (emphasis added):
it is sufficient to call `\sysdelim..` once


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 1 guest