节点之间的线未在 PDF 输出中编译(无错误)

节点之间的线未在 PDF 输出中编译(无错误)

我有一个非常奇怪的问题。我想构造一些 anabelian 形状并研究某种程度上的等价性(为我的论文)。我以为用像 这样的强大工具输出这种简单的构造tikz不会有问题,但我错了。编译以下 MWE 后:

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{center}
\begin{tikzpicture}
\draw (-1,2.5) to[out=-60,in=-120] (1,2.5);
\draw (-1,2.5) to[out=60,in=120] (1,2.5);
\node at (-1,2.5) {$\bullet$};
\node at (1,2.5) {$\bullet$};
\node at (2,2.5) {$=$};
% Why are these not showing?
\draw (2.5,2) [out=-90,in=200] (3,3);
\draw (3,3) [out=0,in=120] (3.5,2);
\draw (3.5,2) [out=270,in=200] (2.5,2);
% Why are these not showing? 
\node at (2.5,2) {$\bullet$};
\node at (3,3) {$\bullet$};
\node at (3.5,2) {$\bullet$};
\end{tikzpicture}
\end{center}

\end{document}

我得到了一个奇怪的输出:

在此处输入图片描述

为什么弯曲的线条没有显示在 PDF 输出中?这真的让我很困惑,我找不到我的错误。非常感谢您的帮助。

答案1

代码中缺少三条弯曲线的操作。如果需要绘制它们,to则必须draw在命令中添加选项:\node

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{center}
  \begin{tikzpicture}
    \draw (-1,2.5) to[out=-60,in=-120] (1,2.5);
    \draw (-1,2.5) to[out=60,in=120] (1,2.5);
    \node at (-1,2.5) {$\bullet$};
    \node at (1,2.5) {$\bullet$};
    \node at (2,2.5) {$=$};
    % 
    \draw (2.5,2) to[out=-90,in=200] (3,3);
    \draw (3,3) to[out=0,in=120] (3.5,2);
    \draw (3.5,2) to[out=270,in=200] (2.5,2);
    %
    \node[draw] at (2.5,2) {$\bullet$};
    \node[draw] at (3,3) {$\bullet$};
    \node[draw] at (3.5,2) {$\bullet$};
  \end{tikzpicture}
\end{center}
\end{document}

out也许您应该稍微改变一下和的数值in

相关内容