I'm trying to have some text repeated along a path. I tried what was prescribed in the PGF manual under /pgf/decoration/text effects/repeat text, but, as you can see, it doesn't have the effect I want:
I'd like something like below, but repeated around the path:
MWE
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
[block/.style={draw, rectangle, minimum size=5cm, align=center}]
\node [block,
postaction={decoration={text effects along path, text={BOX BOUNDARY\ },
text effects/.cd,
repeat text,
character count=\m, character total=\n,
characters={text along path, scale=0.5+\m/\n/2}},
decorate}]
(box){};
\end{tikzpicture}
\end{document}




rotate=5,rotate=-5set on that node. – Andrew Stacey Sep 17 '21 at 23:12\path (<coordinates>) node...instead of\nodeas mentioned here: https://tex.stackexchange.com/a/445918/8650 ,..., combinations of pre/post-actions and direct decoration, and more - I could not make it work. – hpekristiansen Sep 17 '21 at 23:40