I would like to use the &-symbol and reference (to sections) in the texts that are circled around the inner point but whenever I try to do this, the document compiles to infinity.
Minimal working example:
\documentclass{article}
\usepackage [ europeanresistors ]{ circuitikz }
\usepackage{tikz, pgfornament, tikzrput}
\usetikzlibrary{shapes.geometric,arrows,decorations, decorations.text}
\usepackage[textwidth=5cm,textheight=5cm,right=2.5cm,left=2.5cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{fix-cm}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\begin{document}
\section{Introduction}\label{sec:intro}
\begin{figure}[htbp]
\begin{tikzpicture}
\drawdouble distance=10mm circle (2.3cm);
\node at (0,0,0,0) {This & that \ref{sec:intro}};
\path [postaction={decorate,decoration={text along path, reverse path,text align=center, text={||Inner Ring 1 }}}] (-36:2.3cm) arc (-36:216:2.3cm);
\path [postaction={decorate,decoration={raise=-1ex,text along path, text align=right, text={||Inner Ring 2}}}] (-36:2.3cm) arc (-36:370:2.3cm);
\path [postaction={decorate,decoration={raise=-1ex,text along path, text align=right, text={||Inner Ring 3}}}] (-36:2.3cm) arc (-36:220:2.3cm);
%Not working:
%\path [postaction={decorate,decoration={raise=-1ex,text along path, text align=right, text={||This & that \ref{sec:intro} 3}}}] (-36:2.3cm) arc (-36:220:2.3cm);
\end{tikzpicture}
\caption{This is a circle}
\label{fig:circle}
\end{figure}
\end{document}

circuitikz. If you remove the\usepackage{circuitikz}, the result and the problem (which I don't know how to solve, sorry...) it's exactly the same. Please, try to reduce the thing to a minimal example. I'll fix the tags. – Rmano Mar 28 '24 at 10:36