我需要在以下代码中标记箭头提示:
\documentclass[border=4mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw (0,0) rectangle (1,1);
\begin{scope}[xshift=3cm]
\draw [{Circle[]}-{Circle[]}] (0,0) node {text} -- ++(1,0) -- ++(0,1) -- ++(-1,0) -- ++(0,1) --
++ (1,0) -- ++(0,1) -- ++(-1,0);
\end{scope}
\end{tikzpicture}
\end{document}
答案1
像这样?
\documentclass[border=4mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw (0,0) rectangle (1,1);
\begin{scope}[xshift=3cm]
\draw [{Circle[]}-{Circle[]}] (0,0) node[left] {text} -- ++(1,0) -- ++(0,1) -- ++(-1,0) -- ++(0,1) --
++ (1,0) -- ++(0,1) -- ++(-1,0) node[left] {more text};
\end{scope}
\end{tikzpicture}
\end{document}