![如何在帖子旁边插入数字列?](https://linux22.com/image/335225/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%B8%96%E5%AD%90%E6%97%81%E8%BE%B9%E6%8F%92%E5%85%A5%E6%95%B0%E5%AD%97%E5%88%97%EF%BC%9F.png)
我认为我要做的题目很简单,但我不得不在这里做,因为我研究了一整天却一无所获。问题:制作下图的代码是什么?
看看我的代码:
\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}