我知道如何制作4 \times 5
棋盘:
\documentclass{article}
\usepackage{chessboard}
\let\boardfont\undefinedcommand
\usepackage{diagram}
\begin{document}
\setboolean{showcomputer}{false}
\setboolean{piececounter}{false}
\specialdiagnum{}
\begin{diagram}[5x4]
\pieces{}
\end{diagram}
\end{document}
但我不知道该如何制作角落。
答案1
我的解决方案:
\documentclass[a4]{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
\draw
(0,0) -- (2,0)
(5,0)--(7,0)
(0,1)--(7,1)
(0,2)--(7,2)
(1,3)--(6,3)
(0,5)--(7,5)
(0,4)--(7,4)
(0,6)--(2,6)
(5,6) -- (7,6)
;
\draw
(0,0) -- (0,2)
(0,4)--(0,6)
(1,0)--(1,6)
(2,0)--(2,6)
(3,1)--(3,5)
(4,1)--(4,5)
(5,0)--(5,6)
(6,0)--(6,6)
(7,0)--(7,2)
(7,4)--(7,6)
;
\fill
(1,0) rectangle (2,1)
(0,1) rectangle (1,2)
(1,4) rectangle (2,5)
(0,5) rectangle (1,6)
(2,1) rectangle (3,2)
(1,2) rectangle (2,3)
(2,3) rectangle (3,4)
(3,2) rectangle (4,3)
(3,4) rectangle (4,5)
(4,3) rectangle (5,4)
(4,1) rectangle (5,2)
(5,0) rectangle (6,1)
(6,1) rectangle (7,2)
(5,2) rectangle (6,3)
(5,4) rectangle (6,5)
(6,5) rectangle (7,6)
;
\end{tikzpicture}
\end{center}
\end{document}