Math & ScienceEquation system variables not aligning

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
jzx
Posts: 2
Joined: Fri Sep 07, 2018 12:57 pm

Equation system variables not aligning

Post by jzx »

\[
\systeme{x -y + az = 1,
2x - y + z = -1,
ax + y - z = 1
\]


its a equation system with x,y,z as usual, but I have the unknown a also infront of z in the first equation and in front of x in the third equation. I want the output to be 4 columns and the x should align with x and so on. I want systeme to understand that not treat a as a varible but as a number.

Now the output of the first row is:
az +x - y = 1, when it should be x-y+az=1

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Equation system variables not aligning

Post by Stefan Kottwitz »

Welcome to the forum!

You can specify the order, such as here:

Code: Select all

\documentclass{article}
\usepackage{systeme}
\begin{document}
\systeme[xyz]{x -y + az = 1,
  2x - y + z = -1,
  ax + y - z = 1}
\end{document}
Stefan
LaTeX.org admin
jzx
Posts: 2
Joined: Fri Sep 07, 2018 12:57 pm

Equation system variables not aligning

Post by jzx »

Working perfect,
Thank you so much!
Post Reply