Tikz 交叉口问题

Tikz 交叉口问题

我收到错误:

TeX 容量超出,抱歉 [参数堆栈大小 = 120]。

完整 MWE::

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{amssymb}

\begin{document}

\begin{figure}[!h] \label{diagram}
    \centering
    \begin{tikzpicture}

    \coordinate (A1)        at (-1, -1);
    \coordinate (A2)        at ( 1, 1) ;
    \coordinate (Acon)      at (0.5,0) ;
    \coordinate (B1)        at (1, -1) ;
    \coordinate (B2)        at (-1, 1) ;
    \coordinate (Bcon)      at (0, 0.5);

    \draw[name path = lineA] (A1)..controls(Acon)..(A2) node[above]{$A$};
    \draw[name path = lineB] (B1) -- (B2) node[above]{$B$};

    \fill[black, name intersections = {of = lineA and lineB}] (intersection-1) circle (2pt) node[above right]{$f(p)$};

    \end{tikzpicture} \caption{$\phi(A)$ and $\phi(B)$ in $\mathbb{C}$}
\end{figure}

\end{document}

如果我lineA变成

\draw[name path = lineA] (A1) -- (A2) node[above]{$A$};

一切正常。

仅供参考:我在 iPad 上使用 TeXPad。

相关内容