![在表格中均匀分布对象](https://linux22.com/image/474353/%E5%9C%A8%E8%A1%A8%E6%A0%BC%E4%B8%AD%E5%9D%87%E5%8C%80%E5%88%86%E5%B8%83%E5%AF%B9%E8%B1%A1.png)
我正在尝试使每个框在表格环境中均匀分布。
有什么想法吗?谢谢,温迪
\documentclass{article}
\usepackage{tikz}
\newcommand{\drawdie}{
\begin{tikzpicture}[x=5em,y=5em,3]
\draw[thick, rounded corners=0.5,line hidden] (0,0) rectangle (1,1);
\end{tikzpicture}
}
\begin{document}
\begin{center}\begin{tabular}{c|c}
\drawdie\hspace{1cm}&\hspace{1cm}\drawdie\\
&\\
\hline
&\\
\drawdie\hspace{1cm}&\hspace{1cm}\drawdie
\end{tabular}\end{center}
\end{document}
答案1
使用 \hspace*{1cm} 效果很好