I am trying to create a system of equations with my calculation steps on the right side and a double underlined result.
I've decided to use NiceArray from the nicematrix package for the calculation steps, which has given me the intended outcome.
I guess there is a very simple way of underlining my result using nicematrixand Tikz. Unfortunately I have no experience with Tikz.
What do I have to write in order to double underline my result?
I was searching many hours for a solution to fix both of my problems (calculation steps and double underlining) and finally I think I am very close to the solution.
\documentclass{scrartcl}
\usepackage{mathtools}
\usepackage{nicematrix}
\begin{document}
\begin{equation*}
\begin{NiceArray}{RCLL}
-2x + 72 & = & 18 - 7x &\quad | - 7x \\
-9x + 72 & = & 18 & \quad | -72 \\
-9x & = & -54 & \quad | : (-9) \\
x & = & 6
\end{NiceArray}
\end{equation*}
\end{document}






\\\hline\hlineto the end of theNiceArrayis not what you are looking for? – Steven B. Segletes May 08 '19 at 17:22https://tex.stackexchange.com/questions/249616/tex-question-about-double-underlining-in-math-mode
– Benjamin Compson May 08 '19 at 17:26\\\hline\hlinecreates a line beneath the whole Array, which is not, what I suppose to do. @Benjamin Compson That answer creates a double underline but does not help me for my calculation steps, because I cannot use\underlinefor more than one column of the array. – Karl May 08 '19 at 17:32