¿Cómo hacer detalles de solución para un sistema de ecuación?

¿Cómo hacer detalles de solución para un sistema de ecuación?

Quiero indicar que, en el segundo conjunto de ecuaciones, estamos sumando la tercera ecuación a la primera y segunda con la flecha, por ejemplo.

Intenté con 'WithArrows' pero no pude hacerlo funcionar. Luego intenté hacer tikzpicture en la ecuación (y la ecuación en tikzpicture) pero el conjunto de ecuaciones no se podía centrar (lo intenté con \centering y \begin{center}).

Luego usé \node pero no funcionó dentro de \systeme. Por último, utilicé tikzmark y esto es lo más cerca que estuve. Dibujé flechas pero no pude colocarlas al lado del sistema.

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{amssymb,amsthm,amsmath}
\usepackage{systeme}
\usetikzlibrary{arrows}

\newcommand{\tikzmark}[1]{%
    \tikz[overlay, remember picture, baseline] \node (#1) {};%
}
                 
                
\begin{document}

\begin{equation*}
\sysdelim..\systeme{
2x + 5y + 2z  =  - 38,
 3x - 2y + 4z  = 17,
  - 6x + y - 7z  =  - 12
  }
  \end{equation*}
    \begin{center}
  \rule{5cm}{0.4pt}
 \begin{equation*} 
\sysdelim..\systeme{
6x+15y+6z=-114 \tikzmark {3},
6x-4y+8z=34 \tikzmark {2},
-6x+y-7z=-12 \tikzmark {1}
  }
  \end{equation*}
  \begin{tikzpicture}
  \draw[->] ({2}) arc (-90:90:.5cm and 1cm) node[anchor=west]{$+$};
   \draw[->] ({2}) arc (-90:90:.25cm and 0.5cm) node[anchor=west]{$+$};
  \end{tikzpicture}
  \rule{5cm}{0.4pt}
  \end{center}
\end{document}

.

En lugar de arcos también probé:

  \draw[->] ({1}.east) .. controls +(right:7mm) and +(right:7mm) .. ({3}.east);
  \draw[->] ({1}.east) .. controls +(right:3mm) and +(right:5mm) .. ({2}.east);

Pero ocurre el mismo problema.

Respuesta1

Intentaste utilizar la antigua definición de tikzmark. Ahora es un Ti completokBiblioteca Z que puedes cargar y usar. Debe agregarlo [remember picture, overlay]a su tikzpicturedeclaración y es más fácil de usar \tikzmarknodeen lugar de simple, \tikzmarkya que necesitaría llamar a los nodos con pic cs:. Aquí hay un ejemplo simple de su código (no estoy seguro de que el systemepaquete sea realmente interesante en este caso, es posible que desee usar algo más).

EDITAR

Cambié mi solución a una mejor manera de dibujar flechas (con to[out=<>,in=<>]formato) y agregué signos más a lo largo del camino.

tikzmark

\documentclass{article}
% https://tex.stackexchange.com/q/643095/204164
\usepackage{tikz}
\usetikzlibrary{calc, tikzmark}
\usepackage{amssymb,amsthm,amsmath}
\usepackage{systeme}
\usetikzlibrary{arrows}
                 
                
\begin{document}
\tikzset{
    every node/.style={outer sep=1pt}}

\begin{equation*}
\sysdelim..\systeme{
2x + 5y + 2z  =  - 38,
 3x - 2y + 4z  = 17,
  - 6x + y - 7z  =  - 12
  }
  \end{equation*}
    \begin{center}
  \rule{5cm}{0.4pt}
 \begin{equation*} 
    \sysdelim..\systeme{
        6x+15y+6z=\tikzmarknode{C}{-114},
        6x-4y+8z=\tikzmarknode{B}{34},
        -6x+y-7z=\tikzmarknode{A}{-12}
      }
  \end{equation*}
  \begin{tikzpicture}[remember picture, overlay]
        %\draw[->] (A.east) .. controls +(right:7mm) and +(right:7mm) .. (C.east) node[signode,right,midway]{$+$};
        %\draw[->] (A.east) .. controls +(right:3mm) and +(right:5mm) .. (B.east) node[signode,right,pos=0.8]{$+$};
        \draw[red,->] (A.east) to[out=0,in=0,looseness=3]  node[right,pos=0.7]{$+$}(C.east) ;
        \draw[blue,->] (A.east)  to[out=30,in=0,looseness=2] node[right,pos=0.8]{$+$} (B.east) ;
  \end{tikzpicture}
  \rule{5cm}{0.4pt}
  \end{center}
\end{document}

Respuesta2

Esto es lo que puedes hacer {WithArrows}con witharrows.

\documentclass{article}
\usepackage{witharrows}

\begin{document}

\WithArrowsOptions{xoffset-for-o-arrows=0mm}

$\left\lbrace\begin{WithArrows}[format = rrCrrCrrCl,group,c]
6&x&+&15&y&+&6&z&=&-114 \Arrow[o,jump=2,tikz={<-,red}]{$-$}\\
6&x&-& 4&y&+&8&z&=&34 \Arrow[tikz={<-,blue}]{$+$} \\
-6&x&+&&y&-&7&x&=&-12
\end{WithArrows}\right.$

\end{document}

Salida del código anterior

información relacionada