我使用 TeXlive 2018 绘制了下面的内容,一切正常。在 TeXlive 2020 中也一切正常。但现在使用 TeXlive 2022 时,它返回了以下错误!我知道问题出在scope
部分!没有scope
它就没有错误。
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{intersections}
\usetikzlibrary{through,calc,decorations.markings,positioning,angles}
\begin{document}
\begin{tikzpicture}[scale=2]
\begin{scope}[shift={(-0.6,0.05)}]
\path[name path= C] (-2.1,-0.8) .. controls (-1.9,-0.35) and (-1.6,0.64) .. (-0.8,0.65) .. controls (0.1,0.65) and (0.45,-1) .. (1.1,-1) .. controls (1.75,-1) and (2.4,0.25) .. (2.6,0.7);%2
\end{scope}
\draw[name path= Cp] (-3.35,-0.5) .. controls (-1.9,0) and (1.3,0.1) .. (2.7,-0.4);
\draw[thick, white](-2.488,-0.283) .. controls (-1.89,-0.16) and (-1,-0.09) .. (-0.38,-0.08);
\fill[name intersections={of =C and Cp, by={p, q, z} },draw] (p) node[fill,circle, inner sep=1pt ]{} node[below]{$p$} (q) node[fill,circle, inner sep=1pt ]{} node[below]{$q$};
\end{tikzpicture}
\end{document}