Me gustaría lograr algo como esto:
u opcionalmente con un pliegue agudo:
¿Es eso posible?
me topé conesta publicacióny algunas respuestas donde se usó tikz pero no pude ajustarlo a mis necesidades.
Respuesta1
Bienvenido a TeX.se, considere otorgar un MWE. Esto nos ayudará mucho a responder su pregunta con precisión y también nos ahorrará tiempo al tener que recurrir a nuestras bolas de cristal ;-)
.
Un punto de partida
\documentclass{article}
\usepackage{tikz}
\newcommand{\tikzmark}[1]{\tikz[overlay, remember picture] \coordinate (#1);}
%https://tex.stackexchange.com/questions/40535/matrix-with-arrows-and-labels
\begin{document}
\[
X = \qquad \bordermatrix{~ & ~ & ~ & ~ & ~
& ~ \cr
\tikzmark{varrowtop} ~ & 0 & 0 & 0 & 1 & 1\tikzmark{harrowright} \cr
~ & 0 & 0 & 1 & 1 & 1 \cr
~ & 0 & 0 & 1 & 1 & 0 \cr
~ & 0 & 0 & 1 & 1 & 0 \cr
\tikzmark{varrowbottom}~ & 0 & 0 & 0 & 0 & 0 \cr
}
\]
\tikz[overlay,remember picture] {
\draw[->] (varrowbottom) -- ([yshift=3ex]varrowtop) -- ([yshift=3ex]harrowright)
node[midway,above] {};
}
\end{document}
Llegar:
Esquinas lisas:
\documentclass{article}
\usepackage{tikz}
\newcommand{\tikzmark}[1]{\tikz[overlay, remember picture] \coordinate (#1);}
\begin{document}
\[
X = \qquad \bordermatrix{~ & ~ & ~ & ~ & ~
& ~ \cr
\tikzmark{varrowtop} ~ & 0 & 0 & 0 & 1 & 1\tikzmark{harrowright} \cr
~ & 0 & 0 & 1 & 1 & 1 \cr
~ & 0 & 0 & 1 & 1 & 0 \cr
~ & 0 & 0 & 1 & 1 & 0 \cr
\tikzmark{varrowbottom}~ & 0 & 0 & 0 & 0 & 0 \cr
}
\]
\tikz[overlay,remember picture] {
\draw[->, rounded corners] (varrowbottom) -- ([yshift=3ex]varrowtop) -- ([yshift=3ex]harrowright)
node[midway,above] {};
}
\end{document}
Llegar:
Respuesta2
Aquí hay una solución con {pNiceMatrix}
of nicematrix
y TikZ para dibujar la flecha usando los nodos TikZ creados por nicematrix
.
\documentclass{article}
\usepackage{nicematrix,tikz}
\begin{document}
\[X =
\quad
\begin{pNiceMatrix}
0 & 0 & 0 & 1 & 1 \\
0 & 0 & 1 & 1 & 1 \\
0 & 0 & 1 & 1 & 0 \\
0 & 0 & 1 & 1 & 0 \\
0 & 0 & 0 & 0 & 0 \\
\CodeAfter
\tikz [-> , rounded corners = 2mm ]
\draw ([xshift=-2mm]last-|1) |- ([yshift=2mm]1-|last) ;
\end{pNiceMatrix}
\]
\end{document}