如何在帖子旁边插入数字列?

如何在帖子旁边插入数字列?

我认为我要做的题目很简单,但我不得不在这里做,因为我研究了一整天却一无所获。问题:制作下图的代码是什么? 在此处输入图片描述

在此处输入图片描述 我无法输入“黑点”,除非删除列号。看起来是这样。(图 7)

看看我的代码:

 \begin{tikzpicture}[scale=.4]
   \node (a) at (0,0) {$$};
  \node (b) at (2,2) {$$}; 
  \node (c) at (-2,2) {$$};
  \node (d) at (0,4) {$$};
  \node (e) at (0,8) {$$};
  \node (f) at (2,6) {$$};
  \node (g) at (-2,6) {$$};
  \node (h) at (4,4) {$$};
  \node (i) at (-4,4) {$$};
  \node (j) at (-5,0) {$0$};
  \node (j) at (-5,2) {$1$};
  \node (j) at (-5,4) {$2$};
  \node (j) at (-5,6) {$3$};
  \node (j) at (-5,8) {$4$};


     \draw (a)--(b)--(h)--(f)--(e)--(g)--(i)--(c)--(a);
     \draw (c)--(d)--(f);
     \draw (i)--(b)--(d);    

  \end{tikzpicture}

答案1

像这样吗?

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[scale=.4] \node (a) at (0,0) {$\bullet$}; \node (b) at (2,2) {$\bullet$}; \node (c) at (-2,2) {$\bullet$}; \node (d) at (0,4) {$\bullet$}; \node (e) at (0,8) {$\bullet$}; \node (f) at (2,6) {$\bullet$}; \node (g) at (-2,6) {$\bullet$}; \node (h) at (4,4) {$\bullet$}; \node (i) at (-4,4) {$\bullet$}; \node (j) at (-5,0) {$0$}; \node (j) at (-5,2) {$1$}; \node (j) at (-5,4) {$2$}; \node (j) at (-5,6) {$3$}; \node (j) at (-5,8) {$4$};

 \draw (a)--(b)--(h)--(f)--(e)--(g)--(i)--(c)--(a);
 \draw (c)--(d)--(f);
 \draw (i)--(b)--(d);    

\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容