I have three questions about the code below.
- I fail to use an xy-shift : see the final
(2-2)++(6pt,2pt). What is the standard way to achieve this? - The code is not one of mine. I don't understand the meaning of
\p1and\x1. The rest of the code is no mystery to me. ;-) - How to just use 80% of
\x1for the radius?
\documentclass{standalone}
\usepackage{tikz}
\usepackage{nicematrix}
\usetikzlibrary{calc}
\begin{document}
$det = \begin{NiceArray}{ccc}
u & & v \
x & \kern.1pt & x' \
y & \kern.1pt & y'
\CodeAfter
\SubMatrix|{2-1}{3-3}|
\begin{tikzpicture}
\path (2-2.north)
--
node[red,circle,inner sep=1pt] (minus) {$-$}
(3-2.south);
\draw [red,->]
let \p1=($(minus.east)-(minus.center)$) in
(2-2)++(-6pt,2pt)
to[out=0,in=150]
(minus.60)
arc[start angle=60,end angle=-240,radius=\x1]
to[out=30,in=180]
(2-2)++(6pt,2pt);
\end{tikzpicture}
\end{NiceArray}
= ...$
\end{document}
This gives the following unwanted output.




([shift={(6pt,2pt)}]2-2)at the end. Doing(foo) ++ (bar)is a move to operation from foo to foo + bar. It is not (foo + bar). You need to do either theshiftas above or usecalcagain:($(2-2)+(6pt,2pt)$). – Qrrbrbirlbel Feb 14 '23 at 14:41++. – projetmbc Feb 14 '23 at 14:48